diff --git a/src/cc/co/evenprime/bukkit/nocheat/actions/types/ActionWithParameters.java b/src/cc/co/evenprime/bukkit/nocheat/actions/types/ActionWithParameters.java index e82402d0..91437a0d 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/actions/types/ActionWithParameters.java +++ b/src/cc/co/evenprime/bukkit/nocheat/actions/types/ActionWithParameters.java @@ -34,7 +34,7 @@ public abstract class ActionWithParameters extends Action { } // Found a matching closing brace else { - WildCard w = WildCard.get(parts2[0]); + ParameterName w = ParameterName.get(parts2[0]); if(w != null) { // Found an existing wildcard inbetween the braces @@ -66,7 +66,7 @@ public abstract class ActionWithParameters extends Action { if(part instanceof String) { log.append((String) part); } else { - log.append(check.getParameter((WildCard) part, player)); + log.append(check.getParameter((ParameterName) part, player)); } } diff --git a/src/cc/co/evenprime/bukkit/nocheat/actions/types/WildCard.java b/src/cc/co/evenprime/bukkit/nocheat/actions/types/ParameterName.java similarity index 74% rename from src/cc/co/evenprime/bukkit/nocheat/actions/types/WildCard.java rename to src/cc/co/evenprime/bukkit/nocheat/actions/types/ParameterName.java index 0eb79398..7da125d9 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/actions/types/WildCard.java +++ b/src/cc/co/evenprime/bukkit/nocheat/actions/types/ParameterName.java @@ -1,16 +1,16 @@ package cc.co.evenprime.bukkit.nocheat.actions.types; -public enum WildCard { +public enum ParameterName { PLAYER("player"), LOCATION("location"), WORLD("world"), VIOLATIONS("violations"), MOVEDISTANCE("movedistance"), REACHDISTANCE("reachdistance"), FALLDISTANCE("falldistance"), LOCATION_TO("locationto"), CHECK("check"), PACKETS("packets"), TEXT("text"), PLACE_LOCATION("placelocation"), PLACE_AGAINST("placeagainst"), BLOCK_TYPE("blocktype"); private final String s; - private WildCard(String s) { + private ParameterName(String s) { this.s = s; } - public static final WildCard get(String s) { - for(WildCard c : WildCard.values()) { + public static final ParameterName get(String s) { + for(ParameterName c : ParameterName.values()) { if(c.s.equals(s)) { return c; } diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/BlockPlaceCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/BlockPlaceCheck.java index 8c170b87..e2ba2681 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/BlockPlaceCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/BlockPlaceCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.config.cache.CCBlockPlace; import cc.co.evenprime.bukkit.nocheat.data.BlockPlaceData; import cc.co.evenprime.bukkit.nocheat.data.ExecutionHistory; @@ -29,7 +29,7 @@ public abstract class BlockPlaceCheck extends Check { } @Override - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { case PLACE_LOCATION: { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/ChatCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/ChatCheck.java index aa8d0a5a..b6f40cc8 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/ChatCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/ChatCheck.java @@ -2,7 +2,7 @@ package cc.co.evenprime.bukkit.nocheat.checks; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.config.cache.CCChat; import cc.co.evenprime.bukkit.nocheat.data.ChatData; import cc.co.evenprime.bukkit.nocheat.data.ExecutionHistory; @@ -23,7 +23,7 @@ public abstract class ChatCheck extends Check { } @Override - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { case TEXT: { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/Check.java b/src/cc/co/evenprime/bukkit/nocheat/checks/Check.java index 5b0e7539..77d4bed9 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/Check.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/Check.java @@ -11,7 +11,7 @@ import cc.co.evenprime.bukkit.nocheat.actions.types.ConsolecommandAction; import cc.co.evenprime.bukkit.nocheat.actions.types.DummyAction; import cc.co.evenprime.bukkit.nocheat.actions.types.LogAction; import cc.co.evenprime.bukkit.nocheat.actions.types.SpecialAction; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.config.cache.ConfigurationCache; import cc.co.evenprime.bukkit.nocheat.data.ExecutionHistory; @@ -77,7 +77,7 @@ public abstract class Check { } } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { case PLAYER: diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java index 54df0b01..1b06020a 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.config.cache.CCMoving; import cc.co.evenprime.bukkit.nocheat.data.ExecutionHistory; import cc.co.evenprime.bukkit.nocheat.data.MovingData; @@ -32,7 +32,7 @@ public abstract class MovingCheck extends Check { } @Override - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/DirectionCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/DirectionCheck.java index d4efc841..530c0085 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/DirectionCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/DirectionCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.BlockBreakCheck; import cc.co.evenprime.bukkit.nocheat.checks.CheckUtil; import cc.co.evenprime.bukkit.nocheat.config.Permissions; @@ -79,7 +79,7 @@ public class DirectionCheck extends BlockBreakCheck { return cc.directionCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/NoswingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/NoswingCheck.java index 5d7b11ec..91c8798b 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/NoswingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/NoswingCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.BlockBreakCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCBlockBreak; @@ -39,7 +39,7 @@ public class NoswingCheck extends BlockBreakCheck { return cc.noswingCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/ReachCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/ReachCheck.java index 26a38a74..72877a16 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/ReachCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/blockbreak/ReachCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.BlockBreakCheck; import cc.co.evenprime.bukkit.nocheat.checks.CheckUtil; import cc.co.evenprime.bukkit.nocheat.config.Permissions; @@ -52,7 +52,7 @@ public class ReachCheck extends BlockBreakCheck { return cc.reachCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/DirectionCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/DirectionCheck.java index 2248be41..769dd073 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/DirectionCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/DirectionCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.BlockPlaceCheck; import cc.co.evenprime.bukkit.nocheat.checks.CheckUtil; import cc.co.evenprime.bukkit.nocheat.config.Permissions; @@ -93,7 +93,7 @@ public class DirectionCheck extends BlockPlaceCheck { return cc.directionCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/ReachCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/ReachCheck.java index 8d010f77..1c80651e 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/ReachCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/blockplace/ReachCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.BlockPlaceCheck; import cc.co.evenprime.bukkit.nocheat.checks.CheckUtil; import cc.co.evenprime.bukkit.nocheat.config.Permissions; @@ -53,7 +53,7 @@ public class ReachCheck extends BlockPlaceCheck { return cc.reachCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/chat/EmptyCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/chat/EmptyCheck.java index c94d11e2..5007e580 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/chat/EmptyCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/chat/EmptyCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.ChatCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCChat; @@ -37,7 +37,7 @@ public class EmptyCheck extends ChatCheck { return cc.emptyCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/chat/SpamCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/chat/SpamCheck.java index 1ffcbc56..e0f2b34f 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/chat/SpamCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/chat/SpamCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.ChatCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCChat; @@ -53,7 +53,7 @@ public class SpamCheck extends ChatCheck { return cc.spamCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/fight/DirectionCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/fight/DirectionCheck.java index 6f5d0f07..0a172ba0 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/fight/DirectionCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/fight/DirectionCheck.java @@ -5,7 +5,7 @@ import java.util.Locale; import net.minecraft.server.Entity; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.CheckUtil; import cc.co.evenprime.bukkit.nocheat.checks.FightCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; @@ -75,7 +75,7 @@ public class DirectionCheck extends FightCheck { return cc.directionCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/fight/NoswingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/fight/NoswingCheck.java index 7736f6d6..f119dcd8 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/fight/NoswingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/fight/NoswingCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.FightCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCFight; @@ -40,7 +40,7 @@ public class NoswingCheck extends FightCheck { return cc.noswingCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/fight/SelfhitCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/fight/SelfhitCheck.java index 4722ada5..bf1dcf64 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/fight/SelfhitCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/fight/SelfhitCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.FightCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCFight; @@ -40,7 +40,7 @@ public class SelfhitCheck extends FightCheck { return cc.selfhitCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/FlyingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/FlyingCheck.java index ded80d59..57afd7cd 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/FlyingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/FlyingCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.MovingCheck; import cc.co.evenprime.bukkit.nocheat.config.cache.CCMoving; import cc.co.evenprime.bukkit.nocheat.data.MovingData; @@ -113,7 +113,7 @@ public class FlyingCheck extends MovingCheck { return moving.allowFlying && moving.runflyCheck; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MorePacketsCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MorePacketsCheck.java index 0107aeed..a21b591c 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MorePacketsCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MorePacketsCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.MovingCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCMoving; @@ -107,7 +107,7 @@ public class MorePacketsCheck extends MovingCheck { } @Override - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { case VIOLATIONS: diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/NoFallCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/NoFallCheck.java index 857a3958..d7d20afc 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/NoFallCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/NoFallCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.MovingCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; import cc.co.evenprime.bukkit.nocheat.config.cache.CCMoving; @@ -104,7 +104,7 @@ public class NoFallCheck extends MovingCheck { } @Override - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) { case VIOLATIONS: diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/RunningCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/RunningCheck.java index b0264a3a..6dea2c54 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/RunningCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/RunningCheck.java @@ -4,7 +4,7 @@ import java.util.Locale; import cc.co.evenprime.bukkit.nocheat.NoCheat; import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer; -import cc.co.evenprime.bukkit.nocheat.actions.types.WildCard; +import cc.co.evenprime.bukkit.nocheat.actions.types.ParameterName; import cc.co.evenprime.bukkit.nocheat.checks.CheckUtil; import cc.co.evenprime.bukkit.nocheat.checks.MovingCheck; import cc.co.evenprime.bukkit.nocheat.config.Permissions; @@ -226,7 +226,7 @@ public class RunningCheck extends MovingCheck { return moving.runflyCheck && !moving.allowFlying; } - public String getParameter(WildCard wildcard, NoCheatPlayer player) { + public String getParameter(ParameterName wildcard, NoCheatPlayer player) { switch (wildcard) {