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

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

  1. Offline

    Mr_H4mm3r

    • 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
     
  2. Offline

    Laserhog

    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.
  3. Offline

    Mr_H4mm3r

    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
     
  4. Offline

    NuclearW

    Well, this fits the guidelines but if you say there is a bug I won't move this to releases.
     
  5. Offline

    Mr_H4mm3r

    I will try fixing it as fast a posible? Shall I send a post to you when I'm done?
     
  6. Offline

    NuclearW

    Just tag me in a post in this thread when you're done and ready.
     
  7. Offline

    HotelManager24

    No offense, but this is... unoriginal.
     
    emericask8ur likes this.
  8. Offline

    yttriuszzerbus

    The purpose of this plugin is to make gamemode switching easier, so why not add /c and /s to make it even faster?
     
  9. Offline

    ChumChum

    Sounds very convenient ;)
    Better than doing /gamemode chumchumx 1
    TAKES YEARS, VERY VERY LONG.
    Thanks for making this :D
     
  10. Offline

    Mr_H4mm3r

    I know.. This is my first plugin.. Just wanted to try :)
     
  11. Offline

    md_5

    Please fix link and update to latest RB
     
  12. Offline

    Mr_H4mm3r

    I will try doing my best :)
     
  13. Offline

    Mr_H4mm3r

    I will be adding this. I'm updating to R5 :)

    *EDIT*
    Maybe R4 too :)
     
  14. Offline

    CainFoool

    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.
     
  15. Offline

    Mr_H4mm3r

    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?
     
  16. Offline

    CainFoool

  17. Offline

    Mr_H4mm3r

    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
    
     
  18. Offline

    Steffion

    Do this:
    Code:
    if (getPlayer().hasPermission("gamemoder.survival")) {
    // Do It...
    } else {
      // Player has not the permission.
    }
     
  19. Offline

    Mr_H4mm3r

    Steffion
    Should I make it a Method? (Using Eclipse)??
    Btw, Thanks :)
     
  20. Offline

    Steffion

    No? You need to put that in the onCommand metod.
     
  21. Offline

    Mr_H4mm3r

  22. Offline

    Plague

    Havin 2 lines in a spoiler is really annoying for everyone, please make it sensible
     
  23. Offline

    Mr_H4mm3r

    Sure.. :)

    Edit
    Done :)
     
  24. Offline

    Plague

    approved
     
  25. Offline

    Brandon_Wildman

    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.
     
  26. Offline

    Mr_H4mm3r

    Isn't that already working? Are you trying it with this plugin? :)
     
  27. Offline

    Brandon_Wildman

    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
     
  28. Offline

    Brandon_Wildman

    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.
     
  29. Offline

    Mr_H4mm3r

    I'll test, and find a way to solve it :)
     
  30. Offline

    Brandon_Wildman

Share This Page