Refactor package to new namespace

This commit is contained in:
h31ix committed 2013-10-13 21:47:19 -04:00
1 parent 089759dbad
commit fd1e5232e0
55 files changed
+244 -236

No files matched your search

+26 -18
View File
@@ -1,18 +1,21 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.h31ix.anticheat</groupId> <groupId>net.gravitydevelopment.anticheat</groupId>
<artifactId>AntiCheat</artifactId> <artifactId>AntiCheat</artifactId>
<version>1.5.9-DEV</version> <version>2.0-DEV</version>
<name>AntiCheat</name> <name>AntiCheat</name>
<url>http://gravitydevelopment.net</url> <url>http://gravitydevelopment.net</url>
<properties>
<project.build.version>${project.version}</project.build.version>
</properties>
<repositories> <repositories>
<repository> <repository>
<id>bukkit-repo</id> <id>bukkit-repo</id>
<url>http://repo.bukkit.org/content/repositories/public/</url> <url>http://repo.bukkit.org/content/repositories/public/</url>
</repository> </repository>
<repository> <repository>
<id>comphenix-rep</id> <id>comphenix-repo</id>
<name>Comphenix Repository</name> <name>Comphenix Repository</name>
<url>http://repo.comphenix.net/content/groups/public</url> <url>http://repo.comphenix.net/content/groups/public</url>
</repository> </repository>
@@ -31,21 +34,6 @@
</plugin> </plugin>
</plugins> </plugins>
<finalName>AntiCheat</finalName> <finalName>AntiCheat</finalName>
<resources>
<resource>
<targetPath>.</targetPath>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>plugin.yml</include>
<include>config.yml</include>
<include>lang.yml</include>
<include>magic.yml</include>
<include>events.yml</include>
<include>enterprise.yml</include>
</includes>
</resource>
</resources>
<extensions> <extensions>
<extension> <extension>
<groupId>org.apache.maven.wagon</groupId> <groupId>org.apache.maven.wagon</groupId>
@@ -53,7 +41,26 @@
<version>2.2</version> <version>2.2</version>
</extension> </extension>
</extensions> </extensions>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build> </build>
<profiles>
<profile>
<id>jenkins</id>
<activation>
<property>
<name>env.BUILD_NUMBER</name>
</property>
</activation>
<properties>
<project.build.version>{project.version}-b${env.BUILD_NUMBER}</project.build.version>
</properties>
</profile>
</profiles>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
@@ -81,4 +88,5 @@
<url>file:///var/lib/jenkins/repo</url> <url>file:///var/lib/jenkins/repo</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
</project> </project>
@@ -16,18 +16,18 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat; package net.gravitydevelopment.anticheat;
import com.comphenix.protocol.ProtocolLibrary; import com.comphenix.protocol.ProtocolLibrary;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.event.*; import net.gravitydevelopment.anticheat.event.*;
import net.h31ix.anticheat.manage.AnticheatManager; import net.gravitydevelopment.anticheat.manage.AnticheatManager;
import net.h31ix.anticheat.manage.PacketManager; import net.gravitydevelopment.anticheat.manage.PacketManager;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import net.h31ix.anticheat.update.Updater; import net.gravitydevelopment.anticheat.update.Updater;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import net.h31ix.anticheat.xray.XRayListener; import net.gravitydevelopment.anticheat.xray.XRayListener;
import net.h31ix.anticheat.xray.XRayTracker; import net.gravitydevelopment.anticheat.xray.XRayTracker;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -16,14 +16,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat; package net.gravitydevelopment.anticheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import net.h31ix.anticheat.manage.UserManager; import net.gravitydevelopment.anticheat.manage.UserManager;
import net.h31ix.anticheat.util.*; import net.gravitydevelopment.anticheat.util.*;
import net.h31ix.anticheat.xray.XRayTracker; import net.gravitydevelopment.anticheat.xray.XRayTracker;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Server; import org.bukkit.Server;
@@ -16,14 +16,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.api; package net.gravitydevelopment.anticheat.api;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.AnticheatManager; import net.gravitydevelopment.anticheat.manage.AnticheatManager;
import net.h31ix.anticheat.manage.CheckManager; import net.gravitydevelopment.anticheat.manage.CheckManager;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.UserManager; import net.gravitydevelopment.anticheat.manage.UserManager;
import net.h31ix.anticheat.xray.XRayTracker; import net.gravitydevelopment.anticheat.xray.XRayTracker;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
/** /**
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.api; package net.gravitydevelopment.anticheat.api;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
@@ -40,18 +40,18 @@ public class CheckFailEvent extends Event {
} }
/** /**
* Get the {@link net.h31ix.anticheat.manage.User} who failed the check * Get the {@link net.gravitydevelopment.anticheat.manage.User} who failed the check
* *
* @return a {@link net.h31ix.anticheat.manage.User} * @return a {@link net.gravitydevelopment.anticheat.manage.User}
*/ */
public User getUser() { public User getUser() {
return user; return user;
} }
/** /**
* Get the {@link net.h31ix.anticheat.manage.CheckType} failed * Get the {@link net.gravitydevelopment.anticheat.manage.CheckType} failed
* *
* @return a {@link net.h31ix.anticheat.manage.CheckType} * @return a {@link net.gravitydevelopment.anticheat.manage.CheckType}
*/ */
public CheckType getCheck() { public CheckType getCheck() {
return type; return type;
@@ -16,22 +16,22 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config; package net.gravitydevelopment.anticheat.config;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.files.Config; import net.gravitydevelopment.anticheat.config.files.Config;
import net.h31ix.anticheat.config.files.Enterprise; import net.gravitydevelopment.anticheat.config.files.Enterprise;
import net.h31ix.anticheat.config.files.Lang; import net.gravitydevelopment.anticheat.config.files.Lang;
import net.h31ix.anticheat.config.files.Magic; import net.gravitydevelopment.anticheat.config.files.Magic;
import net.h31ix.anticheat.config.holders.mysql.MySQLEventsHolder; import net.gravitydevelopment.anticheat.config.holders.mysql.MySQLEventsHolder;
import net.h31ix.anticheat.config.holders.mysql.MySQLLevelsHolder; import net.gravitydevelopment.anticheat.config.holders.mysql.MySQLLevelsHolder;
import net.h31ix.anticheat.config.holders.mysql.MySQLRulesHolder; import net.gravitydevelopment.anticheat.config.holders.mysql.MySQLRulesHolder;
import net.h31ix.anticheat.config.holders.yaml.YamlEventsHolder; import net.gravitydevelopment.anticheat.config.holders.yaml.YamlEventsHolder;
import net.h31ix.anticheat.config.holders.yaml.YamlLevelsHolder; import net.gravitydevelopment.anticheat.config.holders.yaml.YamlLevelsHolder;
import net.h31ix.anticheat.config.holders.yaml.YamlRulesHolder; import net.gravitydevelopment.anticheat.config.holders.yaml.YamlRulesHolder;
import net.h31ix.anticheat.config.providers.Events; import net.gravitydevelopment.anticheat.config.providers.Events;
import net.h31ix.anticheat.config.providers.Levels; import net.gravitydevelopment.anticheat.config.providers.Levels;
import net.h31ix.anticheat.config.providers.Rules; import net.gravitydevelopment.anticheat.config.providers.Rules;
import java.util.ArrayList; import java.util.ArrayList;
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config; package net.gravitydevelopment.anticheat.config;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.yaml.CommentedConfiguration; import net.gravitydevelopment.anticheat.config.yaml.CommentedConfiguration;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config; package net.gravitydevelopment.anticheat.config;
import net.h31ix.anticheat.util.enterprise.Database; import net.gravitydevelopment.anticheat.util.enterprise.Database;
import java.sql.Connection; import java.sql.Connection;
@@ -16,11 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.files; package net.gravitydevelopment.anticheat.config.files;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
import java.util.List; import java.util.List;
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.files; package net.gravitydevelopment.anticheat.config.files;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
import net.h31ix.anticheat.util.enterprise.Database; import net.gravitydevelopment.anticheat.util.enterprise.Database;
public class Enterprise extends ConfigurationFile { public class Enterprise extends ConfigurationFile {
@@ -16,11 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.files; package net.gravitydevelopment.anticheat.config.files;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
import java.util.List; import java.util.List;
@@ -16,11 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.files; package net.gravitydevelopment.anticheat.config.files;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
/** /**
* Magic number class. Modifications to values in magic.yml will be accepted here. * Magic number class. Modifications to values in magic.yml will be accepted here.
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.holders.mysql; package net.gravitydevelopment.anticheat.config.holders.mysql;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationTable; import net.gravitydevelopment.anticheat.config.ConfigurationTable;
import net.h31ix.anticheat.config.providers.Events; import net.gravitydevelopment.anticheat.config.providers.Events;
import net.h31ix.anticheat.util.Level; import net.gravitydevelopment.anticheat.util.Level;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.holders.mysql; package net.gravitydevelopment.anticheat.config.holders.mysql;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationTable; import net.gravitydevelopment.anticheat.config.ConfigurationTable;
import net.h31ix.anticheat.config.providers.Levels; import net.gravitydevelopment.anticheat.config.providers.Levels;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.holders.mysql; package net.gravitydevelopment.anticheat.config.holders.mysql;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationTable; import net.gravitydevelopment.anticheat.config.ConfigurationTable;
import net.h31ix.anticheat.config.providers.Rules; import net.gravitydevelopment.anticheat.config.providers.Rules;
import net.h31ix.anticheat.util.rule.Rule; import net.gravitydevelopment.anticheat.util.rule.Rule;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.holders.yaml; package net.gravitydevelopment.anticheat.config.holders.yaml;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
import net.h31ix.anticheat.config.providers.Events; import net.gravitydevelopment.anticheat.config.providers.Events;
import net.h31ix.anticheat.util.Level; import net.gravitydevelopment.anticheat.util.Level;
import java.util.*; import java.util.*;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.holders.yaml; package net.gravitydevelopment.anticheat.config.holders.yaml;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
import net.h31ix.anticheat.config.providers.Levels; import net.gravitydevelopment.anticheat.config.providers.Levels;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import java.util.List; import java.util.List;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.holders.yaml; package net.gravitydevelopment.anticheat.config.holders.yaml;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.config.ConfigurationFile; import net.gravitydevelopment.anticheat.config.ConfigurationFile;
import net.h31ix.anticheat.config.providers.Rules; import net.gravitydevelopment.anticheat.config.providers.Rules;
import net.h31ix.anticheat.util.rule.Rule; import net.gravitydevelopment.anticheat.util.rule.Rule;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.providers; package net.gravitydevelopment.anticheat.config.providers;
import net.h31ix.anticheat.util.Level; import net.gravitydevelopment.anticheat.util.Level;
import java.util.List; import java.util.List;
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.providers; package net.gravitydevelopment.anticheat.config.providers;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import java.util.List; import java.util.List;
@@ -17,9 +17,9 @@
*/ */
package net.h31ix.anticheat.config.providers; package net.gravitydevelopment.anticheat.config.providers;
import net.h31ix.anticheat.util.rule.Rule; import net.gravitydevelopment.anticheat.util.rule.Rule;
import java.util.List; import java.util.List;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.config.yaml; package net.gravitydevelopment.anticheat.config.yaml;
import org.apache.commons.lang.Validate; import org.apache.commons.lang.Validate;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.event; package net.gravitydevelopment.anticheat.event;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.util.CheckResult; import net.gravitydevelopment.anticheat.util.CheckResult;
import net.h31ix.anticheat.util.Distance; import net.gravitydevelopment.anticheat.util.Distance;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.event; package net.gravitydevelopment.anticheat.event;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.util.CheckResult; import net.gravitydevelopment.anticheat.util.CheckResult;
import net.h31ix.anticheat.util.Distance; import net.gravitydevelopment.anticheat.util.Distance;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import org.bukkit.enchantments.Enchantment; import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.Creeper; import org.bukkit.entity.Creeper;
@@ -16,11 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.event; package net.gravitydevelopment.anticheat.event;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.manage.*; import net.gravitydevelopment.anticheat.manage.*;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.event; package net.gravitydevelopment.anticheat.event;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import net.h31ix.anticheat.util.CheckResult; import net.gravitydevelopment.anticheat.util.CheckResult;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.event.inventory.InventoryClickEvent;
@@ -16,15 +16,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.event; package net.gravitydevelopment.anticheat.event;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import net.h31ix.anticheat.util.CheckResult; import net.gravitydevelopment.anticheat.util.CheckResult;
import net.h31ix.anticheat.util.Distance; import net.gravitydevelopment.anticheat.util.Distance;
import net.h31ix.anticheat.util.Permission; import net.gravitydevelopment.anticheat.util.Permission;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.event; package net.gravitydevelopment.anticheat.event;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.vehicle.VehicleDestroyEvent; import org.bukkit.event.vehicle.VehicleDestroyEvent;
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.util.FileFormatter; import net.gravitydevelopment.anticheat.util.FileFormatter;
import net.h31ix.anticheat.xray.XRayTracker; import net.gravitydevelopment.anticheat.xray.XRayTracker;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.plugin.RegisteredListener; import org.bukkit.plugin.RegisteredListener;
@@ -58,7 +58,7 @@ public class AnticheatManager {
public AnticheatManager(AntiCheat instance, Logger logger) { public AnticheatManager(AntiCheat instance, Logger logger) {
plugin = instance; plugin = instance;
// now load all the others!!!!! // now load all the others!!!!!
fileLogger = Logger.getLogger("net.h31ix.anticheat.AntiCheat"); fileLogger = Logger.getLogger("net.gravitydevelopment.anticheat.AntiCheat");
configuration = new Configuration(plugin); configuration = new Configuration(plugin);
xrayTracker = new XRayTracker(); xrayTracker = new XRayTracker();
userManager = new UserManager(configuration); userManager = new UserManager(configuration);
@@ -16,15 +16,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.files.Lang; import net.gravitydevelopment.anticheat.config.files.Lang;
import net.h31ix.anticheat.config.files.Magic; import net.gravitydevelopment.anticheat.config.files.Magic;
import net.h31ix.anticheat.util.CheckResult; import net.gravitydevelopment.anticheat.util.CheckResult;
import net.h31ix.anticheat.util.CheckResult.Result; import net.gravitydevelopment.anticheat.util.CheckResult.Result;
import net.h31ix.anticheat.util.Distance; import net.gravitydevelopment.anticheat.util.Distance;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import net.h31ix.anticheat.api.CheckFailEvent; import net.gravitydevelopment.anticheat.api.CheckFailEvent;
import net.h31ix.anticheat.util.Permission; import net.gravitydevelopment.anticheat.util.Permission;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -1,9 +1,9 @@
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import com.comphenix.protocol.Packets; import com.comphenix.protocol.Packets;
import com.comphenix.protocol.ProtocolManager; import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.*; import com.comphenix.protocol.events.*;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
public class PacketManager { public class PacketManager {
@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.util.Level; import net.gravitydevelopment.anticheat.util.Level;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import net.h31ix.anticheat.util.rule.Rule; import net.gravitydevelopment.anticheat.util.rule.Rule;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.manage; package net.gravitydevelopment.anticheat.manage;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.util.Level; import net.gravitydevelopment.anticheat.util.Level;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
@@ -4,7 +4,7 @@
* This class provides the means to safely and easily update a plugin, or check to see if it is updated using dev.bukkit.org * This class provides the means to safely and easily update a plugin, or check to see if it is updated using dev.bukkit.org
*/ */
package net.h31ix.anticheat.update; package net.gravitydevelopment.anticheat.update;
import java.io.*; import java.io.*;
import java.net.MalformedURLException; import java.net.MalformedURLException;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.Material; import org.bukkit.Material;
@@ -1,6 +1,6 @@
// Not production code yet. Still experimental and needs a lot of work. // Not production code yet. Still experimental and needs a lot of work.
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Material; import org.bukkit.Material;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
public class CheckResult { public class CheckResult {
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.Location; import org.bukkit.Location;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import java.util.ArrayList; import java.util.ArrayList;
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.files.Magic; import net.gravitydevelopment.anticheat.config.files.Magic;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.Location; import org.bukkit.Location;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.Material; import org.bukkit.Material;
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util.enterprise; package net.gravitydevelopment.anticheat.util.enterprise;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.scheduler.BukkitTask; import org.bukkit.scheduler.BukkitTask;
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util.rule; package net.gravitydevelopment.anticheat.util.rule;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import javax.script.ScriptEngine; import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager; import javax.script.ScriptEngineManager;
@@ -42,7 +42,7 @@ import java.util.SortedMap;
* Check_SPIDER > 0 ? Player.KICK : null<br /> * Check_SPIDER > 0 ? Player.KICK : null<br />
* <i>The above statement would read 'If the spider check has been failed over zero times, kick the player. Otherwise, do nothing.'</i> * <i>The above statement would read 'If the spider check has been failed over zero times, kick the player. Otherwise, do nothing.'</i>
* <p/> * <p/>
* To see syntax for variables and functions that you may use, see {@link net.h31ix.anticheat.util.rule.Rule} * To see syntax for variables and functions that you may use, see {@link net.gravitydevelopment.anticheat.util.rule.Rule}
*/ */
public class ConditionalRule extends Rule { public class ConditionalRule extends Rule {
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util.rule; package net.gravitydevelopment.anticheat.util.rule;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import net.h31ix.anticheat.manage.User; import net.gravitydevelopment.anticheat.manage.User;
import net.h31ix.anticheat.util.Utilities; import net.gravitydevelopment.anticheat.util.Utilities;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.util.ArrayList; import java.util.ArrayList;
@@ -39,7 +39,7 @@ import java.util.TreeMap;
* <br /><br /> * <br /><br />
* <p/> * <p/>
* <b>Types of variables:</b><br /> * <b>Types of variables:</b><br />
* - Check: Contains all valid checks as listed in {@link net.h31ix.anticheat.manage.CheckType}, and will return the number of times this user has failed the given check<br /> * - Check: Contains all valid checks as listed in {@link net.gravitydevelopment.anticheat.manage.CheckType}, and will return the number of times this user has failed the given check<br />
* - Player: Contains LEVEL, the player's current level and CHECK, the check that was just failed * - Player: Contains LEVEL, the player's current level and CHECK, the check that was just failed
* <br /><br /> * <br /><br />
* <p/> * <p/>
@@ -56,7 +56,7 @@ import java.util.TreeMap;
* <p/> * <p/>
* The Rule class itself is not an functional rule setup, * The Rule class itself is not an functional rule setup,
* it is inherited and made functional by different implementations of the rule parser.<br /> * it is inherited and made functional by different implementations of the rule parser.<br />
* The only current Rule implementation is the {@link net.h31ix.anticheat.util.rule.ConditionalRule} * The only current Rule implementation is the {@link net.gravitydevelopment.anticheat.util.rule.ConditionalRule}
*/ */
public class Rule { public class Rule {
@@ -66,7 +66,7 @@ public class Rule {
private Type type; private Type type;
public enum Type { public enum Type {
CONDITIONAL(".*[?]*.*:.*", "net.h31ix.anticheat.util.rule.ConditionalRule"); CONDITIONAL(".*[?]*.*:.*", "net.gravitydevelopment.anticheat.util.rule.ConditionalRule");
private String regex; private String regex;
private String c; private String c;
@@ -125,7 +125,7 @@ public class Rule {
/** /**
* Get the type of rule this is * Get the type of rule this is
* *
* @return a {@link net.h31ix.anticheat.util.rule.Rule.Type} * @return a {@link net.gravitydevelopment.anticheat.util.rule.Rule.Type}
*/ */
public Type getType() { public Type getType() {
return type; return type;
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.xray; package net.gravitydevelopment.anticheat.xray;
import net.h31ix.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.AntiCheat;
import net.h31ix.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.Configuration;
import net.h31ix.anticheat.manage.CheckManager; import net.gravitydevelopment.anticheat.manage.CheckManager;
import net.h31ix.anticheat.manage.CheckType; import net.gravitydevelopment.anticheat.manage.CheckType;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.xray; package net.gravitydevelopment.anticheat.xray;
import java.util.Map; import java.util.Map;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.xray; package net.gravitydevelopment.anticheat.xray;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
+2 -2
View File
@@ -1,12 +1,12 @@
author: Gravity author: Gravity
database: false database: false
description: Prevention of hacks and other malicious tinkering on a Minecraft server. description: Prevention of hacks and other malicious tinkering on a Minecraft server.
main: net.h31ix.anticheat.AntiCheat main: net.gravitydevelopment.anticheat.AntiCheat
name: AntiCheat name: AntiCheat
softdepend: [ProtocolLib] softdepend: [ProtocolLib]
startup: postworld startup: postworld
url: http://gravitydevelopment.net url: http://gravitydevelopment.net
version: ${project.version}-b${BUILD_NUMBER} version: ${project.build.version}
commands: commands:
anticheat: anticheat:
description: Control and view info about AntiCheat description: Control and view info about AntiCheat
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package net.h31ix.anticheat.util; package net.gravitydevelopment.anticheat.util;
import org.bukkit.Material; import org.bukkit.Material;