[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

    Timothy Graham

    yeah it fixed it for us... aWESOME job runs good with lwc 2.0
     
  3. Offline

    darknesschaos

    glad to hear :D
     
  4. Offline

    Dev

    Anything can be written on the first line and signtrader thinks it is a shop sign. It says the sign is owned by null, and needs to be activated. This also makes it so it cannot be broken. I don't know that it's conflicting with anything else, but I also have NextStation installed.
     
  5. Offline

    darknesschaos

    mind telling me the text on the sign?
     
  6. Offline

    strupan

    I use mywarp

    and it still thinks its a signtrader.

    It goes like this

    MyWarp
    Location
    none
    none
     
  7. Offline

    darknesschaos

    It shouldn't. What is the message?
    also, what version of this are you using.
     
  8. Offline

    strupan

    [Signtrader] Could not find a chest that is linked to this sign.

    using your 1.0.2
     
  9. Offline

    darknesschaos

    ahhh, I will look into it.
     
  10. Offline

    mattwise

    11:24:06 [SEVERE] BLOCK_RIGHTCLICKED loading SignTrader v1.0.2 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
    at com.polycrypt.bukkit.plugin.darknesschaos.SignTrader.SignTrader.onEnable(SignTrader.java:48)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
    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)


    using craftbukkit 600
     
  11. Offline

    darknesschaos

    that's why. I will update later if I'm lucky
     
  12. Offline

    eRko16

    CB: 560

    I get the error when i click on sign "There is no money system" I am using newest iConomy and newest Signtrader. When i tested it on loclahost it works perfectly but on normal server it doesnt work. Normla command like /money, /money pay works too. Please HELP
     
  13. Offline

    darknesschaos

    it should work, what does the console say when starting the server?
     
  14. Offline

    eRko16

    Yes i dont seen it.

    2011-03-30 19:50:27 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to SignTrader
    java.lang.NullPointerException
    at java.lang.String$CaseInsensitiveComparator.compare(String.java:1227)
    at java.lang.String$CaseInsensitiveComparator.compare(String.java:1220)
    at java.lang.String.compareToIgnoreCase(String.java:1270)
    at com.polycrypt.bukkit.plugin.darknesschaos.SignTrader.SignOperator.findChest(SignOperator.java:352)
    at com.polycrypt.bukkit.plugin.darknesschaos.SignTrader.SignManager.useSign(SignManager.java:97)
    at com.polycrypt.bukkit.plugin.darknesschaos.SignTrader.SignTraderBlockListener.onBlockRightClick(SignTraderBlockListener.java:48)
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:259)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:493)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    How i can fix it

    On sign i have

    eRko16
    5:$
    64:5

    Please help me

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  15. Offline

    darknesschaos

    I cant check it out until I get home, but is the chest under the sign? 0r, did you link them?

    Edit: also, did you edit/change any of the files? Also, If you can, send me a message with your zipped up bukkit (plugins and all) and I possibly may be able to help more. just later like said.
     
  16. Offline

    eRko16

    I have chest under sign, everything works perfectly but when i try it with iConomy on normal server it say Ther is no money system on localhost its works! I can maybe zpped you my server folder
     
  17. Offline

    darknesschaos

    There should be no change. Please send me your zipped folder.
     
  18. Offline

    eRko16

    ok i have it zipped, i will sen you PM
     
  19. Offline

    darknesschaos

    @eRko16
    This might be a fix for you.
     

    Attached Files:

  20. Offline

    Frostshifter

    I had the same issue with #556, with SignTrader telling me there was no iConomy. Reason is that SignTrader was loaded before iConomy. If you're checking for iConomy before onEnable, you might want to change that. Adding this line to the plugin.yml fixed the issue for me:

    Code:
    depend: [iConomy]
    This feature was added a couple weeks back apparently.

     
  21. Offline

    eRko16

    ok, i will try it, when i arrive home
     
  22. Offline

    darknesschaos

    @Frostshifter - as far as i know I am checking it on enable, and I don't add that line because this plugin doesn't depend on iConomy.
     
  23. Offline

    eRko16

    oh :( It still says There is no money system after righ click on SIGN
     
  24. Offline

    darknesschaos

    I'm going to be updating it to be compatible with 602 soon, maybe that will fix it. I just dont understand how the problem is happening.
     
  25. Offline

    Minecrafta2z

    I am having some trouble I hope you can help. I'm running 1.4 and 617, signtrader lets me make signs and all is good until it comes to linking chests. I right click both sign and chest and nothing at all happens. It worked fine before 1.4/617 is this the problem?
     
  26. Offline

    darknesschaos

    yes. I need to update. probably Sunday depending on how long homework takes.
     
  27. Offline

    Greft

    I think it would be interesting if on the last line of the sign where it says [ACTIVE] would change to [OUT OF STOCK]
     
  28. Offline

    darknesschaos

    @Greft - I completely agree! will add in the next update

    Updated for compatibility.
     
  29. Offline

    RaisinBran

    Im not using LWC right now, instead i'm using lockette. My Permissions are correct because Signtrader worked before but now everytime I make a sign it says the owner is null.
     
  30. Offline

    darknesschaos

    hmm. I will look into why, but it will be tomorrow.
     
  31. Offline

    RaisinBran

    I had some signs activated before update, when I try to buy it says I do not have permissions. Sign is activated too.
     

Share This Page