Inactive [ECON] BarterSigns v1.2.5-fix - Player owned sign shops that trade in items [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by dumptruckman, Jul 31, 2011.

  1. Offline

    dumptruckman

    BarterSigns
    v .1.2.5-fix

    Create sign based bartering shops. Each sign can sell one type of item and collect many different types of items for payment. Signs are simple to setup and very self explanatory.THIS PLUGIN DOES NOT USE ANY ECONOMY PLUGINS! I may support them in the future though.

    Features:
    • Player owned sign shops that deal in items.
    • Sell a specific amount of 1 item for a specific amount of multiple items.
    • Intuitive, command-less sign interface. (ActionMenu API)
    • Signs can be indestructible.
    • Signs can drop items upon breaking.
    • Optional permission use.
    • Option to have BarterSigns override other sign plugins.
    • Signs can have a max stock limit in either total item count or total stack count.
    • NO reliance on ANY economy plugin.
    Attention: Version 1.1 will break your old data files.

    Unfortunately I made a mistake in my choice of yaml key names, I have converted items to be ItemID,ItemDurability instead of ItemID:ItemDurability. You can manually update your data stores, if you know how.

    This plugin uses Superperms and has a simple 3 permissions:
    Permission Nodes (open)

    • bartersigns.admin - grants sign owner menu privilege on every Barter Sign. Includes the following two permissions.
    • bartersigns.create - allows user to create Barter Signs.
    • bartersigns.use - allows user to use Barter Signs.


    If you do not wish to use permissions, they are disable-able in the config.yml.

    Download
    download plugin

    German language file by @MrPikPik and xGhOsTkiLLeRx
    source code

    Instructions
    1. Install the plugin like any other.
    2. Create a sign with the first line reading: [barter]
    3. The plugin will guide you in further usage.
    If you have trouble understanding what to do from the in game prompting, please share your issues. My goal is to make this plugin explain it self.


    The configuration file in 1.2 is now commented for your convinience!

    This plugin uses my ActionMenu API to create the sign owner menus. This API has allowed me to create a menu on signs where I chose right-click to scroll through the menu and left-click to activate the menu selection. When the API is released it will be extended to work with Bukkit's Map API and Spoutcraft's GUI API.

    Changelog

    Version 1.2.5-fix
    • Fixed for use on 1.1-R5+ (That means 1.2.5-R1.0!)
    • Resolved an error caused by removing worlds that had signs.

    Version 1.2.5
    • Added new items (from 1.0.0) to the signs.
    Version 1.2.4
    • Fixed compatibility with Towny.
    • Fixed NPE when breaking signs still in the setup phase.
    Version 1.2.3
    • Added new version of usage statistics so that Bukkit version stats are also sent.
    Version 1.2.2
    • Added usage statistics.
    Version 1.2.1

    • Added support for Towny's shop plots.
    • Fixed some NPEs related to the new override config option.
    Version 1.2

    • Fixed some sign text that was too long due to color codes.
    • Added a commented config.
    • Fixed some over looked item name length issues. (And suphlur (sp) is now Gunpowder). This change requires you to delete your old item.yml.
    • Added a new option to enforce max stack sizes.
      • This causes any items sold to be split into multiple stacks if the amount is greater than that item's max stack size. No more stacks of 64 soup!
      • This also causes the sign stock limit to be a number of item stacks instead of total item amount.
    • Added a revenue stack count to the revenue menu item.
    • Added a config option to override other sign plugins when operating a BarterSigns sign.
    • Changed the default use/create permissions to true for when using permissions.
     
  2. Offline

    Kurai Ookami

    so small problem I'm not quite sure what's wrong we had a power surge and it shut down the server after trying to start it up I get the error
    Show Spoiler

    Code:
    00:02:12 [INFO] [BarterSigns] Loading BarterSigns v1.2.4.
    00:02:12 [SEVERE] Error occurred while enabling BarterSigns v1.2.4 (Is it up to
    date?): special characters are not allowed
    unacceptable character ' ' (0x0) special characters are not allowed
    in "<reader>", position 0
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:98)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:191)
            at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:63)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
            at org.bukkit.util.config.Configuration.load(Configuration.java:90)
            at com.dumptruckman.bartersigns.config.ConfigIO.load(ConfigIO.java:35)
            at com.dumptruckman.bartersigns.BarterSignsPlugin.reload(BarterSignsPlug
    in.java:124)
            at com.dumptruckman.bartersigns.BarterSignsPlugin.onEnable(BarterSignsPl
    ugin.java:55)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:1057)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:379)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174
    )
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

    and the signs no longer function at all, any help would be greatly appreciated

    EDIT: Found out what happened, the abrupt shutdown of the server corrupted the data file replacing every entry with a NUL marker of some sort. Had to delete the Data file and let the plug-in generate a new one.
     
  3. Offline

    rcola45

    Hey Im trying to set the permissions to false and I see that I must alter that in config.yml but I don't seem to have a config.yml file. Any suggestion as to why that may be?

    (Usepermissions that is)
     
  4. Offline

    nytmaster

    Any Update for R6 Server ?
     
  5. Offline

    stanenrik

    how can i amount the stock faster then just klicking all the time ?
     
  6. Offline

    Svosj

    Thanks for an awesome plugin dumptruckman!
    I am currently working on a Norwegian translation of BarterSigns (you can upload it here if you want to). Is it possible for you to add the Norwegian letters æ, ø and å?
    Sincerely,
    Svosj
     
  7. Offline

    Zelgald

    Hey,
    Can you update ur plugin so it works with minecraft 1.2 and 1.3?
    When I put it into my plugin folder, it doesnt even create its own BarterSigns folder.
    Thanks
     
  8. Offline

    yat_

    Please update this amazing plugin!
     
  9. Offline

    Kurai Ookami

    Was just wondering, is there any plan in the foreseeable future to update this plugin?
     
  10. Offline

    CGbozzB

    Hello, can you update the bartersign?! If you have enough time, thank you!
     
  11. Offline

    ray0911

  12. Offline

    Deano

    Doesnt work yet. :( 1.2.3
     
  13. Offline

    TheSporeGA1

    Still doesn't work.
     
  14. Offline

    yat_

    Seems there is still a long way for this plugin to update.
    Is there any barter function plugin instead of this one?:(
     
  15. Offline

    Derek S

    This plugin makes the people on my server happy :) Please update this great plugin. Its one of the very few that is commandless, graceful and avoids the burden of a bloated monetary system. It's a great addition to any semi-vanilla server.
     
  16. Offline

    mattyluggs

    Hey this plugin doesn't work for 1.2.5, server hosts have tried to update it however there are still issues with it? Is this ever going to be properly updated or will i need to go somewhere else?
     
    diannetea likes this.
  17. Offline

    dumptruckman

    I am currently in the middle of a complete rewrite of this plugin. It is taking time, that's all I can say. The old code was so terrible (I was a java noob when I wrote it!) that I couldn't bring myself to simply update it, it needed to be rewritten.
    Once the new version is done it will be far far easier to update in the future. I know it's taking a while but I have a lot of plugins to care for. I haven't forgotten this one!
     
  18. Offline

    ruforik

    super is a unique plugin
     
  19. Offline

    mattyluggs


    Cheers for the reply, can't wait for the new and improved Barter Signs as there is no other plugin that seems to provide this feature, as there all based on economy these days! My whole server is eagerly awaiting this update :p
     
  20. Offline

    dumptruckman

    Okay guys. I've been having a really hard time trying to get this plugin rewritten. I don't know when that's going to be able to be finished. As such, I decided to dredge through the old crappy code and at least make it work with latest MC. It is available in the DL link up top.
     
  21. Offline

    Yotarian

    Thanks for keeping us updated, I look forward to when you get the time to finish reworking it. It was my favorite "shop" plugin so I'll be patient!
     
  22. Offline

    QualityQ

    When I restart the server the shopsigns are no more working.

    Code:
    30.04 17:26:58 [Server] INFO    ... 12 more
    30.04 17:26:58 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    30.04 17:26:58 [Server] INFO    at java.lang.reflect.Method.invoke(Method.java:597)
    30.04 17:26:58 [Server] INFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    30.04 17:26:58 [Server] INFO    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    30.04 17:26:58 [Server] INFO    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    30.04 17:26:58 [Server] INFO    at com.dumptruckman.bartersigns.listener.BarterSignsBlockListener.onBlockDamage(BarterSignsBlockListener.java:138)
    30.04 17:26:58 [Server] INFO    at com.dumptruckman.bartersigns.sign.BarterSign.getMenuIndex(BarterSign.java:86)
    30.04 17:26:58 [Server] INFO Caused by: java.lang.NullPointerException
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:537)
    30.04 17:26:58 [Server] INFO    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:141)
    30.04 17:26:58 [Server] INFO    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:213)
    30.04 17:26:58 [Server] INFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    30.04 17:26:58 [Server] INFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    30.04 17:26:58 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    30.04 17:26:58 [Server] INFO org.bukkit.event.EventException
    30.04 17:26:58 [Server] SEVERE Could not pass event BlockDamageEvent to BarterSigns
     
  23. Offline

    Rayden

    When I place a sign with [barter], the shop isn't created. Also get this in the log:

    Code:
    2012-05-06 15:22:53 [SEVERE] Could not pass event SignChangeEvent to BarterSigns
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1265)
        at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.IncompatibleClassChangeError: Expected static method com.palmergames.bukkit.towny.object.TownyUniverse.getTownBlock(Lorg/bukkit/Location;)Lcom/palmergames/bukkit/towny/object/TownBlock;
        at com.dumptruckman.bartersigns.listener.BarterSignsBlockListener.onSignChange(BarterSignsBlockListener.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        ... 10 more
     
  24. Offline

    Dritter31

    After setting up all the things, the plugins tells me to "leftclick with an accetable item to make purchase". I want e.g. an torch as payment. So i hold a torch in my hand and left-click. The message still appears.

    Any Help?
     
  25. Offline

    Jeronimo654

    i can't buy anything because i'm an admin. please fix this :)
     
  26. Offline

    Derek S

    Give yourself these default bukkit permissions nodes with PermissionsBukkit (or whatever you use) and then you can op and deop yourself in order to use Bartersigns. Its a work-around, but its better than not being able to use this plugin.

    Code:
         bukkit.command.op.give: true
         bukkit.command.op.take: true
    
     
  27. Offline

    Jeronimo654

    solved it ;) i can buy on my own signs while crouching . BTW i've got another error. some signs are dropping down after entering [barter]. After reloading everything is working again. And another error :D : After a server restart i have to reload to get the signs working again. The signs are showing the main screen but doesn't react.
     
  28. Offline

    laurrie

    hey, i want to put money as a payment instead of an item how do i do this?
     
  29. Offline

    Jeronimo654

    Use another Plugin :D
     
  30. Offline

    Kurai Ookami

    hey dumptruck haven't heard any news on this plug-in in months. Any news or progress report to keep us eagerly waiting?
     
  31. Offline

    Hughesey_Nihtz

    When i type on a sign: [barter] it comes up with you do not have permission to access that sign? I am the owner of the server and I don't know why it isn't letting me use it?
     

Share This Page