[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

    darknesschaos

    yeah, I have been meaning to provide a more detailed documentation on how this works, I just have not been able to put enough time aside to focus on it.

    update:
    Version 0.9.3

    • Fixed bug where appropriate files were not created.
    • Cleaned up item.txt creation code.
    • update to iConomy 3.0 support?

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

    KrisEike

    It says "You don't have permission to do that" every time i try to sell stuff, even though i OPed myself.

    Similar thing is happening with StarGate, so does that means my permissions is fucked up?

    Kris
     
  4. Offline

    darknesschaos

    op.txt isnt used if you have permissions. what version are you using? I use 1.9 with no issue XD
     
  5. Offline

    KrisEike

    The signtrader? I just downloaded the newest one..
    Permissions, same as above.. =/
     
  6. Offline

    PeterPAwN

    Personal Shops doesnt work anymore at least at 9.2, 9.3 and 9.0 at my server. Running serveral actual Bukkit releases. The sign sais that it has not yet been activated.
     
  7. Offline

    darknesschaos

    @PeterPAwN - did the owner activate them? It is a new requirement.
     
  8. Offline

    Avous

    could you add cookies support :D ! it would be Awesome!
     
  9. Offline

    sumTard

    Does this now require iConomy 3.0 to work? I keep getting a getBank() not found exception when someone tries to buy off my sign.
     
  10. Offline

    darknesschaos

    @sumTard - yes, it requires iConomy 3.0
    @Avous - I will look into it sometime this weekend. (When I am less lazy)
     
  11. Offline

    Avous

    woo :D danke!
     
  12. Offline

    shadrxninga

    Could you make it show your balance when you right click a sign that uses iConomy
     
  13. Offline

    darknesschaos

    Will do. Simple enough feature.
     
  14. Offline

    shadrxninga

  15. Offline

    PeterPAwN

    I made the Personal Sign Case Sensitive with my name. So i could be the only owner, but it says this shops has to be activated.

    On the Sign

    PeterPAwN
    1:24
    1:4
     
  16. Offline

    darknesschaos

    @PeterPAwN - use "/signtrader -s" then punch the sign. Let me know if this fixes your problem.
     
  17. Offline

    PeterPAwN

    Yea that helped, is the command implemented in the signtrader.makePersonal permission ?
     
  18. Offline

    darknesschaos

    @PeterPAwN - it should be, but that command works with setting global signs too.
     
  19. Offline

    Riwolfes

    Getting this error on a Global Sign:
    Show Spoiler
    2011-02-26 13:44:22 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to SignTrad
    er
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.iConomy.iConomy.getBank()Lcom/
    nijikokun/bukkit/iConomy/Bank;
    at com.polycrypt.darknesschaos.SignTrader.SignTrader.calculateMoney(Sign
    Trader.java:129)
    at com.polycrypt.darknesschaos.SignTrader.Signer.sellItem(Signer.java:27
    4)
    at com.polycrypt.darknesschaos.SignTrader.Signer.useSign(Signer.java:163
    )
    at com.polycrypt.darknesschaos.SignTrader.SignTraderBlockListener.onBloc
    kRightClick(SignTraderBlockListener.java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:232)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-26 13:44:22 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to SignTrad
    er
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.iConomy.iConomy.getBank()Lcom/
    nijikokun/bukkit/iConomy/Bank;
    at com.polycrypt.darknesschaos.SignTrader.SignTrader.calculateMoney(Sign
    Trader.java:129)
    at com.polycrypt.darknesschaos.SignTrader.Signer.sellItem(Signer.java:27
    4)
    at com.polycrypt.darknesschaos.SignTrader.Signer.useSign(Signer.java:163
    )
    at com.polycrypt.darknesschaos.SignTrader.SignTraderBlockListener.onBloc
    kRightClick(SignTraderBlockListener.java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:232)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  20. Offline

    darknesschaos

    @Riwolfes - my guess is that you have not upgraded to iConomy 3.0.
     
  21. Offline

    Avous

    forget my cookies request dark :p apparently its being abandoned and the maker is helping make iconomy 4 :p
     
  22. Offline

    darknesschaos

    works for me :D less work!
     
  23. Offline

    Uniltiranyu

    does it work still, they removed all mods that use the Stupidly Long Connector
     
  24. Offline

    Seta

    Edit:// LWC update fixed my problem
     
  25. Offline

    shadrxninga

    Does this work with iconomy 4.0?
     
  26. Offline

    Uniltiranyu

    god, its to hard to use now, it keeps telling me that i dont have permission, yet i have a '*' in permissions.
    i like the good old one with just a rightclick to give items, none of this command crap
     
  27. Offline

    darknesschaos

    @shadrxninga - I probably will need to fix the imports. will do tomorrow
    @Uniltiranyu - A) My only guess is that you have permissions set up wrong. Or that you are using a strange version. But I hear that it has been wonky, If you remove permissions it will work perfectly.
    B) After the sign is activated, all that is required is a right click. This allows me to allocate the sign to a single owner without issue for my iConomy usage.
     
  28. Offline

    Zenergyx3

    When I punch the sign after typing /signtrader -s, nothing happens.
     
  29. Offline

    Euron

    Do you have permissions set up properly? Also, when you first create the sign, are you getting a text prompt?
     
  30. Offline

    Zenergyx3

    No, I don't get a text prompt.
    It's probably not working because I'm using Permissions 2.4 which is an unofficial build, I'll switch to GroupManager later.
     
  31. Offline

    darknesschaos

    I dont support that one yet. I will look into it though.
     

Share This Page