Inactive [ADMN/MECH/FUN] GameModer 1.2 - Change your gamemode [1.2.5-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Mr_H4mm3r, Dec 26, 2011.

     
  1. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    • adfly links removed
    The bug was corrected and it works now!

    http://dev.bukkit.org/server-mods/gamemoder/ <---- Only updating on BukkitDev

    GameModer - Change your gamemode
    Version: 1.2
    Download: DropBox

    Are you tired of the same old bukkit command /gamemode Mr_H4mm3r (0/1)? If yes, you are the right place. This is a new gamemode changer with an simple command: /gm

    Features:
    Simple plugin
    Permissions
    Nice messages: Gamemode is now [Creative/Survival] (IN COLORS :-D)


    Commands:
    /gm - Toggles between gamemodes

    Changelog:
    1.2 - Added Permissions
    1.1 - Bug :\
    1.0 Release

    Todo:
    Permission - DONE
    BukkitDev Page DONE
    Changeable Messages
    Different commands

    Permission Nodes:
    Gamemoder.change

    This post has been edited 17 times. It was last edited by Mr_H4mm3r May 20, 2012.
  2.  
  3. Offline

    Laserhog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ask Yourself.....
    And then if you still want to make it ask yourself, "How can i improve on these other plugins. What can i add or change".
    emericask8ur likes this.
  4. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I did this for fun.. Not for making a new plugin nobody else has made. And this is for servers without permissions so EVERYBODY (Not just ops) can change their gamemode
  5. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, this fits the guidelines but if you say there is a bug I won't move this to releases.
  6. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I will try fixing it as fast a posible? Shall I send a post to you when I'm done?
  7. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just tag me in a post in this thread when you're done and ready.
  8. Offline

    HotelManager24

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No offense, but this is... unoriginal.
    emericask8ur likes this.
  9. Offline

    yttriuszzerbus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The purpose of this plugin is to make gamemode switching easier, so why not add /c and /s to make it even faster?
  10. Offline

    ChumChum

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sounds very convenient ;)
    Better than doing /gamemode chumchumx 1
    TAKES YEARS, VERY VERY LONG.
    Thanks for making this :D
  11. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I know.. This is my first plugin.. Just wanted to try :)
  12. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please fix link and update to latest RB
  13. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I will try doing my best :)
  14. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I will be adding this. I'm updating to R5 :)

    *EDIT*
    Maybe R4 too :)

    This post has been edited 1 time. It was last edited by Mr_H4mm3r Feb 25, 2012.
  15. Offline

    CainFoool

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    There's a high chance this plugin will already work with R4 without any modification needed as long as you never used any abstract methods.
  16. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm pretty sure it will work :) But don't download anything now :)! And can anyone help me with the permissions?
    Can Vault's Api be used for that?
  17. Offline

    CainFoool

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  18. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok :) But when I do the command this error is showing:
    Code:
    2012-02-26 18:35:43 [INFO] Starting minecraft server version 1.1
    2012-02-26 18:35:43 [INFO] Loading properties
    2012-02-26 18:35:43 [INFO] Starting Minecraft server on *:25565
    2012-02-26 18:35:43 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R4-22-g8fcf62f-b1957jnks (MC: 1.1) (Implementing API version 1.1-R5-SNAPSHOT)
    2012-02-26 18:35:45 [INFO] Preparing level "world"
    2012-02-26 18:35:45 [INFO] Default game type: 1
    2012-02-26 18:35:45 [INFO] Preparing start region for level 0 (Seed: 8283222768418676940)
    2012-02-26 18:35:46 [INFO] Preparing spawn area: 48%
    2012-02-26 18:35:47 [INFO] [GameModer] Loading GameModer v1.1.0.
    2012-02-26 18:35:47 [INFO] GameModer version 1.1.0 is enabled.
    2012-02-26 18:35:47 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2012-02-26 18:35:47 [INFO] Done (2,151s)! For help, type "help" or "?"
    2012-02-26 18:36:06 [INFO] Mr_H4mm3r [/127.0.0.1:56536] logged in with entity id 0 at ([world] 525.5, 4.0, -898.5)
    2012-02-26 18:36:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'survival' in plugin GameModer v1.1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:428)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:784)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.Error: Unresolved compilation problem:
        The method hasPermissions(String) is undefined for the type Player
     
        at me.Mr_H4mm3r.GameModer.GameModer.readCommand(GameModer.java:33)
        at me.Mr_H4mm3r.GameModer.GameModer.onCommand(GameModer.java:28)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 12 more
    
  19. Offline

    Steffion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Do this:
    Code:
    if (getPlayer().hasPermission("gamemoder.survival")) {
    // Do It...
    } else {
      // Player has not the permission.
    }
  20. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Steffion
    Should I make it a Method? (Using Eclipse)??
    Btw, Thanks :)
  21. Offline

    Steffion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No? You need to put that in the onCommand metod.
  22. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 3 times. It was last edited by Mr_H4mm3r Apr 16, 2012.
  23. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Havin 2 lines in a spoiler is really annoying for everyone, please make it sensible
  24. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sure.. :)

    Edit
    Done :)

    This post has been edited 1 time. It was last edited by Mr_H4mm3r May 1, 2012.
  25. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    approved
  26. Offline

    Brandon_Wildman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Might I suggest adding a feature that keeps a player in the chosen gamemode? If I put someone in creative, when they log out and log back in, they should still be in creative mode.
  27. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Isn't that already working? Are you trying it with this plugin? :)
  28. Offline

    Brandon_Wildman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ya know, I really should have at least tried the mod before commenting. I was expecting that to be listed as a feature. My apologies! You my friend just gained another plugin user. :D
  29. Offline

    Brandon_Wildman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry it took a while to get back to you.. I got side-tracked. SO! when I put someone in creative mode and they log out, when they log back in, they are no longer in creative. Yes I have tested it.
  30. Offline

    Mr_H4mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll test, and find a way to solve it :)
  31. Offline

    Brandon_Wildman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

Share This Page