From 90f9d6be8da0f800edcc2d8122f6e9dabab39d8f Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 26 Mar 2015 14:30:50 -0400 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20=C3=A9ventuel=20bug=20dans?= =?UTF-8?q?=20le=20CreativCheatManager.=20Un=20joueur=20pouvait=20se=20kil?= =?UTF-8?q?l=20en=20montant=20sur=20un=20cheval=20ou=20un=20autre=20entit?= =?UTF-8?q?=C3=A9=20avant=20de=20tomber=20dans=20le=20vide=20avec=20lui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/protection/CreativCheatManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.");