[INACTIVE][ECON]SignTrader 1.0.7 - Trading with signs! (617)

Discussion in 'Inactive/Unsupported Plugins' started by darknesschaos, Feb 3, 2011.

  1. Offline

    darknesschaos

    SignTrader - Trade with Signs!
    Version: v1.0.7 - CB (617) tested
    [wheatsprout]Description[wheatsprout]
    This Bukkit plugin allows servers to use signs as a functioning shop tool. Simply set the sign in the appropriate format, optionally link it to a chest and you can have a sign that either vends from a chest you own or you can set the sign to sell to users items they normally couldn't get as something like a modified /give with a set location. Simply punch the sign to get a little more information to understand what it does and how to use it.

    [wheatsprout]Commands[wheatsprout]
    /signtrader -s p - set the sign that you punch, the 'p' is optional and makes it persist.
    /signtrader -sc p - link signs and chests to each other, must be within 40 blocks and on the same world and the 'p' is optional
    /getdata - returns the data of the item in hand (name, amount, and durability.)

    [wheatsprout]Other Plugin Support[wheatsprout]
    You don't need any of these for this plugin to work.​
    Supports protection from LWC, (2.0 only) with lwc installed SignTrader forces players to sell from chests that they own.​
    Supports Permissions from TheYeti (2.5.4 tested) with the following nodes This defaults to op.txt if not present:​
    • signtrader.MakeGlobalSign - so the player can activate "Global" signs defa
    • signtrader.MakePersonalSign - so the player can activate "Personal" signs
    • signtrader.admin.BreakAnySign - so the player can break any sign (duh)
    • signtrader.Use - so the player can use any player sign or activated Global sign
    • signtrader.admin.SetOwner - so the player can set the owner of signs.
    Supports iConomy (4.0 +) for usage with the local money system.


    [wheatsprout]Sign Format[wheatsprout]
    The sign format is as follows:​
    Line one - Global or Personal - denotes sign type, personal pulls from chests, Global doesn't use chests.​
    Line two - amount:ItemType:durability or amount:$ - this is the payment line (what the chest will get from the player) amount is how much the player wants to recieve, ItemType is the item number of the item they want to recieve from player if the other is chosen it will be the amount of money the sign owner wants to get from the player.​
    Line three - amount:ItemType:durability or amount:$ - Similarly to line two, this is what is removed from the sign owner and given to the player.​
    Line four - leave this one alone, [Activated] is put in the line to show it is an active sign.​
    Example 1) - trade sign​
    Line # - text​
    1 - Global​
    2 - 1:3​
    3 - 1:35:1​
    This sign trades for dirt and gives the user orange wool.​
    Example 2) - Sale sign​
    1 - Personal​
    2 - 1:$​
    3 - 64:3​
    This sign takes 1 of iconomy money from the sign user and gives it to the owner, and gives the user 64 dirt.​
    Example 3) - Freebie sign​
    1 - Personal​
    2 - Free​
    3 - 1:3​
    This sign gives 1 dirt for free to the user​
    Example 4) - Purchase Sign​
    1 - Personal​
    2 - 1:3​
    3 - 1:$​
    This sign takes money from the owner and gives to the user and takes 1 dirt from the user and puts it into the chest.​
    [fire]Trouble?[fire]
    When posting issues here please write the following:​
    * What the sign has written on it.​
    * What output you got from the console. (If any)​
    * What you expected to happen.​
    * What actually happened.​
    * What plugins (and their versions) you are using with this (including version number.)​
    * What version of this plugin you are using.​
    Failure to do these will result in you being called an idiot.​
    Show Spoiler


    CHANGELOG:​
    Version 1.0.7​
    *Bugfixing​
    Version 1.0.6​
    * removed the sign breaking prevention function...​
    Version 1.0.5​
    * Fixed an abuse problem​
    * Now protects signs and blocks from destruction of non-op(or permissioned) and non owners of signs (owners of global signs are the ones who placed them.)​
    Version 1.0.3​
    * Updated to be compatable with 600+​
    Version 1.0.2​
    * Fixed link with newest version of lwc.​
    * Null pointer bugfix​
    * Rewired the sign recognition code.​
    Version 1.0.1​
    * Trading sign bugfix​
    * re-added the /signtrader -s command​
    * fixed up command interface a bit​
    * added /getdata so players can find the durability of the item in hand.​
    * added /signtrader -so (OwnerName) needs "signtrader.admin.SetOwner" node or player being op.​
    * now prevents people from linking signs and chests that aren't their own.​
    Version 1.0.0​
    * Monsterous update​
    * Too many to list...​
    Version 0.9.3​
    * Fixed bug where appropriate files were not created.​
    * Cleaned up item.txt creation code.​
    * update to iConomy 3.0 support?​
    Version 0.9.2​
    * Fixed bug where chests weren't detected, possibly other fixes.​
    * still not sure on iConomy, please, someone, let me know.​
    Version 0.9.1​
    * Fixed a bug where signs were not deleted from the sign list when they were destroyed.​
    Version 0.9​
    * Added Sign protecting features​
    * hopefully a fix to iConomy support​
    * now players need to set personal signs.​
    Version 0.8​
    * Added a feature that displays sign information in a more detailed form when the sign is punched.​
    Version 0.7.1​
    * hopefully a bugfix that solves a problem with named worlds​
    * getting chest owner works nicely with LWC​
    Version 0.7​
    * Fixed purchasing and selling to chests (Needs testing.)​
    Version 0.6​
    * Removed incorrect format error.​
    * Chests can now: trade, get donations, give stuff out.​
    * Chests still can't "sell via iConomy"​
    * probably a few other fixes​
    Version 0.5​
    * Release of locking protection for global signs (so not anyone can make them)​
    * signs "should" work fine with chests, however I am afraid they ignore protections.​
    * item blacklisting possible.​
    * permissions support.​
    * iConomy support.​
    * ect.​
    Version 0.1​
    * Initial release of the plugin.​
     

    Attached Files:

    rasse, shadrxninga and NEO like this.
  2. Offline

    Uniltiranyu

    is there a way you can port the classic signtrader?
     
  3. Offline

    darknesschaos

    @Uniltiranyu - I am unsure. You might be able to download it from git-hub. What is the change you are looking for?
     
  4. Offline

    Rocik

    How to delete any shop? Is other way than from file?
     
  5. Offline

    darknesschaos

    destroy the sign.
     
  6. Offline

    Rocik

    But shop then will be destroy? Because i was it in global sign and when I readd sign there was old shop...(It was in 0.9.1)
     
  7. Offline

    darknesschaos

    If you want to get rid of signs that you removed pre 0.9.1 delete your signtrader folder and let the plugin remake it for you. you will need to reactivate all signs then.
     
  8. Offline

    Rocik

    No thanks. I just want to know that is now 100% working. :)

    @EDIT:
    Now with the new iConomy plugin get error, but only if signtrader is in /plugin folder:
    Code:
    [SEVERE] com/nijikokun/bukkit/iConomy/iConomy (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
        at com.polycrypt.darknesschaos.SignTrader.Tools.testiConomy(Tools.java:35)
        at com.polycrypt.darknesschaos.SignTrader.SignTrader.onEnable(SignTrader.java:95)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:117)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:80)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.iConomy.iConomy
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more
     
  9. Offline

    darknesschaos

    I have not updated compatibility to 4.0 yet, probably will happen today.
     
  10. Offline

    Rocik

    Oh, i did't know that, nvm.
     
  11. Offline

    Uniltiranyu

    i had to update the plugin because they removed the support for the Stupidly Long Connector
     
  12. Offline

    darknesschaos

    @Uniltiranyu - The issue is with permissions 2.4 I tested it and It didn't work. Since permissions is dead, I will no longer support it.
     
  13. Offline

    Uniltiranyu

    so, anyway of getting classic signtrader back?
     
  14. Offline

    darknesschaos

    define classic? like, what version? or, what do you need removed?
     
  15. Offline

    Uniltiranyu

    pretty much i liked the old version where its
    [optional text]
    Free (or quanXid)
    [optional text]
    quantityXid

    eg.
    Code:
    Pro. Wood
    Free
    
    64x5
     
  16. Offline

    Zenergyx3

    I tried to buy bread. It says it's out of stock, when I have bread in the shop. I tried having it normally stocked, and then I spawned some bread stacks. Both do not work.
     
  17. Offline

    darknesschaos

    Global signs do that just fine now.

    Global
    Free
    64x5

    then activate it.
    --- merged: Feb 28, 2011 7:10 AM ---
    @Zenergyx3 - in order for me to help you, you need to post what your sign looks like and anything that popped up in the console
     
  18. Offline

    Zenergyx3

    Zenergyx3
    1:297
    2:263


    (Bread for 2 coal)

    When I right click the sign with coal on my hand, it says
    The chest does not have enough stock to sell.
    Console doesn't say anything at all.
     
  19. Offline

    darknesschaos

    @Zenergyx3 - you have the order reversed
    Zenergyx3
    2:263
    1:297
     
  20. Offline

    Zenergyx3

    Thank you for that, I am a complete moron. :c
     
  21. Offline

    darknesschaos

    heh, it is ok :D
     
  22. Offline

    rasse

    thx, for very nice plugin.
    I have couple of question... Does this work with permissions 2.4, I got permission denied when trying to set up signs. And if not, is there coming a fix for that or should I use other permissions plugin, if yes which one? my friend build a hotel and now he wants a sign where customers can pay for the room with gold ingots. Is that possible to take one gold ingot and give nothing back? :)
     
  23. Offline

    darknesschaos

    I didn't set up a non-donation service for global signs, but if he makes a personal sign he can do:
    Personal
    1: (Gold bar id)
    Free

    This will be a donation of sorts, the gold bar would be placed into the chest below the sign.

    I will update this to work with groupmanager soon, that seems to be the only permissions plugin that my plugins agree with.
     
  24. Offline

    Uniltiranyu

    so, about the prev. version
    eg. on earlier post
     
  25. Offline

    drago

  26. Offline

    darknesschaos

    @Uniltiranyu - the old version worked but anyone can make signs in that version with no blacklisting, aka I could join your server, make a sign to give myself bedrock, and build with no limitations. Just use the current version like I mentioned.
    --- merged: Mar 1, 2011 12:38 AM ---
    It just wouldn't work for me, groupmanager is quite nice.
     
  27. Offline

    drago

    Makes sense. Especially with Permissions 2.1 replacement coming soon. Thanks for pointing it out to me.
     
  28. Offline

    darknesschaos

    It seems to work fine for other people, I just personally like GroupManager.
     
  29. Offline

    Uniltiranyu

    meh, i got a whitelist for server
     
  30. Offline

    Seta

    it seems i have to redo alle shops after an server restart?!
     
  31. Offline

    darknesschaos

    there should be no need.
     

Share This Page