[ADMN/MISC] EasySwitch v1.0 - Quickly switch between game modes [1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by lionking23, Sep 21, 2011.

  1. Offline


    Version: 1.0

    Updates: 9/21/11 - Had the idea for this plugin.. :) Please report any bugs!

    Don't want to type the LONG command for changing game modes? The simple solution is here!

    * Simple /g [0/1] commands! (0 for Survival, and 1 for Creative)

    <Edit by Moderator: Redacted mediafire url>
    Source Code (Coming Very Soon)

    * Currently working on optional /g <playername> [0/1]

    Known Issues:
    * Please report any issues/bugs below!

    Version 1.0
    * Initial Release
    Last edited by a moderator: Nov 12, 2016
  2. Offline


    When trying to use the command:

    >11:42:28 [WARNING] Unexpected exception while parsing console command
    >org.bukkit.command.CommandException: Unhandled exception executing command 'g' in plugin EasySwitch v1.0
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.
    >        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 org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:349)
    >        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    >        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.inecraftServer.java
    :>3        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:74)
    >        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    11:42:38 [INFO] Unknown command. Type "help" for help.
    11:42:38 [INFO] Unknown command. Type "help" for help.craftbukkit.command.Coloured
    C>oCaused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    >        at me.lionking23.EasySwitch.EasySwitch.onCommand(EasySwitch.java:31)
    >        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    >        ... 7 more
  3. Offline


    Checking it out...

    EDIT: Found the problem.. you must be a player to use the command as a console cannot have a game mode set to it. Try it as a player and it will work. I will at a statement in the program to check if it is a player or not to prevent this. :)
  4. Offline


    Well,cool idea,but you know, writing "gamemode" is not so long :p
    Anyway! keep developmenting :D
  5. Offline


    The command name conflicts with channel commands, such as the global chat in HeroChat
  6. Offline


    And let me guess.. /gm would conflict with GroupManager?
  7. Offline


    does this work with permissionsEX ?
  8. are there any permissionnodes?
  9. Offline


    Not as of yet. Soon though.
  10. Offline


    is there a way to let non admins change there gamemode? (without permissions?)
  11. Offline


    I would have to alter the code for that, but I guess I could make two different versions... one with op and one without.
  12. Offline


    USE DROPBOX, CUZ WE HATE MEDIAFIRE! :p Then we can use the 'wget' command for linux, will be great :D
  13. Offline


    Just saying, I know dropbox is an automatic download, but with media fire I at least know how many people downloaded. And apparently 16,000 people who like my plugins don't seem to mind media fire. And what is the /wget command.. I'm not to familiar with linux.
  14. Offline


    The wget command is from linux, it will download the the file like http://www.ImADwarf.com/aJoke.jar, it will download the aJoke.jar, but, I will upload it on my dropbox. Btw, nice plugin, will it soon get a permission support?
  15. Offline


    ETA on nodes? Also can you add so that just typing /g will toggle gamemode?
  16. Offline


    It's perfect plugin! No logs, no folder - clear!

    I have some ideas for that.

    It would be nice if you type /g and you have already changed game mode :)
    And one another proposal - After log out and log in game mode would be the same when we leave the game :)

    Best regards from Poland!
    lionking23 likes this.
  17. Offline


    I'll see what I can do! :)
  18. Offline


    i use this plugin for my server, it's great! But plz add permissions!!

Share This Page