What's the best way to restrict gamemode per-world in MultiWorld?
I have a MultiWorld server set up (Spigot 1.8 using the MultiWorld plugin) which I would like to have some worlds lock everyone into creative mode and others lock everyone into survival mode. I've been unable to figure out how to get it to do this. Setting the defaultmode only seems to affect your initial login. Setting the CreativeMode flag on a world in the MutliWorld settings doesn't seem to have any effect for me.
I've tried a couple plugins that claim to force gamemode but haven't succeeded in getting them to work. The most-closely-matched with my intended purpose seems to be GameModeChanger_Rewrite, but it seems to change your gamemode based on the settings for the world you just left instead of the world you're going to when you move between worlds.
I'd be grateful for suggestions how to set this up! Thanks!
Best Answer
This is easy, all you need to do is test for the gamemode that you don't want players using, then changing their gamemode to survival or adventure.
/execute @a[m=1] /gamemode @a 0
This example tests for players in gamemode 1, creative mode,and switches them to gamemode 0, survival mode. All you need to do is hook it up to a clock.
Pictures about "What's the best way to restrict gamemode per-world in MultiWorld?"



How do you set world Gamemode?
Here's how to use the /gamemode command in Minecraft....How to change Minecraft gamemodeHow do I set world to creative?
Enter the command \u201c/gamemode c\u201d to change your game mode to creative.How do you use multi world?
Minecraft | How to setup multiple worlds on a single server (Multiverse) PrintRnbstylerz \u0026 AREES - WHAT
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Vlad Fonsark, Erik Mclean, Erik Mclean, Joshua Welch
