What's the best way to restrict gamemode per-world in MultiWorld?

What's the best way to restrict gamemode per-world in MultiWorld? - Wet road with signal posts in residential area

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?"

What's the best way to restrict gamemode per-world in MultiWorld? - Prohibition parking road sign with Subject To Ticket inscription placed on street of city near concrete barrier in evening time
What's the best way to restrict gamemode per-world in MultiWorld? - White disabled parking sign on post located on empty asphalt parking lot with marking line on street in foggy weather
What's the best way to restrict gamemode per-world in MultiWorld? - Bird's Eye View Of Roadway Surrounded By Trees



How do you set world Gamemode?

Here's how to use the /gamemode command in Minecraft....How to change Minecraft gamemode
  • Click or tap on the pause button. Tap the pause button. ...
  • Tap Settings. Tap on the Settings button. ...
  • Under the Personal Game Mode heading, select the dropdown option and choose the game mode that you wish to change to.


  • How 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) Print
  • Download the latest version of Multiverse Core from \u2192 Here to your PC. ...
  • Login to your Gamepanel.
  • Click "File Manager"
  • Click to open the plugins folder.
  • Press "Upload" on the menu bar.
  • Select the "Multiverse core" .




  • Rnbstylerz \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