diff --git a/Plugins/Core/src/me/chiss/Core/Modules/Tester.java b/Plugins/Core/src/me/chiss/Core/Modules/Tester.java index 460715b40..690df00ff 100644 --- a/Plugins/Core/src/me/chiss/Core/Modules/Tester.java +++ b/Plugins/Core/src/me/chiss/Core/Modules/Tester.java @@ -141,11 +141,6 @@ public class Tester extends AModule ShowPlayersInKarts(); } - if (cmd.equals("blocks")) - { - ShowBlocks(caller); - } - if (cmd.equals("testi")) { ShowBobInvis(caller); @@ -229,68 +224,6 @@ public class Tester extends AModule }, 20L); } - public void ShowBlocks(Player player) - { - EntityPlayer mcPlayer = ((CraftPlayer)player).getHandle(); - /* - final FakePlayer fakePlayer = new FakePlayer("BOB", player.getEyeLocation().add(1, 0, 0)); - final FakePlayer fakePlayer2 = new FakePlayer("BOB2", player.getEyeLocation().add(0, 0, 1)); - final FakePlayer fakePlayer3 = new FakePlayer("BOB3", player.getEyeLocation().add(-1, 0, 0)); - - final FakeEntity fakePlayer = new FakeEntity(EntityType.GHAST, player.getLocation().add(1, -3, 0)); - final FakeEntity fakePlayer2 = new FakeEntity(EntityType.GHAST, player.getLocation().add(0, -3, 1)); - final FakeEntity fakePlayer3 = new FakeEntity(EntityType.GHAST, player.getLocation().add(-1, -3, 0)); - */ - // Falling blocks - /* - FakeEntity entity = new FakeFallingBlock(Material.LAVA.getId(), (byte)0, player.getLocation().add(1, 0, 0)); - FakeEntity entity2 = new FakeFallingBlock(Material.LAVA.getId(), (byte)0, player.getLocation().add(1, 0, 0)); - FakeEntity entity3 = new FakeFallingBlock(Material.LAVA.getId(), (byte)0, player.getLocation().add(1, 0, 0)); - */ - - final FakeEntity entity = new FakeEntity(EntityType.SLIME, player.getLocation().add(1.5, 0, 0)); - final FakeEntity entity2 = new FakeEntity(EntityType.SLIME, player.getLocation().add(0, 0, 1.5)); - final FakeEntity entity3 = new FakeEntity(EntityType.SLIME, player.getLocation().add(-1.5, 0, 0)); - - //FakeEntityManager.Instance.AddFakeEntity(fakePlayer, player.getName()); - FakeEntityManager.Instance.AddFakeEntity(entity, player.getName()); - //FakeEntityManager.Instance.AddFakeEntity(fakePlayer2, player.getName()); - FakeEntityManager.Instance.AddFakeEntity(entity2, player.getName()); - //FakeEntityManager.Instance.AddFakeEntity(fakePlayer3, player.getName()); - FakeEntityManager.Instance.AddFakeEntity(entity3, player.getName()); - - //mcPlayer.playerConnection.sendPacket(fakePlayer.Spawn()); - mcPlayer.playerConnection.sendPacket(entity.Spawn()); - //mcPlayer.playerConnection.sendPacket(fakePlayer.SetPassenger(entity.GetEntityId())); - //mcPlayer.playerConnection.sendPacket(fakePlayer.Hide()); - - //mcPlayer.playerConnection.sendPacket(fakePlayer2.Spawn()); - mcPlayer.playerConnection.sendPacket(entity2.Spawn()); - //mcPlayer.playerConnection.sendPacket(fakePlayer2.SetPassenger(entity2.GetEntityId())); - //mcPlayer.playerConnection.sendPacket(fakePlayer2.Hide()); - - //mcPlayer.playerConnection.sendPacket(fakePlayer3.Spawn()); - mcPlayer.playerConnection.sendPacket(entity3.Spawn()); - //mcPlayer.playerConnection.sendPacket(fakePlayer3.SetPassenger(entity3.GetEntityId())); - //mcPlayer.playerConnection.sendPacket(fakePlayer3.Hide()); - - /* - for (int i=0; i < 21; i++) - { - Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugins()[0], new Runnable() - { - public void run() - { - mcPlayer.playerConnection.sendPacket(new Packet28EntityVelocity(fakePlayer.GetEntityId(), .1, 0, 0)); - mcPlayer.playerConnection.sendPacket(new Packet31RelEntityMove(fakePlayer.GetEntityId(), (byte)(1), (byte)0, (byte)0)); - } - }, i); - } - */ - - new UpdateThread(mcPlayer, entity, entity2, entity3).start(); - } - public void ShowFakePig(Player player) { FakeEntity entity = new FakeEntity(EntityType.PIG, player.getLocation()); diff --git a/Plugins/Libraries/craftbukkit.jar b/Plugins/Libraries/craftbukkit.jar index 73891ca8f..1a85cd1e6 100644 Binary files a/Plugins/Libraries/craftbukkit.jar and b/Plugins/Libraries/craftbukkit.jar differ diff --git a/Plugins/Mineplex.Core.Common/.classpath b/Plugins/Mineplex.Core.Common/.classpath index 4b35e421b..b011c8f62 100644 --- a/Plugins/Mineplex.Core.Common/.classpath +++ b/Plugins/Mineplex.Core.Common/.classpath @@ -2,6 +2,6 @@ - + diff --git a/Plugins/Mineplex.Core/.classpath b/Plugins/Mineplex.Core/.classpath index 03d66a5ff..5e3567299 100644 --- a/Plugins/Mineplex.Core/.classpath +++ b/Plugins/Mineplex.Core/.classpath @@ -4,9 +4,9 @@ - + diff --git a/Plugins/Mineplex.Core/.project b/Plugins/Mineplex.Core/.project index ffc9239da..c69462413 100644 --- a/Plugins/Mineplex.Core/.project +++ b/Plugins/Mineplex.Core/.project @@ -16,11 +16,7 @@ LaunchConfigHandle - <project>/.externalToolBuilders/Core Builder.launch - - - incclean - true + <project>/.externalToolBuilders/Core.launch diff --git a/Plugins/Nautilus.Core.CraftBukkit/src/net/minecraft/server/v1_6_R3/EntityInsentient.java b/Plugins/Nautilus.Core.CraftBukkit/src/net/minecraft/server/v1_6_R3/EntityInsentient.java index 4e47348b7..b99e3b4b5 100644 --- a/Plugins/Nautilus.Core.CraftBukkit/src/net/minecraft/server/v1_6_R3/EntityInsentient.java +++ b/Plugins/Nautilus.Core.CraftBukkit/src/net/minecraft/server/v1_6_R3/EntityInsentient.java @@ -69,6 +69,8 @@ public abstract class EntityInsentient extends EntityLiving { private NBTTagCompound bx; public boolean Vegetated; + public boolean BreakLeash = true; + public boolean PullWhileLeashed = true; public EntityInsentient(World world) { super(world); @@ -807,7 +809,7 @@ public abstract class EntityInsentient extends EntityLiving { } public final boolean c(EntityHuman entityhuman) { - if (this.bH() && this.getLeashHolder() == entityhuman) { + if (this.bH() && this.getLeashHolder() == entityhuman && BreakLeash) { // CraftBukkit start if (CraftEventFactory.callPlayerUnleashEntityEvent(this, entityhuman).isCancelled()) { ((EntityPlayer)entityhuman).playerConnection.sendPacket(new Packet39AttachEntity(1, this, this.getLeashHolder())); @@ -866,7 +868,7 @@ public abstract class EntityInsentient extends EntityLiving { } public void unleash(boolean flag, boolean flag1) { - if (this.bv) { + if (this.bv && BreakLeash) { this.bv = false; this.bw = null; if (!this.world.isStatic && flag1) {