EasySwitch 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! Features: * Simple /g [0/1] commands! (0 for Survival, and 1 for Creative) <Edit by Moderator: Redacted mediafire url> Source Code (Coming Very Soon) Goals: * Currently working on optional /g <playername> [0/1] Known Issues: * Please report any issues/bugs below! Changelog: Version 1.0 * Initial Release
When trying to use the command: Code: >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
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.
@raolster I would have to alter the code for that, but I guess I could make two different versions... one with op and one without.
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.
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?
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! Adam