Inactive [INFO/GEN] - Gmlist 1.5.5 - List players with Creative - [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by J08nY, Mar 31, 2012.

  1. Offline

    J08nY

    Gmlist - Lists players with creative on Command!
    Version: 1.5.5 - Beta - Bukkit [1.2.5-R1.0-#2149]
    BukkitDev: Gmlist

    This simple plugin lists all players with creative GameMode who are currently online(/crl,/crlist). There's also a command for listing survival players(/sul,/sulist). Now you can track who have creative on your server and watch your operators.


    Features
    • /crl,/crlist - Lists players with creative.
    • /sul,/sulist - Lists players with survival.
    • /gms,/gmc - Changes own GameMode to creative(/gmc), or survival(/gms).
    • Logs gamemode changes.(LogGMChanges: true)
    • Stops gamemode changes to creative when a player hasnt got op or Gmlist.canHave.creative permission.(Requires BlockCreativeWithoutPermOrOp in config on!)
    • Logs whenever someone tries the /gm,/gamemode and /creative command. Logs the message itself so it can be easily seen who tried to change who's gm.
    • Supports Permissions(SuperPerms - PermissionsBukkit, bPermissions, PEX, Essentials GroupManager)
    Commands
    • /crlist - Lists players with creative mode on. (/crl) Requires op or Gmlist.list permission node.
    • /crl - Lists players with creative mode on.(/crlist) Requires op or Gmlist.list permission node.
    • /sulist - Lists players with survival mode on. (/sul) Requires op or Gmlist.list permission node.
    • /sul - Lists players with survival mode on.(/sulist) Requires op or Gmlist.list permission node.
    • /gms - Changes own GameMode to survival. Requires Op or Gmlist.canSet.survival.
    • /gmc - Changes own GameMode to creative. Requires Op or Gmlist.canSet.creative.
    Permissions
    • Gmlist.*:
      • description: Player with this permission can have and set(not yet implemented) gamemodes...
      • children:
        • Gmlist.canHave.creative
        • Gmlist.list
    • Gmlist.canHave.creative:
      • description: Player with this permission can have Creative.
      • default: op
    • Gmlist.list:
      • description: Allows a player to lists players with creative (/sul,/sulist,/crl,/crlist)
      • default: op
    • Gmlist.canSet.creative:
      • description: Allows a player to change his GameMode to creative.
      • default: op
    • Gmlist.canSet.survival:
      • description: Allows a player to change his GameMode to survival.
      • default: op
    Default config.yml
    Code:
    LogGMChanges: true //If true, logs whenever a player changes his GameMode 1 --> 0 OR 0 --> 1
     
    Debug: true //Sends debug messages to console(helps when solving problems)
     
    LogGMCommands: true //Logs whenever someone tries to use a (/gm,/gamemode,/creative) command.(Logs the command itself so you can see who changed whos gamemode.
     
    OpsCanHaveCreative: true //If true Ops can have Creative(But if false and usePerms is true and the player has the permission to have creative it will not block him.
     
    usePermissions: true //If true uses Permissions(SuperPerms,PermissionsEx).SuperPerms supports Essentials GroupManager.
     
    BlockCreativeWithoutPermOrOp: false // Very Important setting, if true blocks players without op OR Gmlist.canHave.creative permissions having creative game mode.
    - Watch out for tabs and spaces(It's yml!).

    Tips and Tricks
    • If you only want the /crlist,/sulist feature turn off whole config except usePermissions when you want to use permissions.
    Example setup:
    LogGMChanges: true
    Debug: false
    LogGMCommands: true
    OpsCanHaveCreative: false
    usePermissions: true
    BlockCreativeWithoutPermOrOp: false

    With this setup plugin will log whenever someones gm is changed, logs whenever some Gamemode related command is run. But it didnt blocks any use of creative on your server. It just logs it.. And uses permissions for Gmlist.list.
    Source
    You can download the source code on my Github.

    Planned features
    • Add option to setup permissions. [DONE]
    • Add config to have a place to store setup. [DONE]
    • Add option to log Gamemode changes [DONE]
    • Any ideas?
    Download
    • You can download it right here or from my github. Newest version gonna be always here(1.5.5) Because it takes time for the file to be displayed on BukkitDev.
    • Testing version: Updated everytime I change something. It cant be even called Alpha. Gmlist.jar
    Changelog
    • 1.5.3
      • Fixed some possible bugs.
      • Next version will be a release maybe.
      1.5.4
      • Added /crl,/crlist. /sul,/sulist.
      • Made new commandExecutor classes.
      1.5.5
      • /gms, /gmc
     

    Attached Files:

  2. Offline

    DexterGoesViral

    Just what i need! Thanks ;)
     
  3. Offline

    md_5

    Changed title a bit, approved
     
  4. Offline

    Taugust

    Hello, when i type in /gmlist i'll get the message An internal error ... bla bla bla.... what should i do?
     
  5. Offline

    BranicYeti

    Is it possible to get this to work with Survival players instead? I run a creative server but when they join, they are automatically put onto survival (for a particular reason, I do know how to change it). This would be extremely useful to see who is still on survival if there is a big number of them.
     
  6. Offline

    J08nY

    Hmm ok. Will make a version for you.
     
  7. Offline

    BranicYeti

    Really? Dude, that's awesome! Thank you so much!
     
  8. Offline

    J08nY

    Taugust you should send me a part of the sever.log from the time you sent that command. There should be an [SEVERE] java.trololo.SomeEpicException : bla. bla. Please paste it here or n pastebin.con
    BranicYeti will implement this command in 1.5.4 which will be up maybe today.
     
  9. Offline

    J08nY

    BranicYeti version 1.5.4 has a /crlist(/crl) for listing creative and /sulist(/sul) for listing survival players.
     
  10. Offline

    Bagels

    Hey, Loving the plugin just wondering if you could add a function to make users switch to creative/survival
    such as /gms would toggle the user to survival and /gmc would toggle the user to creative. with separate permission strings for them I've tried multiple plugins with seperate strings for switching gamemodes but all have been unsuccessful either clashing with the vanilla commands or outdated.
     
  11. Offline

    BranicYeti

    Thank you so much j08ny. This plugin is brilliant. Congratulations :)
     
  12. Offline

    J08nY

    Thank you guys! Bagels what about something like this:
    • /gms - Permission node: Gmlist.canset.survival
    • /gmc - Permission node: Gmlist.canset.creative
     
    Bagels likes this.
  13. Offline

    Bagels


    That would be perfect =D thanks!
     
  14. Offline

    J08nY

    Okay will make 1.5.5 which will have this update. Maybe today evening..
     
  15. Offline

    J08nY

    1.5.5 - Here: [link removed] Can you test it?
    Gmlist.canSet.creative - /gmc
    Gmlist.canSet.survival - /gms
     
  16. Offline

    Taugust

    When i type in /gmlist i'll get the message

    org.bukkit.command.CommandException: Unhandled exception executing command 'gmlist' in plugin Gmlist v1.5.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoClassDefFoundError: ru/tehkode/permissions/bukkit/PermissionsEx
    at me.J08nY.GmList.Gmlist.ifPlayer(Gmlist.java:110)
    at me.J08nY.GmList.Gmlist.onCommand(Gmlist.java:68)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException: ru.tehkode.permissions.bukkit.PermissionsEx
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
    ... 15 more
     
  17. Offline

    J08nY

    Install 1.5.4 or 1.5.5 or any newer than 1.5.3. This is a bug when you dont use PermissionsEx on ypur server..
     
  18. Offline

    Sejsel

    What about offline players support as alternative command?
     

Share This Page