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!
ADVICE: Lots of people are having trouble that players STAY in creative. I KNOW HOW TO HELP! Go into your MAIN server config file (server.propeties). Then turn "force gamemode" to ENABLED. Then whenever players travel to a different world they will be automagically put into Survival/Adventure. Please like if this helped!
On my server i have two worlds survival and creative when they go to creative then come back to survival there inventory is emptied in the survival world how do i fix this
When i go to creative world and back to survival i still got creative mode.. i dont like this because it little bit destroyed my server >:(
Same here. This was working fine for us with CB version 1.5.1-0.1 build 2723, but it's broken with 1.5.1-0.2 build 2741. Haven't tested other builds between those two (though there's been a beta release) and also haven't tried WorldModes' inventories management (using Multiverse-Inventories anyway).
An update would be superb.
This plugin was working so good, I forgot I had it to handle my game modec hanges. But lately it's been giving issues. People coming from my creative world and transporting into the survival world keep remaining in creative mode if they were in the creative world. Needless to say there is some foul play happening and I need a fix.
Are you still maintaining/updating this plugin?
This seems to not remember enchantments when restoring inventories...
Adventure mode?
@SuperStudMufin
What's not working for you?
can you update to 1.4.7 please?
@sunkid
You are right. I think the problem was my basebukkitplugin.jar so I just deleted the worldmodes folder and it started up fine.
@gustebeast
It loads fine for me. Believe me, I test these things... what errors are you getting?
@sunkid
if you mean 1.4.2 that one wont load on the latest 1.4.4 bukkit.
@gustebeast
over to the right... got approved sometime after you and I posted our comments. :D
@sunkid
link?
@gustebeast
Thanks for the heads-up. Just uploaded the newest build which is backwards compatible and should work in 1.4.4
@sunkid
Just so you know, its broken in 1.4.4
This is exactly what I was looking for :) going to try it and see how it works, so as the person below said please don't stop :) i prefer the sound of this one to multiverse :)
@sunkid
I know you stated that Multiverse is already doing this, but I either have a problem with Multiverse or it just doesn't want to do what I need to do. The world is set to creative, but players don't get creative when they enter, and in addition when they return to the SMP world it doesn't empty their inventory.
Your plugin does all of this, and it's really easy to use, which is the main reason why I'm sticking with it. Keep it updated man, you DO have a fan base that loves your plugin!
@RemyPas
This is likely a permissions issue. Make sure the players or the groups they are in have the 'worldmodes.mode.creative' and 'worldmodes.mode.survival' permissions set to true for the worlds in which you want them to be able to switch back and forth.
Is it possible there is a bug with this in Craftbukkit-1.3.2-R0.1?
I (as OP) can do /gm fime.
But people with the appropriate permissions, that were having no issues before can't change anymore.