[ADMN/GEN] WorldModes 2.0 - world-specific game modes, player command, and inventory perms [1317]

Discussion in 'Inactive/Unsupported Plugins' started by sunkid, Sep 16, 2011.

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

    sunkid

    WorldModes

    All updates and project support is now handled on our DevBukkit site!
     
    natinusala and efstajas like this.
  2. Offline

    sean222222

    Ok i have tried everything im using a software hosting place called servercraft.co and they have a button u click for installing bukkit, after doing so i have been working on ppls permissions, im currently the admin i cannot for any reason change my gamemode through your commands, i am not an op made sure of that. every time i try to use a command it says"An internal error has occurred while attempting to perform this command" i added world.set.* so i can adjust mine or any1 else and i cant even do mine xD. let me know if im doing a normal newb mistake or what.

    EDIT: btw i just tried going throuhg the server and using the commands u listed, and it work fine as for the admin group im having probs with it. Oh another note is i use mcmyadmin its basically a newb control over ur server so the owner with a few clicks can control your server, let me know if i gotta do anything with files to make it work. or maybe your familiar with all this
     
  3. Offline

    Junrall

    With McMyAdmin:
    - Under your admin group, make sure your name is in the Group Members list.
    - Under your admin group, make sure you have * in the Permitted Commands list.
    - Click the Preferences tab at top then go to Server Features, set Permissions Exporting to the type of permissions you are using.
    This should give you, as an admin, use of all commands.
     
  4. Offline

    sean222222

    Ok i did what u said to do my preference from when i was setting the server up was told to set the permissions exporting to groupmanager cause i dont really know what the others do. I restarted the server and such and its still giving me an internal error crap. i have a feeling its conflicting or something. I just wanna be able to take and use the gamemodes cause i got colored names in-game and groups with people and i want my mods to have the options for cretive and survival along with admins but i cant get the admins set-up let alone the self change.

    I have tried everything from chanigng the permissions exporting from groupmanager to permissions to even essentials i ahve no clue what it even does but i tried it

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

    Junrall

    Sorry, I should have asked... Which permissions manager do you have installed on your server? It is an absolute must to set McMyadmin to the one you are using. Currently it only supports Permissions 3.x, GroupManager, and PermissionsBukkit.

    I'm only familiar with Permissions. If you are using Permissions then McMyAdmin only writes to group.yml and users.yml that is located within the /permisions/world folder.

    If you are using GroupManager or PermissionsBukkit then you might ask for help in those threads. The Internal error message you are getting is related to a settings with your permissions plugin or misuse of a command (which I often do!)
     
  6. Offline

    Imm0rt41

    ok, pretty simply, this doesn't set peoples gamemode on first join. it sets it correctly if they switch worlds, but nothing happens on first join. they start off in survival mode, even though the world they spawn into is creative. any ideas?
     
  7. Offline

    twizzlerite

    Very nice plugin! I did find a problem, though, involving inventory restoration and MultiInv. Fill up with the items you want in Creative mode, then switch worlds, and when you switch back, those items will be part of your inventory in Survival mode, too. This only happens with MultiInv. I'm not sure who would be the one to look into a fix =)
     
  8. Offline

    sunkid

    This indicates a problem with your permission set-up. The 'change was cancelled' reply means that the command was accepted but that the desired game mode was not allowed to be set.

    If the PermissionHandler was causing you problems, I would very much like to get to the bottom of it. However, I am not sure how it could cause the error you posted. Can you see if there was an error when the server first started?

    As for your modification, you seem to have introduced an issue where your players' game mode cannot be changed from the console or by other players either if the targeted player does not have the 'worldmodes.set.*' permission. Not sure if that is what you intended, but it's not what everyone would want.

    Good catch! Addressed in 1.5, which I uploaded just now.

    This is an issue with MultiInv that will probably be addressed in the future, I would hope. In the meantime, I would suggest that you do not enable MultiInv for worlds that allow players in either game mode.

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

    mrciku

    Yep it appears when the server starts, even without players.

    And to the second, "not the best, cause changing other people's gamemode will still not work. It's not needed in my server, I didn't bother. "
     
  10. Offline

    Imm0rt41

    btw, avatar rocks, i hate that they cancelled it. and also, how about instead of using permissions so that a person can only be in that gamemode in a world, you use a config file so that it defaults people to that in a world, so the admins can still change gamemodes for others
     
  11. Offline

    sunkid

    You can achieve the same functionality by putting those folks that could be in either mode into a separate group.
     
  12. Offline

    Imm0rt41

    i sorta wanted everyone to be allowed to be in either group if admins allow it, but if i simply give them both perms then they will retain their creative mode between vanilla and freebuild world, and i dont want that.
     
  13. Offline

    Plague

    you have to use a recommended CB for the title, changelog has to show at least two versions without a spoiler
     
  14. Offline

    sunkid

    @Plague : done. can you please make the first post sticky, when youmove this? :D
     
  15. Offline

    Plague

    That I actually HAVE TO do :)
     
  16. Offline

    chaseoes

    So as of 1.4, we no longer need MultiInv to keep separate inventories?
     
  17. Offline

    sunkid

    WorldModes will not provide world-specific inventories, only game-mode specific ones. Since this can lead to situations as described above, I will have to give this some more thought though.
     
  18. Offline

    GravelSocks

    I will try the new version - maybe the permissions problem I was having is now fixed.
     
  19. Offline

    chaseoes

    "added support for restoring inventories when switching out of creative mode"

    Hasn't it always done this though (you get creative inv. when going into the world with that permission, you get survival one when going into world with that permission)? I have no need to use MultiInv, as the only worlds I want to keep separate are my survival and creative ones. So if I don't want people taking items into my survival from creative, I still need MultiInv?

    Also, I'm having some problems, mainly with it not working. :p I have two worlds, each with the proper permissions, yet when I visit my creative world, I keep my survival inventory - and sometimes I even get a creative inventory when going into my survival world! No errors at anything at startup..
     
  20. Offline

    GravelSocks

    @sunkid - it works now - it looks like you fixed/improved permissions handling somewhere. There were no other changes on my side and I did no change my permissions file or software.

    However, when a player tries to change another players mode and doesn't have permission, it throws an null ptr exception. Also, your internal version number from the error handler doesn't match the posted version (1.4 vs. 1.5).

    Player permissions are:
    worldmodes.*: true
    worldmodes.set.self: true

    Also, just in case, the world permissions are set to:
    worldmodes.*: true

    Command was:
    PlayerA: /gm PlayerB

    Code:
    16:18:16 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'gm' in plugin WorldModes v1.4  [*GravelSocks - nb. -wrong version from exception handler]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
            at com.iminurnetz.bukkit.plugin.worldmodes.WorldModesPlugin.onCommand(WorldModesPlugin.java:109)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
            ... 12 more
    
     
  21. Offline

    sunkid

    Can you post your complete permission setup and also give me some information on how you change worlds?

    The inventory management done by WorldModes only concerns the switch from creative mode to survival. Essentially, it saves everything you have in your inventory when you switch from survival to creative and then replaces everything with that content when you switch back.

    This should be fixed in the latest version (1.5.1). Thanks for bringing it to my attention and please let me know if the fix doesn't work.

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

    chaseoes

    My permissions file:
    http://pastebin.com/eFFetXzw

    I use Multiverse-Core and Multiverse-Portals,to transfer between worlds through both portals and the /mvtp <worldname> command.
     
  23. Offline

    sunkid

    Make sure you are running the latest version of PermissionsBukkit. I was able to reproduce the issue with 1.1 but it is fixed in 1.2. If this doesn't fix it, please provide the output for '/permissions check worldmodes.creative chaseoes' and '/permissions check worldmodes.survival chaseoes' for each world.
     
  24. Offline

    bjoen

    I dont know about when I use /gm player gamemode but when someone switch world and they switch gamemode they do not drop their items D: btw thanks for great plugin :D
     
  25. Offline

    chaseoes

    Verified I'm running 1.2: http://pastebin.com/U4Qxi6vR

    Survival World
    /permissions check worldmodes.creative chaseoes:
    "Player chaseoes sets worldmodes.creative to false."

    /permissions check worldmodes.survival chaseoes:
    "Player chaseoes sets worldmodes.survival to true."

    Creative World
    /permissions check worldmodes.creative chaseoes:
    "Player chaseoes sets worldmodes.creative to true."

    /permissions check worldmodes.survival chaseoes:
    "Player chaseoes sets worldmodes.survival to false."

    EDIT: So that WG report above said I was running WorldModes version 1.4; just updated to 1.5.1 and I'm having the same problem.

    If you want, you can join my server, and if I'm on, you can try to go between worlds for yourself and see.
     
  26. Offline

    sunkid

    hmm... one last check: are you op on your server? If so, WorldModes doesn't do any switching, which I should probably make configurable. If that's not it, find me in #bukkit or #bukkitdev on irc.esper.net and we can try to work through this. Sorry that it's such a hassle to get this to work for you.

    EDIT: sorted via IRC :)
     
  27. Offline

    remypas

    Something seems to go wrong upon starting the server. the /GM command works for OP's but not for players. (They have the -worldmode.set permissions in my bPermissions file
    Code:
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-29 23:07:47 [WARNING] Task of 'WorldModes' generated an exception
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.hasPermission(WMPlayerListener.java:142)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener.access$000(WMPlayerListener.java:49)
        at com.iminurnetz.bukkit.plugin.worldmodes.WMPlayerListener$1.run(WMPlayerListener.java:134)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  28. Offline

    sunkid

    Just to clarify, these are the errors that you get when starting the server? Do they show up every time you restart the server?

    If the players have -worldmode.set, they would not be able to use the /gm command. Not sure if you are reporting this as an issue though. Could you please clarify?
     
  29. Offline

    remypas

    It happens on every restart and start.
    I am trying to give my players the permission to switch modes in one of my worlds.
    I thought I needed to just give my players the -worldmode.set.self permission to do this. (typed this wrong in the first post.)
    But when they use the /gm command they get a message they are not able to change modes.
    Can you explain how I can get it to work?
     
  30. Offline

    GravelSocks

    I guess I'll try 1.5.3. ^_^
     
  31. Offline

    sunkid

    I am at a loss about the reason of the errors but I have made a minor change to prevent them in the latest version (1.5.2). Can you see if that fixes it?

    As for your permissions, yes, you need to give your players the worldmode.set.self node (note the lack of a hyphen, depending on your permissions plugin, the actual syntax varies). If you assigned this node incorrectly, players will get a message that they are not allowed to change their game mode. If it is assigned correctly, but the permission node for either creative or survival is missing, players will not be able to use the command and they will receive a message that the game mode change was cancelled.

    In other words, for players to be able to switch game mode, they must have the worldmode.set.self node and the world they are in must have both worldmode.creative and worldmode.survival as well.

    Pastie or post your complete permission configuration file and more details on what permission plugin you are using if this doesn't help. We'll get it to work! :)

    Did you try 1.5.1? It should have addressed your issue. If you are still having problems, can you post a more detailed report, please? The current version is 1.5.2.

    That said, it looks like your permissions are set for everyone to do everything. worldmodes.* set in a world or for players will do that. The other worldmodes permission nodes are made redundant by it.

    Just a heads-up: new version (1.6) supports default modes for all players, regardless of their ability to change game modes.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
Thread Status:
Not open for further replies.

Share This Page