diff --git a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/command/MapCommand.java b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/command/MapCommand.java index 75df5ed4e..b601ddac1 100644 --- a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/command/MapCommand.java +++ b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/command/MapCommand.java @@ -117,6 +117,7 @@ public class MapCommand extends BaseCommand message(player, "Teleporting to World: " + F.elem(worldName)); _teleportManager.teleportPlayer(player, new Location(world, 0, 106, 0)); + player.setFlying(true); MapData data = getPlugin().getData(worldName); diff --git a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/module/modules/EventModule.java b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/module/modules/EventModule.java index 0cb8e1160..bcd0eed81 100644 --- a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/module/modules/EventModule.java +++ b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/module/modules/EventModule.java @@ -3,6 +3,7 @@ package mineplex.mapparser.module.modules; import java.util.List; import org.bukkit.ChatColor; +import org.bukkit.GameMode; import org.bukkit.World; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; @@ -202,6 +203,9 @@ public class EventModule extends Module public void Join(PlayerJoinEvent event) { event.setJoinMessage(F.sys("Player Join", event.getPlayer().getName())); + + event.getPlayer().setGameMode(GameMode.CREATIVE); + event.getPlayer().setFlying(true); } @EventHandler