diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/CreativCheatManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/CreativCheatManager.java index e178bbc..052867a 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/CreativCheatManager.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/CreativCheatManager.java @@ -1,6 +1,7 @@ package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection; import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils; +import net.mc_pandacraft.java.util.bukkit.EntityStackUtil; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; @@ -22,7 +23,7 @@ public class CreativCheatManager implements Listener { e.getPlayer().setFallDistance(0); e.getPlayer().setHealth(20D); - e.getPlayer().teleport(e.getTo().getWorld().getSpawnLocation()); + EntityStackUtil.teleportStack(e.getPlayer(), e.getTo().getWorld().getSpawnLocation()); plugin.getLogger().info("§7"+e.getPlayer().getDisplayName()+"§r teleported to §7"+e.getTo().getWorld().getName()+"§r's spawn to avoid a bug exploit"); e.getPlayer().sendMessage("§dVous avez été téléporté au spawn de cette map car vous alliez tomber dans le vide.");