[RPG/MECH] mcMMO v1.2.07 - RPG Addiction Redefined! Multi-Lingual! [1337][1549]

Discussion in 'Inactive/Unsupported Plugins' started by nossr50, Feb 5, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    nossr50

  2. Offline

    Galaxy

    How can I reset everyone's stats if I am using MySQL?
     
  3. Offline

    TehJammers

    did you run the craftbukkit snapshot before you started adding plugins? It needs to be run once so it can build a few folders and things. It sounds like you might have not installed craftbukkit correctly.
     
  4. Offline

    Galaxy

    @TehJammers
    It did I am just wondeing if here is a command
    but if not tell me how to do it in the folder please?
     
  5. Offline

    TehJammers

    @Galaxy oh actually i was talking to stendon :p try deleting the mcmmo user stats file.
     
  6. Offline

    stendon

    i think i did but let me try again
     
  7. Offline

    MineralMC

    The unarmed skill is still broken. I've had players sitting around constantly punching each other (PVP is turned off) to get their unarmed skill quickly levelled up.
     
  8. Offline

    stendon

    Nope it still doesn't work but do you want me to make a video of what i did?
     
  9. Offline

    Pandarr

    Honestly your best bet is to drop the tables in the database. Otherwise you can use the in game command to manipulate everybody's stats down but that would take a while.

    When you bring the server back up mcmmo will make the tables anew. No configuration is stored in the tables so you won't lose any of that. Just user specific stuff.
     
  10. Offline

    lupusthethird

    @nossr50
    Actually, I got it to work!!! I think its a bug with permissions. I had myself set as Admin with -'*' on... and to make sure health regen was off for non admin I just deleted myself from the admin list. I reloaded the properties and everything but I was still getting health regen. Then I decided to add myself back in as a Default user and, then it worked... I guess permissions just "remembers" your group even if you delete a name form the list
     
  11. Offline

    gsgrego

    getting this over and over and over on cb740

    2011-05-02 23:37:11 [SEVERE] Could not pass event BLOCK_DAMAGE to mcMMO
    java.lang.NullPointerException
    at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
    at com.gmail.nossr50.mcPermissions.herbalismAbility(mcPermissions.java:56)
    at com.gmail.nossr50.skills.Skills.monitorSkills(Skills.java:154)
    at com.gmail.nossr50.mcBlockListener.onBlockDamage(mcBlockListener.java:194)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:358)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:180)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:87)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:433)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-02 23:37:11 [SEVERE] Could not pass event BLOCK_DAMAGE to mcMMO
     
    txtsd likes this.
  12. Offline

    txtsd

    So I've looked and found absolutely no guides that show how to make this work with MySQL.

    I've installed MySQL and it's running, but I can't get mcmmo to work with it.

    Code:
    23:49:18 [INFO] SQLException: Unknown database 'mcmmo'
    23:49:18 [INFO] SQLState: 42000
    23:49:18 [INFO] VendorError: 1049
    23:49:18 [SEVERE] null loading mcMMO v1.0.05 (Is it up to date?)
    java.lang.NullPointerException
            at com.gmail.nossr50.Database.Write(Database.java:99)
            at com.gmail.nossr50.Database.createStructure(Database.java:43)
            at com.gmail.nossr50.mcMMO.onEnable(mcMMO.java:81)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    23:49:18 [INFO] Done (0.085s)! For help, type "help" or "?"
    23:49:30 [SEVERE] Could not pass event PLAYER_LOGIN to mcMMO
    java.lang.NullPointerException
            at com.gmail.nossr50.Database.GetInt(Database.java:118)
            at com.gmail.nossr50.datatypes.PlayerProfile.loadMySQL(PlayerProfile.java:73)
            at com.gmail.nossr50.datatypes.PlayerProfile.<init>(PlayerProfile.java:51)
            at com.gmail.nossr50.Users.addUser(Users.java:70)
            at com.gmail.nossr50.mcPlayerListener.onPlayerLogin(mcPlayerListener.java:83)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:260)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:152)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:82)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    23:49:30 [INFO] txtsd [/127.0.0.1:55435] logged in with entity id 145
    23:52:37 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to mcMMO
    java.lang.NullPointerException
            at com.gmail.nossr50.mcPlayerListener.onPlayerCommandPreprocess(mcPlayerListener.java:542)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:230)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:669)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    >
    Any help will be appreciated!
     
  13. Offline

    Pandarr

    Have you created the user and database in mysql? Or did you just install MySQL and cross your fingers? :)

    It looks like you didn't create the database in mysql for mcmmo to use. Here is what you need to do...

    First, open your mcmmo.properties file and look for the following:
    • MySQLuserName=xxxxxx1
    • MySQLdbPass=xxxxxxx2
    • MySQLdbName=xxxxxxxx3
    Your values will not be xxxxxxx but take note of them as you will need them.

    At the command prompt run mysql. The following command should work:

    mysql -u root -p

    This will run mysql as user root with no password. You will probably be prompted for a password, just hit enter unless you set one during the install (can't recall if it asks you to or not).

    Now you should get a new prompt. Congratulations you're using MySQL! Type the following commands, pressing enter after each semi-colon. Don't forget the semi-colon!

    Code:
    CREATE DATABASE xxxxxxx3; [enter]
    CREATE USER 'xxxxxxx1'@'localhost' IDENTIFIED BY 'xxxxxxx2'; [enter]
    GRANT ALL PRIVILEGES ON xxxxxxx3.* TO 'xxxxxx1'@'localhost' WITH GRANT OPTION; [enter]
    FLUSH PRIVILEGES; [enter]
    EXIT [enter]
    There is no semi-colon after EXIT.

    This is:
    Creating the database for mcmmo.
    Creating a user with a password.
    Letting MySQL know to give that user permission to that database.
    Committing the changes (I think... something kinda like that).
    Exiting.

    MCmmo will create the tables and fill in the data upon launching bukkit.

    Start up bukkit and you're on your way... hopefully.
     
    txtsd likes this.
  14. Offline

    txtsd

    Worked like a charm! Thanks a lot!
    I've worked with databases before, but not MySQL in particular. I had no idea about CREATE USER and GRANT PRIVILEGES.
     
  15. Offline

    spunkiie

    Still waiting for l8n :(

    LevelCraft already has it.
     
  16. Offline

    BlackPandemic

    Perhaps I'm a tard but I can't for the life of me figure out what l8n is...
     
  17. Offline

    Irritatedcone

    Could you make it so that you can als gain archery,swords etc. XP from killing cows, pigs and chickens?
    Or make it like toggleable because I really need that :p
    Otherwise this is an truly epic plugin :D
     
  18. Offline

    MatCat

    Ok with mysql I after a few minutes my console gets spammed with sql client closed socket or something like that, loops until restart. turned mysql option off for now, if once this is figured out will it convert existing data to mysql once I do switch it back?
     
  19. Offline

    EmanuxJade

    Hello guy and compliment for great plugin!

    i have a question, can i edit loot stats xp?

    ex:

    stone 01 <-break gain 2x
    wood 01 <-break gain 1x

    ecc

    is it possible?
     
  20. Offline

    spunkiie

    I spelled it wrong, i mean: i18n

    i.e: A way to customize messages so I can translate the plugin to my users

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  21. Offline

    nossr50

    @spunkiie its definitely on my todo list
     
  22. Offline

    tha d0ctor

    is thereany way to migrate the flatfile to the mysql database? can someone maybe make a script please? thanks
     
  23. Offline

    Livewire

    Part of the original post. No separate script required, it's built in.
     
  24. Offline

    TZer0

    Minor bug (1.0.05, jk740):
    While abilities are activated: blocks destroyed do not count in statistics.


    Suggestion: change taming to a general animal-related skill - for instance, give xp and bonuses when hitting sheep for their wool etc.
     
  25. Offline

    darkwarriors

    my server lags so much every 30 minutes.. and the only causes of this lag is mcmmo because before 0 lag.

    i have bi tri Xeon WG
    24 giga ram
    2 tb hd
    200 mbit

    on ovh farm.

    possible solution? ( i use mysql innodb )
     
  26. Offline

    Livewire

    Confirming, although I get it after a day or so of the server running.

    It's just bad code - it's returning a valid error:

    Code:
    2011-05-01 10:51:19 [INFO] SQLException: No operations allowed after connection closed.Connection was implicitly closed by the driver.
    2011-05-01 10:51:19 [INFO] SQLState: 08003
    2011-05-01 10:51:19 [INFO] VendorError: 0
    But it doesn't appear to make any effort to reconnect after losing its connection.

    Whats worse is it's not happening to the other 2 apps running on my PC 24/7, which also maintain a constant connection to the mysql server. They're staying online and connected without falling back to their reconnect code, so it's not an issue with the mysql server itself.

    It's on my list to convert back to FlatFile because of this, at least until MySQL gets adjusted so when it errors out it actually tries to reconnect properly.


    For the curious as well, it's an absolute nightmare when it comes to logging that to the server as well. 5,101 lines in 8 minutes.
     
  27. Offline

    NeoGriim

    Is there a way to change the double drop rates or take them off completely? I don't like the fact that with this my server members can farm diamonds 3x faster just by right clicking before they tear up a diamond vein. I'm looking in the config files in the folder but that only lists users so I tried going into the .jar and I can't read any of the files. >.>
     
  28. Offline

    TehJammers

    Don't give them the mcmmo.ability.mining permission and/or the mcmmo.skills.mining permission.

    I'm telling you though, it's a nice treat to grab a whole heap of diamonds with a high skill level :)
     
  29. Offline

    tha d0ctor

    i had similar errors, i m just removing mysql until the kinks are worked out
     
  30. Offline

    txtsd

    What's this? It was working fine earlier this morning. I restarted my server a while ago and my log is spammed with these-

    Code:
    13:10:17 [SEVERE] Could not pass event PLAYER_JOIN to mcMMO
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroup(Control.java:535)
            at com.nijiko.permissions.Control.permission(Control.java:308)
            at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
            at com.gmail.nossr50.mcPermissions.motd(mcPermissions.java:126)
            at com.gmail.nossr50.mcPlayerListener.onPlayerJoin(mcPlayerListener.java:90)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:206)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:94)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:95)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    13:10:18 [SEVERE] Exception in thread "Timer-0"
    13:10:18 [SEVERE] java.lang.NullPointerException
    13:10:18 [SEVERE]       at com.nijiko.permissions.Control.getGroup(Control.java:535)
    13:10:18 [SEVERE]       at com.nijiko.permissions.Control.permission(Control.java:308)
    13:10:18 [SEVERE]       at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
    13:10:18 [SEVERE]       at com.gmail.nossr50.mcPermissions.herbalismAbility(mcPermissions.java:56)
    13:10:18 [SEVERE]       at com.gmail.nossr50.skills.Skills.monitorSkills(Skills.java:154)
    13:10:18 [SEVERE]       at com.gmail.nossr50.mcTimer.run(mcTimer.java:32)
    13:10:18 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    13:10:18 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    13:10:21 [SEVERE] Could not pass event PLAYER_INTERACT to mcMMO
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroup(Control.java:535)
            at com.nijiko.permissions.Control.permission(Control.java:308)
            at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
            at com.gmail.nossr50.mcPermissions.repair(mcPermissions.java:216)
            at com.gmail.nossr50.mcPlayerListener.onPlayerInteract(mcPlayerListener.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    13:10:22 [SEVERE] Could not pass event BLOCK_DAMAGE to mcMMO
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroup(Control.java:535)
            at com.nijiko.permissions.Control.permission(Control.java:308)
            at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
            at com.gmail.nossr50.mcPermissions.herbalismAbility(mcPermissions.java:56)
            at com.gmail.nossr50.skills.Skills.monitorSkills(Skills.java:154)
            at com.gmail.nossr50.mcBlockListener.onBlockDamage(mcBlockListener.java:194)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:358)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:180)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:87)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:433)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    13:10:22 [SEVERE] Could not pass event BLOCK_DAMAGE to mcMMO
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroup(Control.java:535)
            at com.nijiko.permissions.Control.permission(Control.java:308)
            at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
            at com.gmail.nossr50.mcPermissions.herbalismAbility(mcPermissions.java:56)
            at com.gmail.nossr50.skills.Skills.monitorSkills(Skills.java:154)
            at com.gmail.nossr50.mcBlockListener.onBlockDamage(mcBlockListener.java:194)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:358)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:180)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:87)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:433)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  31. Offline

    Ratchet

    why did you take gravel > clay out :( don't want to install an entirely separate plugin for a feature that was doing fine in mcMMO. ugh.
     
Thread Status:
Not open for further replies.

Share This Page