WorldModes
WorldModes
Configure world-specific game modes, allow players to switch game modes, and restrict inventory carry-over when switching from creative mode.
Whats New?
Version 2.4 adds a console-only command to check a player's WorldModes permissions.
Version 2.3 adds the ability for the plugin to update itself and to send anonymous usage statistics. Both are optional and can be turned off by adding 'settings.disable-updates' and 'settings.disable-stats' to config.yml respectively.
As of version 2.1, you no longer need BaseBukkitPlugin.jar in your plugin folder. In fact, please remove this file when upgrading to version 2.1 or higher. WorldModes will automatically download and install this library when it detects that it is missing or has been updated. If you need to manually install the jar, download it from the github release directory and move it to the WorldModes folder. Do not install it in the plugin folder!
NOTE: When upgrading to version 1.8 or later, change your permissions as below (worldmodes.survival and worldmodes.creative become worldmode.mode.survival and worldmodes.mode.creative respectively)
This plugin allows server administrators to enforce world-specific game modes. The plugin can also manage inventories for certain players by restoring an inventory when switching back from creative mode. It is lightweight and works based on the following permissions that can be assigned for groups or players on a per-world basis.
General and game-mode restricting permissions:
- worldmodes.*: a player or groups with this permission can do anything in either creative or survival mode
- worldmodes.mode.*: players or groups with this permisison can be in either creative or survival mode
- worldmodes.mode.creative: a player or groups with this permission can only be in creative mode
- worldmodes.mode.survival: a player or groups with this permission can only be in survival mode
- worldmodes.autoset.survival: a player with this permission will automatically be switched to survival mode regardless of their ability to change it (note, the player must have 'worldmodes.survival' set)
- worldmodes.autoset.creative: a player with this permission will automatically be switched to creative mode regardless of their ability to change it (note, the player must have 'worldmodes.creative' set)
The plugin provides the gamemode command to players based on the following permissions:
- worldmodes.set.*: allows a player to set their own and anyone else's game mode
- worldmodes.set.self: allows a player to change their own game mode
- worldmodes.set.others: allows a player to change everyone else's game mode
- worldmodes.set.<group>: allows a player to change the game mode of players in that group
The following permissions can be used to manage inventories when switching between game modes:
- worldmodes.drop: allows players to drop items and to access chests and dispensers in creative mode
- worldmodes.keep-inventory: allows players to retain their inventory when switching out of creative mode
Note that the 'worldmodes.drop' permission does not fully protect from cheating as players can still use crafting benches and furnaces.
Command Usage:
- /gm : toggle your own game mode
- /gm <game mode> : set you game mode to the specified mode
- /gm <player> : toggle player's game mode
- /gm <player> <game mode> : set player's game mode to the specified mode
Game modes can be specified as follows:
- SURVIVAL : the number 0 or any word starting with s
- CREATIVE: the number 1 or any word starting with c
The actual command registered is 'gamemode' and its aliases are 'gm', 'gmt', and 'gms'
Console-only command: gm check <player>: dump a player's WorldModes permissions
Requirements:
Obviously, you need to run a 1.8 compatible CB build (1370 and above) and a permission plugin. WorldModes supports Bukkit's permissions, Permissions, PermissionsEx, and GroupManager.
You may also want to look into running a world-specific inventory plugin like MultiInv!
-
View User Profile
-
Send Message
Posted Mar 4, 2012It was straight out of the dev repo with no download issues. So, if corrupted, it's corrupted in the repo...you may want to update/check it, if you haven't already.
-
View User Profile
-
Send Message
Posted Mar 4, 2012@GravelSocks
Check the jar file you installed, it seems to be corrupted. Try re-downloading and re-installing.
-
View User Profile
-
Send Message
Posted Mar 4, 2012The new branch doesn't work. Gets a severe error trying to load the plugin on MC 1.2.3. I tried adding the latest BaseBukkitPlugin to the WorldModes folder and turning on updates and that also didn't fix it.
-
View User Profile
-
Send Message
Posted Mar 2, 2012@natewiebe13
No worries... that branch was up for a while, I just had not announced it.
FWIW, most authors (including myself) will appreciate fixes and patches if they are submitted through github for example.
-
View User Profile
-
Send Message
Posted Mar 2, 2012@sunkid
My appologies. I wasn't trying to step on your toes. WorldModes hasn't been updated since R3. So I wasn't sure if you were going to be releasing a new version soon. I needed it, and I figured someone else might as well.
-
View User Profile
-
Send Message
Posted Mar 2, 2012@natewiebe13
No need for unofficial releases. The R5 branch on github already supports 1.2.
I am just waiting with a full release because it will break all pre-1.1-R5 servers.
-
View User Profile
-
Send Message
Posted Feb 29, 2012Please update to R5, Im getting:
2012-02-29 20:51:02 [SEVERE] Error occurred while enabling WorldModes v2.52 (Is it up to date?) java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:239) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:37) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at com.iminurnetz.bukkit.plugin.worldmodes.WorldModesPlugin.enablePlugin(WorldModesPlugin.java:53) at com.iminurnetz.bukkit.plugin.BukkitPlugin.onEnable(BukkitPlugin.java:167) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:343) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:366) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:317) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:300) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:378) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:365) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:196) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 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:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 27 more
-
View User Profile
-
Send Message
Posted Feb 18, 2012Nothing happens when I warp to a world and I have permissions
- worldmodes.mode.creative - worldmodes.creative - worldmodes.autoset.creative
-
View User Profile
-
Send Message
Posted Feb 14, 201205:55 PM [SEVERE] Error occurred while enabling WorldModes v2.52 (Is it up to date?): com.iminurnetz.bukkit.plugin.BukkitPlugin.getLogger()Ljava/util/logging/Logger;
I run a 1.0.0 server and it worked fine till a little while ago. i haven't updated yet because im waiting for a mod to update. why does this error appear? a friend that runs a 1.1 server also gets the same exact error. why?
-
View User Profile
-
Send Message
Posted Feb 8, 2012Where are the inventories saved while people are in creative mode? I need to use MultiInv to separate the inventories of 2 survival worlds and since MultiInv will save the inventory to whatever world people are currently in on the first run, I have to make sure that people in a creative world won't lose their survival world inventory.
Thanks!