Spigot Basic Economy 1.4

A simple, easy to use and set up economy plugin

  1. Trophonix submitted a new resource:

    Basic Economy - A simple, easy to use and set up economy plugin

    Read more about this resource...
  2. can we only put this plugin in roleplay and roleplay nether and end world ??

    So can we put this plugin only on many world and disable it at all others world like freebuilds creatif ...

    So can you add in config enabled world

    thanks !
  3. Alright! I will add the command /beco world <on/off/true/false/yes/no> in the next update, and you will just have to stand in the world you want to change. Worlds will be true by default. Sound good? :)
  4. thank you ! I will test your plugin today :)
  5. This is a cool plugin! But whenever i leave the server, and relog my money resets :l. How do I fix this?
  6. don't work sorry :(

    Code (Text):
    [11:51:03] [Server thread/ERROR]: Could not load 'plugins/basiceconomy.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: main/java/com/trophonix/basiceconomy/Main : Unsupported major.minor version 52.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:288) [spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at java.lang.Thread.run(Thread.java:745) [?:1.7.0_75]
    Caused by: java.lang.UnsupportedClassVersionError: main/java/com/trophonix/basiceconomy/Main : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_75]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[?:1.7.0_75]
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.7.0_75]
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[?:1.7.0_75]
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_75]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_75]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_75]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_75]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_75]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_75]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_75]
        at java.lang.Class.forName0(Native Method) ~[?:1.7.0_75]
        at java.lang.Class.forName(Class.java:274) ~[?:1.7.0_75]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot_vgbin.jar:git-Spigot-9a88a38-e2c4f20]
        ... 6 more
  7. Are you using 1.8?
  8. Yes and all others plugins works
  9. Need a null check.
    Using pay from console throws error:

    Code (Text):
    12:02:01 PM [javastacktrace]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:642) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:628) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:404) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:368) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
    12:02:01 PM [javastacktrace]     at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    12:02:01 PM [javastacktrace] Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_8_R3.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    12:02:01 PM [javastacktrace]     at main.java.com.trophonix.basiceconomy.commands.CommandPay.onCommand(CommandPay.java:26) ~[?:?]
    12:02:01 PM [javastacktrace]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
  10. So, what about Vault??
  11. Ok... You are saving the balances as uuid's and calling for name, and you have it set to set the balance of a uuid to 0 if the name is not found. So everytime you log out and log back in, it resets the balance because it can not find the user name. You may also want to store this in a database instead of the config. It will make a mess of that config file if you got very many people on a server.
    Now for some suggestions... fix the uuid issue first and foremost. Fancy up the signs, maybe add some color for the [Buy] [Sell] and price and currency symbol, refer to the item name or type instead of id, this will make it easier for most players to identify the item and allow the signs to speak for themselves instead of needing itemframes or what not to represent the sign. Protect the sign, I can't really overly test this, but it appears that you can break a sign without needing op or permission, you can also create a sign without op or permission. Hooking Vault into the plugin would be a big plus as well. Many plugins that require an economy, require vault to be able to hook into the econ.
    This really could be a great plugin, especially if you hook vault into it. It could even make a great dev resource so if a dev decides to make a little plugin requiring an economy, they can test it without having to build an economy plugin... or at least that's my thinking. lol
    Hope you don't mind the criticism, its purely meant to be constructive.
    I won't rate the plugin until you get the chance to fix some bugs, its only fair you know. :)
  12. Criticism is invaluable. Thank you very much. :)
    I've fixed the bugs you talked about, and added color to the signs.

    As for the vault suggestion, I might rework the plugin entirely at some point and allow vault integration.

    Anyway, I will release the new version in a bit.
  13. Trophonix updated Basic Economy with a new update entry:


    Read the rest of this update entry...
  14. Looking much better... but.... you can still break the signs without op or permission.
  15. That's odd. I added a check for OP or for the permission "basiceconomy.adminshop.break"... I'll look into it.
  16. Basically essentials shop signs?