[ECON/ADMIN] MoneyPlugin v1.2.0 - Dynamic updating sign shop plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Hoddie54, Aug 20, 2011.

  1. Offline

    Hoddie54

    MoneyPlugin - Dynamic updating sign shop plugin
    Version: v1.2.0
    This plugin dynamically updates the server's prices based on supply and demand every 15 minutes. Alternatively type /update and all updates will be carried out. Firstly Admins must create signs with the following formats (OP).
    [​IMG]
    After that it will auto format the sign to look a little something like this:
    [​IMG]
    To buy from the sign players will walk up to it. Right click to buy. Left click to sell. To set the amount you wish to buy/sell type /mpbuy <amount> or /mpsell <amount>. This number must be 1-64.

    Setting up the config (Example):
    Firstly, The cost is self-explanatory. Volatility is the amount of item taken to raise the price by 1. For example to make it for every 10 gold sold, the price increases by 1, set the vol of gold to 0.1. At the moment this only supports 1 world so set the Main world name you will be using (Important). Make sure YML Syntax is correct also. With Redstone it does use the letter 'E' letter; that is standard form for Java. NOTE: When using wool the name of the item will be wool:5, for example in the config, however it will give you/take coloured wool of that colour.

    If you want it to round the values to 2 decimal places then set general.round to true. If not keep it false.

    Code:
    vol:
        sand: 0.002
        gold_ingot: 0.1
        iron_ingot: 0.02
        wood: 0.002
        bread: 0.02
        coal: 0.01
        redstone: 2.0E-4
        diamond: 0.5
        stone: 0.002
        gravel: 0.002
        wool: 0.002
        cobblestone: 0.002
        gold: 0.09
    items:
        sand: 3.001606754820753
        gold_ingot: 48.882349394893374
        iron_ingot: 29.60657217536589
        wood: 1.8320634123489719
        bread: 40.05814351429468
        coal: 6.17622104377436
        redstone: 0.16269527322892108
        diamond: 405.98151403369127
        stone: 1.5037704391671132
        gravel: 2.9393868282252025
        wool: 10.005385513029024
        cobblestone: 0.9979789336217647
        gold: 70.0
    world:
        world: world
    Features:
    • Make a sign shop
    • Choose how much you want to buy/sell
    • Auto-Updating prices
    • Choose your own prices
    Todo:


    • Set the auto update time - HIGH
    • stack number on the sign to buy or sell instead of manually typing in the amount - LOW
    • MultiWorld - MEDIUM
    • New features - LOW
    Download (You need iConomy too)


    Changelog:
    Show Spoiler

    Version 1.2.0
    • Coloured Wool support
    • Changed onEnable message to something more 'normal'
    • Bugfixes
    Version 1.1.1
    • Gets your currencies actual name instead of Dollars.
    Version 1.1.0
    • Rounds all values to 2 decimal places if you want
    • Bugfixes
    Version 1.0.0

    • Releasing my plugin
     
    crazycrafter, 99lool and cvxx7q like this.
  2. Offline

    cvxx7q

    im sure it is completely feasible since the main thing that sets your plugin apart is a Dynamic economy ;)
     
  3. Offline

    Hoddie54

    Coloured wool has now been added. Literally spent all day on it. Please report any bugs to me.

    EDIT:

    Most of the code was re-written, especially how you sell items. (Didn't use built-in methods, had to make my own).
     
    cvxx7q and 99lool like this.
  4. Offline

    99lool

    Nice thanks for Colored Wool support [cake][diamond]
     
  5. Offline

    ChaosGiant

    any chance of being able to either change or hide the update from the chat?
     
  6. Offline

    cvxx7q

    You day shall not be spent in vain! :)
     
  7. Offline

    BioRage

    Hmm, think it's when it auto-updates
     
  8. Offline

    Hoddie54

    That might be because you don't actually have any signs registered.


    And to hide the chat message will be in the next update.
     
  9. Offline

    riuthamus

    Does this use BOSEcon? If not can we get bosecon support?
     
  10. Offline

    Chrisknyfe

    What's up with the 'Gold' shop causing the following error, but not Gold_Ingot? :
    Code:
    2011-08-27 20:51:35 [SEVERE] Could not pass event PLAYER_INTERACT to MoneyPlugin
    java.lang.NullPointerException
        at org.bukkit.craftbukkit.inventory.CraftInventory.all(CraftInventory.java:131)
        at net.tplmc.Hoddie54.MoneyPlugin.MoneyPluginPlayerListener.onPlayerInteract(MoneyPluginPlayerListener.java:111)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:453)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT: Ahh, this is what happens with non-existent items.
    DOUBLE EDIT: Found another bug: non-ops can destroy these signs. Even if WorldGuard prevents it, the sign still gets unregistered.
     
  11. Offline

    newsonandco

    Hi how do i add more items so like ladders, moss stone etc

    Thanks
     
  12. Offline

    Hoddie54

    Inside the config.yml
     
  13. Offline

    newsonandco

    OK i thought that was just checking, great mod thanks.

    I tried doing that and then when i reload and go back to game it will not let me buy it, i am tying to do it to cooked porkchop
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  14. Offline

    ChaosGiant

    hey was wondering, on the moneyplugin if you could set the stores buy price (what i sell to shop) half of what the, stores sell price (what i buy from the shop) i.e if i buy 2 gold ingots its 100 and if i sell the same 2 its 50​
     
  15. Offline

    jenks1999

    Awesome Plugin it has helped me loads and made my life way easier. Also wondering if there is any chance you could add an option to true or false the announcement that comes up on the sales of each material. Via config file... would make my client screen much cleaner. Thanks :)
     
  16. Offline

    Metonymia

    How do I add signs for, like Diamond Chestplates and such? I can't create signs for items that have a name longer than 15 characters...
     
  17. Offline

    Hoddie54

    Use IDs.
     
  18. Offline

    Melonking

    Perfect, keep it up.

    EDIT: Anyway to stop it broadcasting update info, it gets quite annoying with lots of shops.

    EDIT2: It would also be good if you could cap the min and max cost of items.
     
  19. Offline

    Melonking

    Hmm, users on my server don't seem to be able to sell to the signs, only buy from them, ops can however sell to them.
     
  20. Offline

    WeedWorship

    I really want this to be compatible with Essentials Economy please =)
     
  21. Offline

    ShootToMaim

    PermissionsEx support PLEASE.
    iConomy support PLEASE.
     
  22. Offline

    andyru2

    i put the sign up but the id doesn't show up then i cant sell or buy from it
     

Share This Page