- Fixed merge issues
This commit is contained in:
parent
f497eab633
commit
0bd026f506
@ -4,10 +4,7 @@ import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.HashSet;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Block;
|
||||
import net.minecraft.server.v1_7_R4.BlockSandStone;
|
||||
import net.minecraft.server.v1_7_R4.EnumProtocol;
|
||||
import net.minecraft.server.v1_7_R4.Item;
|
||||
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -25,7 +22,6 @@ public class PacketHandler extends MiniPlugin
|
||||
{
|
||||
private NautHashMap<Player, PacketVerifier> _playerVerifierMap = new NautHashMap<Player, PacketVerifier>();
|
||||
private HashSet<IPacketHandler> _packetHandlers = new HashSet<IPacketHandler>();
|
||||
public static Item BANNER = new Item().c("banner");
|
||||
|
||||
public PacketHandler(JavaPlugin plugin)
|
||||
{
|
||||
@ -51,11 +47,6 @@ public class PacketHandler extends MiniPlugin
|
||||
|
||||
EnumProtocol.PLAY.a().put(2, PacketPlayUseEntity.class);
|
||||
EnumProtocol.PLAY.a().put(PacketPlayUseEntity.class, 2);
|
||||
<<<<<<< HEAD
|
||||
|
||||
Method method = ProtocolInjector.class.getDeclaredMethod("addPacket", EnumProtocol.class, boolean.class, int.class,
|
||||
Class.class);
|
||||
=======
|
||||
|
||||
// NBT Overflow Exploit Handlers
|
||||
EnumProtocol.PLAY.a().put(8, PacketPlayInBlockPace.class);
|
||||
@ -69,14 +60,13 @@ public class PacketHandler extends MiniPlugin
|
||||
// ----------------------------
|
||||
|
||||
Method method = ProtocolInjector.class.getDeclaredMethod("addPacket", EnumProtocol.class,boolean.class, int.class, Class.class);
|
||||
>>>>>>> 1aecc9505c702167aeca5fd3301762264ce46c5d
|
||||
method.setAccessible(true);
|
||||
|
||||
method.invoke(null, EnumProtocol.PLAY, true, 67, PacketPlayOutCamera.class);
|
||||
method.invoke(null, EnumProtocol.PLAY, true, 68, PacketPlayOutWorldBorder.class);
|
||||
|
||||
Item.REGISTRY.a(425, "banner", BANNER);
|
||||
Block.REGISTRY.a(425, "banner", new BlockSandStone());
|
||||
|
||||
// EnumProtocol.PLAY.b().put(68, PacketPlayOutWorldBorder.class);
|
||||
// EnumProtocol.PLAY.b().put(PacketPlayOutWorldBorder.class, 68);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -133,4 +123,4 @@ public class PacketHandler extends MiniPlugin
|
||||
verifier.removePacketHandler(packetHandler);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1565,9 +1565,6 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
{
|
||||
_requiredRank = rank;
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
=======
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
public void explosionCancel(EntityExplodeEvent event)
|
||||
@ -1607,5 +1604,4 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
>>>>>>> 1aecc9505c702167aeca5fd3301762264ce46c5d
|
||||
}
|
Loading…
Reference in New Issue
Block a user