mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-05-31 05:51:55 +00:00
Renamed Inventory classes
This commit is contained in:
+2
-2
@@ -9,9 +9,9 @@ import dev.brighten.ac.packet.ProtocolVersion;
|
||||
import dev.brighten.ac.packet.wrapper.in.WPacketPlayInWindowClick;
|
||||
|
||||
@CheckData(name = "Inventory (BadClick)", checkId = "inventoryB", type = CheckType.INVENTORY, maxVersion = ProtocolVersion.V1_11)
|
||||
public class InventoryB extends Check {
|
||||
public class InventoryBadClick extends Check {
|
||||
|
||||
public InventoryB(APlayer player) {
|
||||
public InventoryBadClick(APlayer player) {
|
||||
super(player);
|
||||
}
|
||||
|
||||
+3
-3
@@ -9,12 +9,12 @@ import dev.brighten.ac.packet.wrapper.in.WPacketPlayInFlying;
|
||||
import dev.brighten.ac.packet.wrapper.in.WPacketPlayInWindowClick;
|
||||
|
||||
@CheckData(name = "Inventory (ClickMove)", checkId = "inventoryc", type = CheckType.INVENTORY)
|
||||
public class InventoryC extends Check {
|
||||
public InventoryC(APlayer player) {
|
||||
public class InventoryClickMove extends Check {
|
||||
public InventoryClickMove(APlayer player) {
|
||||
super(player);
|
||||
}
|
||||
|
||||
private int lastWindowClick;
|
||||
private int lastWindowClick = Integer.MAX_VALUE;
|
||||
|
||||
// Updating the last time the player clicked in a menu for use in the below check for positional movement.
|
||||
WAction<WPacketPlayInWindowClick> windowClick = packet -> lastWindowClick = player.getPlayerTick();
|
||||
+2
-2
@@ -9,8 +9,8 @@ import org.bukkit.event.inventory.InventoryAction;
|
||||
import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
|
||||
@CheckData(name = "Inventory (FastClick)", checkId = "inventoryd", type = CheckType.INVENTORY)
|
||||
public class InventoryD extends Check {
|
||||
public InventoryD(APlayer player) {
|
||||
public class InventoryFastClick extends Check {
|
||||
public InventoryFastClick(APlayer player) {
|
||||
super(player);
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,9 +10,9 @@ import dev.brighten.ac.packet.wrapper.in.WPacketPlayInFlying;
|
||||
import dev.brighten.ac.utils.annotation.Async;
|
||||
|
||||
@CheckData(name = "Inventory (Move)", checkId = "inventoryA", type = CheckType.INVENTORY, maxVersion = ProtocolVersion.V1_11)
|
||||
public class InventoryA extends Check {
|
||||
public class InventoryMove extends Check {
|
||||
|
||||
public InventoryA(APlayer player) {
|
||||
public InventoryMove(APlayer player) {
|
||||
super(player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user