diff --git a/README.md b/README.md
index 5ff7293..cfcc287 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,8 @@ AntiCheat helps server admins easily identify and block malicious users by monit
### BTC donations: 1DwUKboRQKrgR9o1oZC4VutkCUwdZStHtk
### LTC donations: LTXzGnVLXmiH5XJch1bKrcZtzQjaF9rd8V
+See the [current project plan](https://trello.com/b/zaeCVY0H/anticheatreloaded) on Trello.
+
Bug Reporting
------------
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/AntiCheatReloaded.java b/src/main/java/com/rammelkast/anticheatreloaded/AntiCheatReloaded.java
index 4f575b5..aadda3e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/AntiCheatReloaded.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/AntiCheatReloaded.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/api/AntiCheatAPI.java b/src/main/java/com/rammelkast/anticheatreloaded/api/AntiCheatAPI.java
index 0c00fd9..894a4db 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/api/AntiCheatAPI.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/api/AntiCheatAPI.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -44,7 +45,7 @@ public class AntiCheatAPI {
*
* @param type Check to start watching for
*/
- public static void activateCheck(CheckType type, Class caller) {
+ public static void activateCheck(CheckType type, Class> caller) {
chk.activateCheck(type, caller.getName());
}
@@ -53,7 +54,7 @@ public class AntiCheatAPI {
*
* @param type Check to stop watching for
*/
- public static void deactivateCheck(CheckType type, Class caller) {
+ public static void deactivateCheck(CheckType type, Class> caller) {
chk.deactivateCheck(type, caller.getName());
}
@@ -73,7 +74,7 @@ public class AntiCheatAPI {
* @param player Player to stop watching
* @param type Check to stop watching for
*/
- public static void exemptPlayer(Player player, CheckType type, Class caller) {
+ public static void exemptPlayer(Player player, CheckType type, Class> caller) {
chk.exemptPlayer(player, type, caller.getName());
}
@@ -83,7 +84,7 @@ public class AntiCheatAPI {
* @param player Player to start watching
* @param type Check to start watching for
*/
- public static void unexemptPlayer(Player player, CheckType type, Class caller) {
+ public static void unexemptPlayer(Player player, CheckType type, Class> caller) {
chk.unexemptPlayer(player, type, caller.getName());
}
@@ -111,31 +112,6 @@ public class AntiCheatAPI {
// PlayerManager API
- /**
- * Get a player's integer hack level
- *
- * @param player Player to check
- * @return player's hack level
- * @deprecated see {@link #getGroup(org.bukkit.entity.Player)}
- */
- @Deprecated
- public static int getLevel(Player player) {
- return umr.safeGetLevel(player.getUniqueId());
- }
-
-
- /**
- * Set a player's hack level
- *
- * @param player Player to set
- * @param level Group to set to
- * @deprecated see {@link #resetPlayer(org.bukkit.entity.Player)}
- */
- @Deprecated
- public static void setLevel(Player player, int level) {
- umr.safeSetLevel(player.getUniqueId(), level);
- }
-
/**
* Reset a player's hack level to 0
*
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/api/CheckFailEvent.java b/src/main/java/com/rammelkast/anticheatreloaded/api/CheckFailEvent.java
index 9b55011..609344e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/api/CheckFailEvent.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/api/CheckFailEvent.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java b/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java
index 3c3b57b..92658d6 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/CheckResult.java b/src/main/java/com/rammelkast/anticheatreloaded/check/CheckResult.java
index 7fe0357..e80fa92 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/CheckResult.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/CheckResult.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/CheckType.java b/src/main/java/com/rammelkast/anticheatreloaded/check/CheckType.java
index fe01b57..84a8ad5 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/CheckType.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/CheckType.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/CriticalsCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/CriticalsCheck.java
index 880af13..162acc1 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/CriticalsCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/CriticalsCheck.java
@@ -1,3 +1,21 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
package com.rammelkast.anticheatreloaded.check.combat;
import org.bukkit.Material;
@@ -16,17 +34,24 @@ public class CriticalsCheck {
public static void doDamageEvent(EntityDamageByEntityEvent e, Player damager) {
if (!(e.getDamager() instanceof Player) || e.getCause() != DamageCause.ENTITY_ATTACK)
return;
- Player p = (Player)e.getDamager();
+ Player p = (Player) e.getDamager();
if (isCritical(p)) {
- if ((p.getLocation().getY() % 1.0 == 0 || p.getLocation().getY() % 0.5 == 0) && p.getLocation().clone().subtract(0, 1.0, 0).getBlock().getType().isSolid()) {
+ if ((p.getLocation().getY() % 1.0 == 0 || p.getLocation().getY() % 0.5 == 0)
+ && p.getLocation().clone().subtract(0, 1.0, 0).getBlock().getType().isSolid()) {
e.setCancelled(true);
- EventListener.log(new CheckResult(CheckResult.Result.FAILED, p.getName() + " failed Criticals, tried to do a critical without needed conditions").getMessage(), p, CheckType.CRITICALS);
+ EventListener.log(new CheckResult(CheckResult.Result.FAILED,
+ p.getName() + " failed Criticals, tried to do a critical without needed conditions")
+ .getMessage(),
+ p, CheckType.CRITICALS);
}
}
}
private static boolean isCritical(Player player) {
- return player.getFallDistance() > 0.0f && !player.isOnGround() && !player.isInsideVehicle() && !player.hasPotionEffect(PotionEffectType.BLINDNESS) && !Utilities.isHoveringOverWater(player.getLocation()) && player.getEyeLocation().getBlock().getType() != Material.LADDER;
+ return player.getFallDistance() > 0.0f && !player.isOnGround() && !player.isInsideVehicle()
+ && !player.hasPotionEffect(PotionEffectType.BLINDNESS)
+ && !Utilities.isHoveringOverWater(player.getLocation())
+ && player.getEyeLocation().getBlock().getType() != Material.LADDER;
}
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java
index 13f1f7e..962af30 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.combat;
import java.util.HashMap;
@@ -23,22 +42,23 @@ import com.rammelkast.anticheatreloaded.util.VersionUtil;
* @author Rammelkast
*/
public class KillAuraCheck {
-
+
private static final Map NPC_LIST = new HashMap();
private static final Map VL_COUNT = new HashMap();
-
+
public static void cleanPlayer(Player p) {
- if (!VersionUtil.getVersion().equals("v1_11_R1")) {
+ if (!VersionUtil.getVersion().equals("v1_12_R1")) {
return;
}
NPC_LIST.remove(p.getUniqueId());
}
-
+
public static void listenPackets() {
- if (!VersionUtil.getVersion().equals("v1_11_R1")) {
+ if (!VersionUtil.getVersion().equals("v1_12_R1")) {
return;
}
- AntiCheatReloaded.getProtocolManager().addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(), ListenerPriority.NORMAL, new PacketType[] {PacketType.Play.Client.USE_ENTITY}) {
+ AntiCheatReloaded.getProtocolManager().addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(),
+ ListenerPriority.NORMAL, new PacketType[] { PacketType.Play.Client.USE_ENTITY }) {
@Override
public void onPacketReceiving(PacketEvent e) {
Player p = e.getPlayer();
@@ -53,10 +73,14 @@ public class KillAuraCheck {
if (!VL_COUNT.containsKey(p.getUniqueId())) {
VL_COUNT.put(p.getUniqueId(), 1);
NPC_LIST.get(p.getUniqueId()).damage();
- }else {
+ } else {
VL_COUNT.put(p.getUniqueId(), VL_COUNT.get(p.getUniqueId()) + 1);
if (VL_COUNT.get(p.getUniqueId()) >= 5) {
- EventListener.log(new CheckResult(CheckResult.Result.FAILED, p.getName() + " failed KillAura (botcheck), hit the bot " + VL_COUNT.get(p.getUniqueId()) + " times (max=5)").getMessage(), p, CheckType.KILLAURA);
+ EventListener.log(
+ new CheckResult(CheckResult.Result.FAILED,
+ p.getName() + " failed KillAura (botcheck), hit the bot "
+ + VL_COUNT.get(p.getUniqueId()) + " times (max=5)").getMessage(),
+ p, CheckType.KILLAURA);
AntiCheatReloaded.getPlugin().onKillAuraViolation();
VL_COUNT.remove(p.getUniqueId());
}
@@ -66,7 +90,7 @@ public class KillAuraCheck {
}
public static void doDamageEvent(EntityDamageByEntityEvent e, Player p) {
- if (!VersionUtil.getVersion().equals("v1_11_R1")) {
+ if (!VersionUtil.getVersion().equals("v1_12_R1")) {
return;
}
if (NPC_LIST.containsKey(p.getUniqueId()))
@@ -77,14 +101,14 @@ public class KillAuraCheck {
npc.spawn();
}
}
-
+
public static void doMove(PlayerMoveEvent e) {
- if (!VersionUtil.getVersion().equals("v1_11_R1")) {
+ if (!VersionUtil.getVersion().equals("v1_12_R1")) {
return;
}
if (NPC_LIST.containsKey(e.getPlayer().getUniqueId())) {
NPC_LIST.get(e.getPlayer().getUniqueId()).move(e);
}
}
-
+
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/VelocityCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/VelocityCheck.java
index 86b68cc..f84b00d 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/VelocityCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/VelocityCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.combat;
import java.util.HashMap;
@@ -17,13 +36,14 @@ import com.rammelkast.anticheatreloaded.event.EventListener;
public class VelocityCheck {
private static final Map VL_COUNT = new HashMap();
-
+
public static void cleanPlayer(Player p) {
VL_COUNT.remove(p.getUniqueId());
}
-
+
public static void runCheck(EntityDamageByEntityEvent e, final Player p) {
- if (AntiCheatReloaded.getManager().getCheckManager().isOpExempt(p) || AntiCheatReloaded.getManager().getCheckManager().isExempt(p, CheckType.VELOCITY))
+ if (AntiCheatReloaded.getManager().getCheckManager().isOpExempt(p)
+ || AntiCheatReloaded.getManager().getCheckManager().isExempt(p, CheckType.VELOCITY))
return;
final Location then = p.getLocation();
new BukkitRunnable() {
@@ -36,16 +56,22 @@ public class VelocityCheck {
VL_COUNT.put(p.getUniqueId(), 1);
else {
VL_COUNT.put(p.getUniqueId(), VL_COUNT.get(p.getUniqueId()) + 1);
- if (VL_COUNT.get(p.getUniqueId()) > AntiCheatReloaded.getManager().getBackend().getMagic().VELOCITY_AMT()) {
- EventListener.log(new CheckResult(CheckResult.Result.FAILED, p.getName() + " failed Velocity, had zero/low velocity " + VL_COUNT.get(p.getUniqueId()) + " times (max=" + AntiCheatReloaded.getManager().getBackend().getMagic().VELOCITY_AMT() + ", dist=" + then.distance(p.getLocation()) + ")").getMessage(), p, CheckType.VELOCITY);
+ if (VL_COUNT.get(p.getUniqueId()) > AntiCheatReloaded.getManager().getBackend().getMagic()
+ .VELOCITY_AMT()) {
+ EventListener.log(new CheckResult(CheckResult.Result.FAILED,
+ p.getName() + " failed Velocity, had zero/low velocity "
+ + VL_COUNT.get(p.getUniqueId()) + " times (max="
+ + AntiCheatReloaded.getManager().getBackend().getMagic().VELOCITY_AMT()
+ + ", dist=" + then.distance(p.getLocation()) + ")").getMessage(),
+ p, CheckType.VELOCITY);
VL_COUNT.remove(p.getUniqueId());
}
}
- }else {
+ } else {
VL_COUNT.remove(p.getUniqueId());
}
}
}.runTaskLater(AntiCheatReloaded.getPlugin(), 4);
}
-
+
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/BlinkCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/BlinkCheck.java
index 7c21169..2c7d9ca 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/BlinkCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/BlinkCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.movement;
import java.util.HashMap;
@@ -23,7 +42,7 @@ import com.rammelkast.anticheatreloaded.event.EventListener;
public class BlinkCheck {
public static final Map MOVE_COUNT = new HashMap();
-
+
public static void startTimer() {
new BukkitRunnable() {
@Override
@@ -32,28 +51,39 @@ public class BlinkCheck {
}
}.runTaskTimer(AntiCheatReloaded.getPlugin(), 20, 20);
}
-
+
public static void listenPackets() {
- AntiCheatReloaded.getProtocolManager().addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(), ListenerPriority.NORMAL, new PacketType[] {PacketType.Play.Client.POSITION, PacketType.Play.Client.POSITION_LOOK}) {
- @Override
- public void onPacketReceiving(PacketEvent e) {
- Player p = e.getPlayer();
- Location cur = e.getPlayer().getLocation();
- if (!MOVE_COUNT.containsKey(p.getUniqueId())) {
- MOVE_COUNT.put(p.getUniqueId(), 1);
- } else {
- MOVE_COUNT.put(p.getUniqueId(), MOVE_COUNT.get(p.getUniqueId()) + 1);
- if (AntiCheatReloaded.getManager().getCheckManager().checkInWorld(p) && !AntiCheatReloaded.getManager().getCheckManager().isOpExempt(p) && !AntiCheatReloaded.getManager().getCheckManager().isExempt(p, CheckType.BLINK)) {
- if (MOVE_COUNT.get(p.getUniqueId()) > AntiCheatReloaded.getManager().getBackend().getMagic().BLINK_PACKET()) {
- EventListener.log(new CheckResult(CheckResult.Result.FAILED, p.getName() + " failed Blink, sent " + MOVE_COUNT.get(p.getUniqueId()) + " packets in one second (max=" + AntiCheatReloaded.getManager().getBackend().getMagic().BLINK_PACKET() + ")").getMessage(), p, CheckType.BLINK);
- MOVE_COUNT.remove(p.getUniqueId());
- e.setCancelled(true);
- e.getPlayer().teleport(cur);
+ AntiCheatReloaded.getProtocolManager()
+ .addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(), ListenerPriority.NORMAL,
+ new PacketType[] { PacketType.Play.Client.POSITION, PacketType.Play.Client.POSITION_LOOK }) {
+ @Override
+ public void onPacketReceiving(PacketEvent e) {
+ Player p = e.getPlayer();
+ Location cur = e.getPlayer().getLocation();
+ if (!MOVE_COUNT.containsKey(p.getUniqueId())) {
+ MOVE_COUNT.put(p.getUniqueId(), 1);
+ } else {
+ MOVE_COUNT.put(p.getUniqueId(), MOVE_COUNT.get(p.getUniqueId()) + 1);
+ if (AntiCheatReloaded.getManager().getCheckManager().checkInWorld(p)
+ && !AntiCheatReloaded.getManager().getCheckManager().isOpExempt(p)
+ && !AntiCheatReloaded.getManager().getCheckManager().isExempt(p, CheckType.BLINK)) {
+ if (MOVE_COUNT.get(p.getUniqueId()) > AntiCheatReloaded.getManager().getBackend()
+ .getMagic().BLINK_PACKET()) {
+ EventListener.log(
+ new CheckResult(CheckResult.Result.FAILED, p.getName()
+ + " failed Blink, sent " + MOVE_COUNT.get(p.getUniqueId())
+ + " packets in one second (max=" + AntiCheatReloaded.getManager()
+ .getBackend().getMagic().BLINK_PACKET()
+ + ")").getMessage(),
+ p, CheckType.BLINK);
+ MOVE_COUNT.remove(p.getUniqueId());
+ e.setCancelled(true);
+ e.getPlayer().teleport(cur);
+ }
+ }
}
}
- }
- }
- });
+ });
}
-
+
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/ElytraFly.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/ElytraFly.java
index 46bc1cb..807942f 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/ElytraFly.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/ElytraFly.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.movement;
import org.bukkit.entity.Player;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/FlightCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/FlightCheck.java
index f73871d..7388564 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/FlightCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/FlightCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.movement;
import java.util.HashMap;
@@ -15,8 +34,7 @@ import com.rammelkast.anticheatreloaded.util.Utilities;
import com.rammelkast.anticheatreloaded.util.VersionUtil;
/**
- * @author Rammelkast
- * TODO rewrite this check
+ * @author Rammelkast TODO rewrite this check
*/
public class FlightCheck {
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/GlideCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/GlideCheck.java
index 19aaa57..5af4f94 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/GlideCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/GlideCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.movement;
import java.math.BigDecimal;
@@ -21,11 +40,11 @@ import com.rammelkast.anticheatreloaded.util.VersionUtil;
public class GlideCheck {
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
-
+
public static Map lastDiff = new HashMap();
public static Map lastFallDistance = new HashMap();
public static Map violations = new HashMap();
-
+
public static CheckResult runCheck(Player player, Distance distance) {
if (VersionUtil.isFlying(player)) {
return PASS;
@@ -44,7 +63,8 @@ public class GlideCheck {
if (!violations.containsKey(player.getUniqueId())) {
violations.put(player.getUniqueId(), 1);
} else {
- if (violations.get(player.getUniqueId()) + 1 >= AntiCheatReloaded.getManager().getBackend().getMagic().GLIDE_LIMIT()) {
+ if (violations.get(player.getUniqueId()) + 1 >= AntiCheatReloaded.getManager().getBackend().getMagic()
+ .GLIDE_LIMIT()) {
violations.remove(player.getUniqueId());
Location to = player.getLocation();
to.setY(to.getY() - distanceToFall(to));
@@ -52,7 +72,8 @@ public class GlideCheck {
// Report glide violation to statistics, just for the lulz jk
AntiCheatReloaded.getPlugin().onGlideViolation();
return new CheckResult(CheckResult.Result.FAILED,
- player.getName() + " was set back for gliding (yDiff=" + new BigDecimal(yDiff).setScale(2, BigDecimal.ROUND_UP) + ")");
+ player.getName() + " was set back for gliding (yDiff="
+ + new BigDecimal(yDiff).setScale(2, BigDecimal.ROUND_UP) + ")");
} else {
violations.put(player.getUniqueId(), violations.get(player.getUniqueId()) + 1);
}
@@ -62,7 +83,7 @@ public class GlideCheck {
}
lastDiff.put(player.getUniqueId(), distance.getYDifference());
lastFallDistance.put(player.getUniqueId(), player.getFallDistance());
- return PASS;
+ return PASS;
}
private static double distanceToFall(Location location) {
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/SpeedCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/SpeedCheck.java
index b1b15c5..0e88ccc 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/SpeedCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/SpeedCheck.java
@@ -1,3 +1,21 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
package com.rammelkast.anticheatreloaded.check.movement;
import java.util.HashMap;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/WaterWalkCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/WaterWalkCheck.java
index aaa4232..01d4b6b 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/WaterWalkCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/WaterWalkCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.movement;
import java.util.ArrayList;
@@ -40,9 +59,11 @@ public class WaterWalkCheck {
boolean b;
if (!Utilities.sprintFly(player)) {
b = x > AntiCheatReloaded.getManager().getBackend().getMagic().XZ_SPEED_MAX_WATER()
- || z > AntiCheatReloaded.getManager().getBackend().getMagic().XZ_SPEED_MAX_WATER();
+ || z > AntiCheatReloaded.getManager().getBackend().getMagic()
+ .XZ_SPEED_MAX_WATER();
} else {
- b = x > AntiCheatReloaded.getManager().getBackend().getMagic().XZ_SPEED_MAX_WATER_SPRINT()
+ b = x > AntiCheatReloaded.getManager().getBackend().getMagic()
+ .XZ_SPEED_MAX_WATER_SPRINT()
|| z > AntiCheatReloaded.getManager().getBackend().getMagic()
.XZ_SPEED_MAX_WATER_SPRINT();
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/YAxisCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/YAxisCheck.java
index 608a2f4..092d00a 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/movement/YAxisCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/movement/YAxisCheck.java
@@ -1,11 +1,28 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.movement;
-import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
-import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
@@ -52,7 +69,8 @@ public class YAxisCheck {
lastYtime.put(uuid, System.currentTimeMillis());
} else {
if (y1 > lastYcoord.get(uuid)
- && yAxisViolations.get(uuid) > AntiCheatReloaded.getManager().getBackend().getMagic().Y_MAXVIOLATIONS()
+ && yAxisViolations.get(uuid) > AntiCheatReloaded.getManager().getBackend().getMagic()
+ .Y_MAXVIOLATIONS()
&& (System.currentTimeMillis() - yAxisLastViolation.get(uuid)) < AntiCheatReloaded.getManager()
.getBackend().getMagic().Y_MAXVIOTIME()) {
Location g = player.getLocation();
@@ -68,9 +86,10 @@ public class YAxisCheck {
player.getName() + " tried to fly on y-axis " + yAxisViolations.get(uuid) + " times (max ="
+ AntiCheatReloaded.getManager().getBackend().getMagic().Y_MAXVIOLATIONS() + ")");
} else {
- if (yAxisViolations.get(uuid) > AntiCheatReloaded.getManager().getBackend().getMagic().Y_MAXVIOLATIONS()
- && (System.currentTimeMillis() - yAxisLastViolation.get(uuid)) > AntiCheatReloaded.getManager()
- .getBackend().getMagic().Y_MAXVIOTIME()) {
+ if (yAxisViolations.get(uuid) > AntiCheatReloaded.getManager().getBackend().getMagic()
+ .Y_MAXVIOLATIONS()
+ && (System.currentTimeMillis() - yAxisLastViolation.get(uuid)) > AntiCheatReloaded
+ .getManager().getBackend().getMagic().Y_MAXVIOTIME()) {
yAxisViolations.put(uuid, 0);
yAxisLastViolation.put(uuid, 0L);
}
@@ -78,7 +97,8 @@ public class YAxisCheck {
long i = System.currentTimeMillis() - lastYtime.get(uuid);
double diff = AntiCheatReloaded.getManager().getBackend().getMagic().Y_MAXDIFF()
+ (Utilities.isStair(player.getLocation().add(0, -1, 0).getBlock()) ? 0.5 : 0.0);
- if ((y1 - lastYcoord.get(uuid)) > diff && i < AntiCheatReloaded.getManager().getBackend().getMagic().Y_TIME()) {
+ if ((y1 - lastYcoord.get(uuid)) > diff
+ && i < AntiCheatReloaded.getManager().getBackend().getMagic().Y_TIME()) {
Location g = player.getLocation();
yAxisViolations.put(uuid, yAxisViolations.get(uuid) + 1);
yAxisLastViolation.put(uuid, System.currentTimeMillis());
@@ -91,9 +111,10 @@ public class YAxisCheck {
return new CheckResult(CheckResult.Result.FAILED, player.getName() + " tried to fly on y-axis in "
+ i + " ms (min =" + AntiCheatReloaded.getManager().getBackend().getMagic().Y_TIME() + ")");
} else {
- if ((y1 - lastYcoord.get(uuid)) > AntiCheatReloaded.getManager().getBackend().getMagic().Y_MAXDIFF() + 1
- || (System.currentTimeMillis() - lastYtime.get(uuid)) > AntiCheatReloaded.getManager().getBackend()
- .getMagic().Y_TIME()) {
+ if ((y1 - lastYcoord.get(uuid)) > AntiCheatReloaded.getManager().getBackend().getMagic().Y_MAXDIFF()
+ + 1
+ || (System.currentTimeMillis() - lastYtime.get(uuid)) > AntiCheatReloaded.getManager()
+ .getBackend().getMagic().Y_TIME()) {
lastYtime.put(uuid, System.currentTimeMillis());
lastYcoord.put(uuid, y1);
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/player/GhosthandCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/player/GhosthandCheck.java
index bf06b62..520da61 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/check/player/GhosthandCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/check/player/GhosthandCheck.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.check.player;
import java.util.HashMap;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/CommandBase.java b/src/main/java/com/rammelkast/anticheatreloaded/command/CommandBase.java
index 997412a..c9c5905 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/CommandBase.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/CommandBase.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/CommandHandler.java b/src/main/java/com/rammelkast/anticheatreloaded/command/CommandHandler.java
index 56d7f97..c2c79e3 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/CommandHandler.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/CommandHandler.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -26,7 +27,6 @@ import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import com.rammelkast.anticheatreloaded.command.executors.CommandCheck;
-import com.rammelkast.anticheatreloaded.command.executors.CommandDebug;
import com.rammelkast.anticheatreloaded.command.executors.CommandDeveloper;
import com.rammelkast.anticheatreloaded.command.executors.CommandHelp;
import com.rammelkast.anticheatreloaded.command.executors.CommandLog;
@@ -41,7 +41,6 @@ public class CommandHandler implements CommandExecutor {
public CommandHandler() {
commands.add(new CommandHelp());
commands.add(new CommandCheck());
- commands.add(new CommandDebug());
commands.add(new CommandDeveloper());
commands.add(new CommandLog());
commands.add(new CommandReload());
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandCheck.java
index f7b1012..21d669e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandCheck.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandCheck.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDebug.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDebug.java
deleted file mode 100644
index fb70b93..0000000
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDebug.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-package com.rammelkast.anticheatreloaded.command.executors;
-
-import org.bukkit.Bukkit;
-import org.bukkit.command.CommandSender;
-import org.bukkit.entity.Player;
-
-import com.rammelkast.anticheatreloaded.command.CommandBase;
-import com.rammelkast.anticheatreloaded.util.PastebinReport;
-import com.rammelkast.anticheatreloaded.util.Permission;
-
-public class CommandDebug extends CommandBase {
-
- private static final String NAME = "AntiCheat Debug Reporting";
- private static final String COMMAND = "debug";
- private static final String USAGE = "anticheat debug ";
- private static final Permission PERMISSION = Permission.SYSTEM_DEBUG;
- private static final String[] HELP = {
- GRAY + "Use: " + AQUA + "/anticheat debug" + GRAY + " to create a debug report",
- GRAY + "Use: " + AQUA + "/anticheat debug " + GRAY + " to create a debug report for a user",
- };
-
- public CommandDebug() {
- super(NAME, COMMAND, USAGE, HELP, PERMISSION);
- }
-
- @Override
- protected void execute(CommandSender cs, String[] args) {
- Player player = null;
- if (args.length == 1) {
- player = Bukkit.getPlayer(args[0]);
- } else {
- if (cs instanceof Player) {
- player = (Player) cs;
- }
- }
-
- cs.sendMessage(GRAY + "Please wait while I collect some data...");
- PastebinReport report = new PastebinReport(cs, player);
- cs.sendMessage(GREEN + "Debug information posted to: " + WHITE + report.getURL());
- cs.sendMessage(GREEN + "Please include this link when making bug reports.");
- }
-}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDeveloper.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDeveloper.java
index 650a137..38a4000 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDeveloper.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandDeveloper.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandHelp.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandHelp.java
index 23706a7..be2c812 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandHelp.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandHelp.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandLog.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandLog.java
index 7dd6bc6..1191ec4 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandLog.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandLog.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReload.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReload.java
index 308d337..9110b43 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReload.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReload.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReport.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReport.java
index 01895dc..c4816e9 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReport.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReport.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReset.java b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReset.java
index e85ccbb..e0d6743 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReset.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/command/executors/CommandReset.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/Configuration.java b/src/main/java/com/rammelkast/anticheatreloaded/config/Configuration.java
index 4fd15b0..01a08dc 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/Configuration.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/Configuration.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationFile.java b/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationFile.java
index 4d0ce7c..8c7af74 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationFile.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationFile.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationTable.java b/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationTable.java
index 9bcad1c..9ab155b 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationTable.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/ConfigurationTable.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/files/Config.java b/src/main/java/com/rammelkast/anticheatreloaded/config/files/Config.java
index 3d851e6..1fc9a76 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/files/Config.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/files/Config.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/files/Enterprise.java b/src/main/java/com/rammelkast/anticheatreloaded/config/files/Enterprise.java
index e0f995d..f8d8fee 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/files/Enterprise.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/files/Enterprise.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLGroupsHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLGroupsHolder.java
index 8b5da5c..3c88a52 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLGroupsHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLGroupsHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLangHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLangHolder.java
index 0f7dd01..d809ca2 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLangHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLangHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLevelsHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLevelsHolder.java
index db5a2f3..bffd5d5 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLevelsHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLLevelsHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLMagicHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLMagicHolder.java
index 15e2e86..379b7ad 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLMagicHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLMagicHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLRulesHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLRulesHolder.java
index 028d039..578944c 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLRulesHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/mysql/MySQLRulesHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlGroupsHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlGroupsHolder.java
index e8a1720..0125dc9 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlGroupsHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlGroupsHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLangHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLangHolder.java
index ba7a8dd..b575567 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLangHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLangHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLevelsHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLevelsHolder.java
index 2cae7c9..d2e7b15 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLevelsHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlLevelsHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlMagicHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlMagicHolder.java
index 5a1ef59..761eb6e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlMagicHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlMagicHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlRulesHolder.java b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlRulesHolder.java
index c65be3d..f8b10ea 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlRulesHolder.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/holders/yaml/YamlRulesHolder.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Groups.java b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Groups.java
index b96bd83..b0037d5 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Groups.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Groups.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Lang.java b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Lang.java
index 6969e0e..4b511d5 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Lang.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Lang.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.config.providers;
import java.util.List;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Levels.java b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Levels.java
index c272f37..971346d 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Levels.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Levels.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Magic.java b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Magic.java
index c786c7d..248963e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Magic.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Magic.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Rules.java b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Rules.java
index 2bb6be4..a82a1f6 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Rules.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/providers/Rules.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +17,6 @@
* along with this program. If not, see .
*/
-
package com.rammelkast.anticheatreloaded.config.providers;
import java.util.List;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/config/yaml/CommentedConfiguration.java b/src/main/java/com/rammelkast/anticheatreloaded/config/yaml/CommentedConfiguration.java
index de419dc..590dd6b 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/config/yaml/CommentedConfiguration.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/config/yaml/CommentedConfiguration.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/event/BlockListener.java b/src/main/java/com/rammelkast/anticheatreloaded/event/BlockListener.java
index cccb9e6..0c12f76 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/event/BlockListener.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/event/BlockListener.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/event/EntityListener.java b/src/main/java/com/rammelkast/anticheatreloaded/event/EntityListener.java
index 92d5465..3bb9419 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/event/EntityListener.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/event/EntityListener.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/event/EventListener.java b/src/main/java/com/rammelkast/anticheatreloaded/event/EventListener.java
index e713009..9610e82 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/event/EventListener.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/event/EventListener.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/event/InventoryListener.java b/src/main/java/com/rammelkast/anticheatreloaded/event/InventoryListener.java
index 80567cb..007b3eb 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/event/InventoryListener.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/event/InventoryListener.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/event/PlayerListener.java b/src/main/java/com/rammelkast/anticheatreloaded/event/PlayerListener.java
index 8f56f53..281ce77 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/event/PlayerListener.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/event/PlayerListener.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/event/VehicleListener.java b/src/main/java/com/rammelkast/anticheatreloaded/event/VehicleListener.java
index 1d427c5..86ad8fb 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/event/VehicleListener.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/event/VehicleListener.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -47,8 +48,10 @@ public class VehicleListener extends EventListener {
}
+ @Deprecated
@EventHandler(ignoreCancelled = true)
public void onVehicleDestroy(VehicleDestroyEvent event) {
+ // TODO fix deprecations
if (event.getVehicle().getPassenger() != null && event.getVehicle().getPassenger() instanceof Player) {
getBackend().logEnterExit((Player) event.getVehicle().getPassenger());
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/manage/AntiCheatManager.java b/src/main/java/com/rammelkast/anticheatreloaded/manage/AntiCheatManager.java
index 5a0e21c..04b7c6e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/manage/AntiCheatManager.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/manage/AntiCheatManager.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/manage/CheckManager.java b/src/main/java/com/rammelkast/anticheatreloaded/manage/CheckManager.java
index 6e854a6..ecf9107 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/manage/CheckManager.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/manage/CheckManager.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/manage/LoggingManager.java b/src/main/java/com/rammelkast/anticheatreloaded/manage/LoggingManager.java
index f961e37..30e6123 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/manage/LoggingManager.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/manage/LoggingManager.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -43,7 +44,7 @@ public class LoggingManager {
private final Configuration config;
public LoggingManager(AntiCheatReloaded plugin, Logger logger, Configuration config) {
- this.fileLogger = Logger.getLogger("net.gravitydevelopment.anticheat.AntiCheat");
+ this.fileLogger = Logger.getLogger("com.rammelkast.anticheatreloaded.AntiCheatReloaded");
this.config = config;
try {
File file = new File(plugin.getDataFolder(), "log");
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/manage/PacketManager.java b/src/main/java/com/rammelkast/anticheatreloaded/manage/PacketManager.java
index eb30f50..07b0722 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/manage/PacketManager.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/manage/PacketManager.java
@@ -1,8 +1,30 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.manage;
-import com.comphenix.protocol.Packets;
+import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolManager;
-import com.comphenix.protocol.events.*;
+import com.comphenix.protocol.events.ListenerPriority;
+import com.comphenix.protocol.events.PacketAdapter;
+import com.comphenix.protocol.events.PacketContainer;
+import com.comphenix.protocol.events.PacketEvent;
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
public class PacketManager {
@@ -21,13 +43,12 @@ public class PacketManager {
private void addListeners() {
// Arm Animation
protocolManager.addPacketListener(new PacketAdapter(plugin,
- ConnectionSide.CLIENT_SIDE,
ListenerPriority.NORMAL,
- Packets.Client.ARM_ANIMATION) {
+ PacketType.Play.Client.ARM_ANIMATION) {
@Override
public void onPacketReceiving(PacketEvent event) {
- if (event.getPacketID() == Packets.Client.ARM_ANIMATION) {
+ if (event.getPacketType() == PacketType.Play.Client.ARM_ANIMATION) {
PacketContainer packet = event.getPacket();
//System.out.println("Arm animation from "+packet.getIntegers().read(0));
}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/manage/UserManager.java b/src/main/java/com/rammelkast/anticheatreloaded/manage/UserManager.java
index 3579cdb..7dfdfe6 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/manage/UserManager.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/manage/UserManager.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/metrics/Metrics.java b/src/main/java/com/rammelkast/anticheatreloaded/metrics/Metrics.java
index 407c60f..b28f4c7 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/metrics/Metrics.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/metrics/Metrics.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.metrics;
import java.io.ByteArrayOutputStream;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/BlockHardness.java b/src/main/java/com/rammelkast/anticheatreloaded/util/BlockHardness.java
index 670f968..d0c6a57 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/BlockHardness.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/BlockHardness.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/Distance.java b/src/main/java/com/rammelkast/anticheatreloaded/util/Distance.java
index cbc3c2d..03e788a 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/Distance.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/Distance.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/FileFormatter.java b/src/main/java/com/rammelkast/anticheatreloaded/util/FileFormatter.java
index 8accab5..37f3d4e 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/FileFormatter.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/FileFormatter.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/Group.java b/src/main/java/com/rammelkast/anticheatreloaded/util/Group.java
index 82cda1c..5dd6ebe 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/Group.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/Group.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/NMS_1_9_PLUS.java b/src/main/java/com/rammelkast/anticheatreloaded/util/NMS_1_9_PLUS.java
index 14e063e..b1e04fb 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/NMS_1_9_PLUS.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/NMS_1_9_PLUS.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.util;
import java.util.EnumSet;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/NPC_1_12.java b/src/main/java/com/rammelkast/anticheatreloaded/util/NPC_1_12.java
index af53900..89895b4 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/NPC_1_12.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/NPC_1_12.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.util;
import java.util.Random;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/NameGenerator.java b/src/main/java/com/rammelkast/anticheatreloaded/util/NameGenerator.java
index 7509694..5880188 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/NameGenerator.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/NameGenerator.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.util;
import java.util.Arrays;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/NameUtil.java b/src/main/java/com/rammelkast/anticheatreloaded/util/NameUtil.java
index aec387f..f9812a6 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/NameUtil.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/NameUtil.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.util;
import java.util.Random;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/PastebinReport.java b/src/main/java/com/rammelkast/anticheatreloaded/util/PastebinReport.java
deleted file mode 100644
index 9669fb6..0000000
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/PastebinReport.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-package com.rammelkast.anticheatreloaded.util;
-
-import org.bukkit.Bukkit;
-import org.bukkit.command.CommandSender;
-import org.bukkit.configuration.file.FileConfiguration;
-import org.bukkit.configuration.file.YamlConfiguration;
-import org.bukkit.entity.Player;
-
-import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
-import com.rammelkast.anticheatreloaded.config.Configuration;
-import com.rammelkast.anticheatreloaded.config.providers.Magic;
-
-import java.io.*;
-import java.lang.reflect.Field;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.net.URLEncoder;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.List;
-
-public class PastebinReport {
- private static final String DATE = new SimpleDateFormat("yyyy-MM-dd kk:mm Z").format(new Date());
- private static final String API_KEY = "d5ac92da966edb97a97860e6a052784f";
-
- private StringBuilder report = new StringBuilder();
- private String url = "";
-
- public PastebinReport(CommandSender cs) {
- Player player = null;
- if (cs instanceof Player) {
- player = (Player) cs;
- }
- createReport(player);
- try {
- writeReport();
- } catch (IOException e) {
- }
- postReport();
- }
-
- public PastebinReport(CommandSender cs, Player tp) {
- createReport(tp);
- try {
- writeReport();
- } catch (IOException e) {
- }
- postReport();
- }
-
- public String getURL() {
- return url;
- }
-
- private void appendPermissionsTester(Player player) {
- if (player == null) {
- append("No player defined.");
- return;
- }
-
- for (Permission node : Permission.values()) {
- report.append(player.getName() + ": " + node.toString() + " " + node.get(player));
- if (node.get(player) && !node.whichPermission(player).equals(node.toString())) {
- report.append(" (Applied by " + node.whichPermission(player) + ")");
- }
- report.append('\n');
- }
- }
-
- private void createReport(Player player) {
- if (Bukkit.getPluginManager().getPlugin("NoCheatPlus") != null) {
- append("------------ WARNING! ------------");
- append("This report was run with NoCheatPlus enabled. Results may be inaccurate." + '\n');
- }
- append("------------ AntiCheat Report - " + DATE + " ------------");
- appendSystemInfo();
- append("------------Last 30 logs------------");
- appendLogs();
- append("------------Permission Tester------------");
- appendPermissionsTester(player);
- append("------------Event Chains------------");
- appendEventHandlers();
- append("------------Magic Diff------------");
- appendMagicDiff();
- append("-----------End Of Report------------");
- }
-
- private void appendLogs() {
- List logs = AntiCheatReloaded.getManager().getLoggingManager().getLastLogs();
- if (logs.size() == 0) {
- append("No recent logs.");
- return;
- }
- for (String log : logs) {
- append(log);
- }
- }
-
- private void appendSystemInfo() {
- Runtime runtime = Runtime.getRuntime();
- Configuration config = AntiCheatReloaded.getManager().getConfiguration();
- append("AntiCheat Version: " + AntiCheatReloaded.getVersion());
- append("Server Version: " + Bukkit.getVersion());
- append("Server Implementation: " + Bukkit.getName());
- append("Server ID: " + Bukkit.getServerId());
- append("NMS Version: " + VersionUtil.getVersion());
- append("Java Version: " + System.getProperty("java.vendor") + " " + System.getProperty("java.version"));
- append("OS: " + System.getProperty("os.name") + " " + System.getProperty("os.version"));
- append("Free Memory: " + runtime.freeMemory() / 1024 / 1024 + "MB");
- append("Max Memory: " + runtime.maxMemory() / 1024 / 1024 + "MB");
- append("Total Memory: " + runtime.totalMemory() / 1024 / 1024 + "MB");
- append("Online Mode: " + Bukkit.getOnlineMode());
- append("Players: " + Bukkit.getOnlinePlayers().size() + "/" + Bukkit.getMaxPlayers());
- append("Plugin Count: " + Bukkit.getPluginManager().getPlugins().length);
- append("Plugin Uptime: " + ((System.currentTimeMillis() - AntiCheatReloaded.getPlugin().getLoadTime()) / 1000) / 60 + " minutes");
- append("Enterprise: " + config.getConfig().enterprise.getValue());
- if (config.getConfig().enterprise.getValue()) {
- append("- Server name: " + config.getEnterprise().serverName.getValue());
- append("- Database type: " + config.getEnterprise().database.getType());
- append("- Groups source: " + (config.getEnterprise().configGroups.getValue() ? "Database" : "Flatfile"));
- append("- Rules source: " + (config.getEnterprise().configRules.getValue() ? "Database" : "Flatfile"));
- append("- Levels source: " + (config.getEnterprise().syncLevels.getValue() ? "Database" : "Flatfile"));
- }
- }
-
- private void appendMagicDiff() {
- // This is hacky, and I like it
- Magic magic = AntiCheatReloaded.getManager().getConfiguration().getMagic();
- FileConfiguration file = YamlConfiguration.loadConfiguration(new File(AntiCheatReloaded.getPlugin().getDataFolder(), "magic.yml"));
- boolean changed = false;
- for (Field field : Magic.class.getFields()) {
- Object defaultValue = file.get(field.getName());
- try {
- Field value = magic.getClass().getDeclaredField(field.getName());
- String s1 = value.get(magic).toString();
- String s2 = defaultValue.toString();
- if (!s1.equals(s2) && !s1.equals(s2 + ".0")) {
- changed = true;
- append(field.getName() + ": " + s1 + " (Default: " + s2 + ")");
- } else {
- }
- } catch (NoSuchFieldException ex) {
-
- } catch (IllegalAccessException ex) {
-
- }
- }
- if (!changed) {
- append("No changes from default.");
- }
- }
-
- private void appendEventHandlers() {
- report.append(AntiCheatReloaded.getManager().getEventChainReport());
- }
-
- private void writeReport() throws IOException {
- File f = new File(AntiCheatReloaded.getPlugin().getDataFolder() + "/report.txt");
- FileWriter r = new FileWriter(f);
- BufferedWriter writer = new BufferedWriter(r);
- writer.write(report.toString());
- writer.close();
- }
-
- private void postReport() {
- try {
- URL urls = new URL("http://pastebin.com/api/api_post.php");
- HttpURLConnection conn = (HttpURLConnection) urls.openConnection();
- conn.setConnectTimeout(5000);
- conn.setReadTimeout(5000);
- conn.setRequestMethod("POST");
- conn.addRequestProperty("Content-type", "application/x-www-form-urlencoded");
- conn.setInstanceFollowRedirects(false);
- conn.setDoOutput(true);
- OutputStream out = conn.getOutputStream();
-
- out.write(("api_option=paste" + "&api_dev_key=" + URLEncoder.encode(API_KEY, "utf-8") + "&api_paste_code=" + URLEncoder.encode(report.toString(), "utf-8") + "&api_paste_private=" + URLEncoder.encode("1", "utf-8") + "&api_paste_name=" + URLEncoder.encode("", "utf-8") + "&api_paste_expire_date=" + URLEncoder.encode("1M", "utf-8") + "&api_paste_format=" + URLEncoder.encode("text", "utf-8") + "&api_user_key=" + URLEncoder.encode("", "utf-8")).getBytes());
- out.flush();
- out.close();
-
- if (conn.getResponseCode() == 200) {
- InputStream receive = conn.getInputStream();
- BufferedReader reader = new BufferedReader(new InputStreamReader(receive));
- String line;
- StringBuffer response = new StringBuffer();
- while ((line = reader.readLine()) != null) {
- response.append(line);
- response.append("\r\n");
- }
- reader.close();
-
- String result = response.toString().trim();
-
- if (!result.contains("http://")) {
- url = "Failed to post. Check report.txt";
- } else {
- url = result.trim();
- }
- } else {
- url = "Failed to post. Check report.txt";
- }
- } catch (Exception e) {
- url = "Failed to post. Check report.txt";
- }
- }
-
- private void append(String s) {
- report.append(s + '\n');
- }
-}
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/Permission.java b/src/main/java/com/rammelkast/anticheatreloaded/util/Permission.java
index bf3c6a1..594886f 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/Permission.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/Permission.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/ToolHardness.java b/src/main/java/com/rammelkast/anticheatreloaded/util/ToolHardness.java
index 06db4c9..12622c7 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/ToolHardness.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/ToolHardness.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/User.java b/src/main/java/com/rammelkast/anticheatreloaded/util/User.java
index 4a0929d..f16acbc 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/User.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/User.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java b/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java
index 100f583..01e7d78 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/VersionUtil.java b/src/main/java/com/rammelkast/anticheatreloaded/util/VersionUtil.java
index ad02ccb..103a69d 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/VersionUtil.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/VersionUtil.java
@@ -1,3 +1,22 @@
+/*
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package com.rammelkast.anticheatreloaded.util;
import java.util.Arrays;
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/enterprise/Database.java b/src/main/java/com/rammelkast/anticheatreloaded/util/enterprise/Database.java
index b7917da..1d88504 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/enterprise/Database.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/enterprise/Database.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/rule/ConditionalRule.java b/src/main/java/com/rammelkast/anticheatreloaded/util/rule/ConditionalRule.java
index d9bc258..d80807a 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/rule/ConditionalRule.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/rule/ConditionalRule.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/rule/Rule.java b/src/main/java/com/rammelkast/anticheatreloaded/util/rule/Rule.java
index 89c8118..d9d4011 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/util/rule/Rule.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/util/rule/Rule.java
@@ -1,6 +1,7 @@
/*
- * AntiCheat for Bukkit.
- * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
+ * AntiCheatReloaded for Bukkit and Spigot.
+ * Copyright (c) 2012-2015 AntiCheat Team | http://gravitydevelopment.net
+ * Copyright (c) 2016-2018 Rammelkast | https://rammelkast.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/resources/magic.yml b/src/main/resources/magic.yml
index f992d6b..0990997 100644
--- a/src/main/resources/magic.yml
+++ b/src/main/resources/magic.yml
@@ -96,6 +96,6 @@ KILLAURA_BOTHITS: 4
# Maximum amount of movement packets allowed per second
# Increase this in case of false positives
BLINK_PACKET: 74
-# Maximum amount of suspected "fake-criticalhits" before a player is suspected
+# Maximum amount zero-velocity moments before a player is suspected
# Increase this in case of false positives
VELOCITY_AMT: 5