Inactive [MECH/ECON] Money2XP v1.1.4 - train your mcMMO-skills using money - now with zones! [1000]

Discussion in 'Inactive/Unsupported Plugins' started by TZer0, Apr 7, 2011.

  1. Offline

    TZer0

    Support for this plugin has been discontinued. If you wish to take over, please contact me.

    Money2XP - train your mcMMO-skills using iConomy/BOSEconomy-money

    Downloads
    Old version(1.0, iConomy 5, mcmmo ~1.0, pre 1.0.43)

    Old version(0.2.2, iConomy 4):


    Dependencies:
    Features:

    • Allows players to train their skills using iConomy-money, BOSEconomy-money or EssenaitalsEco-Money.
    • Easy to set up
    • Will allow rich players to spend some cash :)
    • Training-zones!
    Permission-nodes:

    Commands (you may use /m2xt and /m2xs instead of /m2xtrain and /m2xset):
    Show Spoiler

    • /m2x and /m2xset - general help
    • /m2x (l)ist - shows skills and prices
    • /m2x [skillname] [amount] - Purchases [amount] xp for [skillname]
      • Usage:
        • /m2x archery 100 - gives you 100 archery xp.
    • /m2x [skillname] i[amount] - Purchases [amount]*[xpPerItem] xp for [skillname]
      • Usage:
        • /m2x archery i100 - purchases 100*xpPerItem archery xp for 100 of [item]
    • /m2x (c)heck [skillname] [amount] - Shows how much a purchase will cost you
      • Usage:
        • /m2x check archery 100 - Shows you how much 100 archery xp will cost you.
    • /m2xset [skillname/default] [price-per-xp] - sets the price per xp for [skillname] to [price-per-xp], 0 = default, -1 = unavailable
      • Usage:
        • /m2xs archery 150 - sets the price per xp for archery to 150
        • /m2xset default 75 - sets the default price per xp to 75.
    • /m2xset [skillname] i[itemId]:[xpPerItem] - Allows players to purchase xp for [skillname] using item with [itemId] at a rate of [xpPerItem]
      • Usage:
        • /m2xs archery i3:10 - allows purchases of archery xp for 10 xp per dirt-block.
    • /m2xtrain (z)ones {t/true/f/false} - turn training zones on/off
      • Usage:
        • /m2xt z t - enables zones
        • /m2xtrain zones f - disables zones
    • /m2xtrain (n)ode [1/2] - sets nodes for area-creation (to your current location, which two corners you define is irrelevant)
      • Usage:
        • /m2xt n 1
        • /m2xt node 2
    • /m2xtrain (c)reate [name] - creates a zone using nodes.
      • Usage:
        • /m2xt c myzone
    • /m2xtrain (l)ist {#} - shows training zones
    • /m2xtrain (s)elect [name] - select an area
      • Usage:
        • /m2xt s myzone
    • /m2xtrain (a)rea - shows information about the selected area
    • /m2xtrain (r)e(s)ize - resize selected area
    • /m2xtrain (ad)d [skillname] - adds a skill to selected area
      • Usage:
        • /m2xt ad archery
        • /m2xtrain add swords
    • /m2xtrain (d)el [skillname] - removes a skill from selelected area
      • Usage:
        • /m2xt d archery
        • /m2xtrain delete swords
    • /m2xtrain (d)elete(a)rea [name] - deletes an area
    • /m2xtrain (r)eload - reload config, reports errors
    Available skills: mining, woodcutting, excavation, repair, herbalism, acrobatics, swords, archery, unarmed, axes, taming






    Setting up a training-zone
    Show Spoiler


    Remember: before doing this, run: "/m2xt z t"
    1. First set up two nodes, these should span the zone you want to be able to train in. "/m2xt n 1" and then "/m2xt n 2" somewhere else
    2. Then create the area: "/m2xt c myareaname"
    3. Select the area: "/m2xt s myareaname"
    4. Add skills which are trianable in the area: "/m2xt ad skillname", for instance: "/m2xt ad archery"



    Setting up a sign-shop
    Show Spoiler

    First line: [m2x]
    Second line: skillname
    Third line: xp-amount
    Fourth line: will be automatically replaced by "Cost: %.2f", price

    If the price changes later (say, archery-xp goes from 10 to 20), then the fourth line will be automatically replaced with the new price and the purchase aborted so that the purchaser may re-review the deal.


    Tricks:
    • -1 disables skill-purchases for a skill, 0 sets it to the default value
    • You can set the default-price to -1 to prevent skill-purchases for all skills except for those with a price set.
    Changelog:

    • v1.1.4
      • Fixed sign-shop issue.
    • v1.1.3
      • Fixed issue when right-clicking without having access to money2xp.user.
    • v1.1.2
      • Fixed NPE when running without permissions.
      • Made it possible to set prices through console (will add some other functions currently under m2xt soon to console)
      • Fixed some other minor issues.
    Previous changes (open)


    • v1.1.1
      • Fix for using zones and signs simultaneously.
    • v1.1
      • Sign-shop
    • v1.0.1
      • Updated to latest mcmmo-version thanks to @NuclearW
      • Fixed exception when running m2x in console
    • v1.0
      • EssentialsEco-support
      • Allow purchases using items
      • Allows xp-costs below 1. (double instead of int)
    • v0.2.3
      • iConomy 5
    • v0.2.2
      • Added taming to list of skills.
    • v0.2.1
      • Fixed null pointer exception on start if no areas are present.
    • v0.2
      • Training-zones
      • Aliases
      • use float/double to store xp-costs so that one can get more than one xp per unit of money.
    • v0.1.5
      • Fixed the balance-message after purchase.
    • v0.1.4
      • Fixed broken iConomy-support from v0.1.2
    • v0.1.3
      • Fixed a minor bug
    • v0.1.2
      • Added BOSEconomy-support on MCbyWay's request.
    • v0.1.1
      • Fixed some small bugs
    • v0.1
      • Initial release



    Todo:
    • [high] Use Spout and make a video-tutorial obsolete.
    • [medium] Make a video-tutorial.
    • [medium] Options for limiting how much a zone allows you to train (levelcap).
    • [medium] Purchasing X levels instead of xp. Will be added as soon as mcMMO is fixed!
    • [medium/low] xp-cost increase per level or related to amount of xp already purchased for that skill.
    • [low] Let players become trainers when reaching high enough levels.
    • Anything you can come up with!
    Feedback, as always - is welcome.
     
    kahlilnc likes this.
  2. Offline

    TZer0

    Uhm, how can I simplify it any more? It is /m2x skillname amount - simpler than /xp train skillname amount - I may add an alias though, so that people can use xp.

    Also, signs are on todo list.

    Sign shop is up.

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

    xXRustyIronXx

    How do I use it. It says. You dont have permission to use this
    help
     
  4. Offline

    AdamDaBomb11

    I was wondering if there is a way to customize the prices of XP, because 10000$ for 100 xp on my server is so insanely priced its not even worth it. If you could let me know that would be great.

    ---NVM--- figured it out :S
     
  5. Offline

    TZer0

    Post your permissions-file and plugin etc. versions.
     
  6. Offline

    alfskan

    I use PEX.
    - money2xp.user doesnt work. not supported?

    but - money2xp.* works fine. (include admin's authority)
     
  7. Offline

    TZer0

    What in particular is not working? Buying xp?
     
  8. Offline

    turtlemoviesco

    Is permissions really needed? beacuse since I am not smart enough to get permissions to work, my server does not use it.
     
  9. Offline

    TZer0

    No, it is not, it is supported, but not required.
     
  10. Offline

    turtlemoviesco

    When I put it on server I got this error.

    08:55:31 [SEVERE] Could not pass event PLAYER_INTERACT to Money2XP
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at tzer0.Money2XP.Money2XPPlayerListener.onPlayerInteract(Money2XPPlayer
    Listener.java:94)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 14 more
    08:55:34 [SEVERE] Could not pass event PLAYER_INTERACT to Money2XP
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at tzer0.Money2XP.Money2XPPlayerListener.onPlayerInteract(Money2XPPlayer
    Listener.java:94)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    08:55:36 [INFO] The automatic update-Check only work every 6 hours, the last che
    ck was 2 minutes ago.
    08:55:39 [SEVERE] Could not pass event PLAYER_INTERACT to Money2XP
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at tzer0.Money2XP.Money2XPPlayerListener.onPlayerInteract(Money2XPPlayer
    Listener.java:94)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    08:55:40 [SEVERE] Could not pass event PLAYER_INTERACT to Money2XP
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at tzer0.Money2XP.Money2XPPlayerListener.onPlayerInteract(Money2XPPlayer
    Listener.java:94)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    08:55:43 [SEVERE] Could not pass event PLAYER_INTERACT to Money2XP
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at tzer0.Money2XP.Money2XPPlayerListener.onPlayerInteract(Money2XPPlayer
    Listener.java:94)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    08:55:44 [SEVERE] Could not pass event PLAYER_INTERACT to Money2XP
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at tzer0.Money2XP.Money2XPPlayerListener.onPlayerInteract(Money2XPPlayer
    Listener.java:94)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
     
  11. Offline

    TZer0

    Fixing this and another issue. Update will be out in a few minutes.

    Edit: done.
     
  12. Offline

    mooman219

    On my server, when ever a PlayerInteractEvent Fires and the players hand is not empty, The triggering player gets the message "You do not have Permissions to do this"

    I have Permissions, I correctly set up the permissions. A Users should not get that message on a PlayerInteractEvent.

    I looked through your source code and found the issue:
    https://github.com/TZer0/Money2XP/blob/master/src/tzer0/Money2XP/Money2XPPlayerListener.java#L94-97
    That block of code is in the wrong spot. It should come after Here. That is to avoid the check until it is needed.
     
  13. Offline

    TZer0

    Oops! Yes, indeed.

    Fixed.
     
  14. Offline

    mooman219

    Thanks :D
     
  15. Offline

    TZer0

    Actually: thank you! I mean, you pointed out a blatant error which I should've fixed. ;)
     
  16. Offline

    kazeen

    It works but is their a folder and config file it generates
     
  17. Offline

    lunt13

    Is there a way to make this buying of experience retroactive? For example you can buy level 1 archery for 3 gold, level 2 archery would cost 5 gold, level 3 archery 8 gold, and so on?
     
  18. Offline

    TZer0

    Not yet. It might be added.
    Yes, but you shouldn't touch it. Everything can (and should) be configured through in-game commands.

    If you accidentally break the plugin through this, don't come crying here. ;)
     
  19. Offline

    kelendo1

    Must you use Permissions 2.5.5 for this? I am using Permissions 2.7.4 and people can not use the M2X signs I have made. I gave the groups the permissions nodes and everything. Also me as being an OP, I can use the signs but they take my money and do not give me XP in that skill. Everything as far as setting the prices works for me though.

    I am using Permissions 2.7.4 and mcMMO 1.0.34. Help would be very appreciated. Thanks
     
  20. Offline

    TZer0

    Update mcMMO and Money2XP to the lastest versions and this should be fixed.
     
  21. Offline

    Jcs

    Hey i've the latest version of mcMMO and money2XP but the users canno't use signs to buy skill
    they must use the command /m2x [skillname] etc....
    - money2xp.user (allow to buy skill with signs?)<<

    you should do more permissions !
     
  22. Offline

    TZer0

    Ah. Damn. I've realized what blunder I've made. Terribly sorry: 1.1.4 is out and should fix this. I made a small typing error and made the sign-handling code check for money2xp.player instead of money2xp.user.

    Sorry about this!
     
  23. Offline

    Jcs

    Thank you its working now, nice plugin
     
  24. Offline

    atlem

    can you make it for essentials economy ? that whoud be awsome
     
  25. Offline

    TZer0

    Code:
    v1.0
    
        EssentialsEco-support
    :p
     
  26. Offline

    Doctor G33K

    For some reason using this all exp seems to ALWAYS be 25% of the amount request, regardless of the cost. F.e., I put in /m2x axes 4000 and I get 1000 exp, for $4000. If I change the price to be $4 per exp I get 1000 exp still, but for 16,000. Kind of a pain to work with. Help? Tried it with signs instead of zones, same thing.

    Any ideas what the problem is?

    We use 1.13 mcmmo, and 5.01 iConomy.
     
  27. Offline

    TZer0

    Whoa, right now.. no idea? I haven't seen any other report like this. May I join your server at some point? Just pm me the info.
     
  28. Offline

    Rick132500

    Update to 1060?
     
  29. Offline

    TZer0

    It runs on 1060.
     
  30. Offline

    Malific

    I'll report this as well, only I'm getting it 50% exp. I'll pm my server IP to you
     
  31. Offline

    TZer0

    Don't worry. I've reported this issue to Mcmmo. The problem is on their end, not mine.
     

Share This Page