Renamed Inventory classes

This commit is contained in:
Dawson
2023-03-23 11:40:02 -04:00
parent 24a1f83d35
commit 79fa2a9913
4 changed files with 9 additions and 9 deletions
@@ -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);
}
@@ -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();
@@ -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);
}
@@ -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);
}