-
-
Notifications
You must be signed in to change notification settings - Fork 326
Description
Feature request
Often what happens currently with some plugins I am using is that if a player joins a certain world by using a certain plugin which teleports it to that world and changes the players gamemode... Multiverse directly changes the players gamemode as well and this causes problems.
I am aware of the fact that it is possible to add bypass permissions for having multiverse not changing gamemode, but I would like to still be able to use this.
Let me give a better description of what is happening now for example on my server:
I have a world in which I put some Minigames.
- The player is in world A and clicks a Hungergames Sign to join the game.
- This game is located in world B.
- The player is teleported to world B and the Hungergames plugin sets the gamemode of the player to Adventure mode.
- The default mode of world B is SURVIVAL, so Multiverse changes after the teleportations directly the gamemode of the player to Survival.
- Now the Hungergames plugin assumes the player is in adventure and cannot break any blocks for example, but multiverse changed it afterwards to survival.
- If the player is going to join a different Minigame in world B or simply gets teleported there, I still would want the player to be enforced in Survival gamemode, so adding a bypass permission is no option.
Hopefully this scenario is clear, haha.
What would be really usefull for me, would be some kind of way in which I could still enforce a certain gamemode to a player that joins a world, but only if the teleportation cause is for example a normal TP. (Or one of essentials or something.)
And that, if a different plugin, like for example the HungerGames plugin from my example, teleports a player.
Then the enforcegamemode should not be active.
Maybe this could work with some permission node like mv.bypass.gamemode.otherplugins
I really hope what I am saying is clear, because it might be a bit vague, while I do struggle with it sometimes.
Since I really would like to keep the enforcement of the Survival gamemode, but just not in certain cases.
(Cases where other plugins set your gamemode like... a few ticks before multiverse does so. (Maybe you could check for the time since the last gamemode change? Or look at teleportation cause.)
(Hungergames was just 1 example, but other Minigames sometimes also struggle with it using e.g. Creative Gamemode)
Thank you so much already for your understanding.
This would really help me very much if something like this would be possible.
Keep up the good work with Multiverse, since it is an epic plugin which I am using already for over 8 years now.
Good job!
[13:40:03] [Server thread/INFO]: [HungerGames-Test] Player should now be in Adventure Mode.
[13:40:03] [Server thread/INFO]: [Multiverse-Core-Debug] Got teleport event for player 'waterman1001' with cause 'PLUGIN'
[13:40:03] [Server thread/INFO]: [Multiverse-Core-Debug] Inferred sender 'null' from name 'null', fetched from name 'waterman1001'
[13:40:03] [Server thread/INFO]: [Multiverse-Core-Debug] Player 'waterman1001' is teleporting to the same world.
[13:40:03] [Server thread/INFO]: [Multiverse-Core-Debug] MV-Core is allowing Player 'waterman1001' to go to 'Minigames'.
[13:40:04] [Server thread/INFO]: [Multiverse-Core-Debug] Handling gamemode for player: waterman1001, Changing to SURVIVAL
Here you see how I got changed my gamemode twice in about 1 second.