1. Starting off - projectwoosh/AntiCheat GitHub Wiki
Explanation
An anticheat is a plugin that prevents unfair advantage. There are many ways to do this, such as an AI, but I will be doing my way. If I made any mistakes, you can fill an issue.
Setting up
First, you need to setup basic things for your project:
- Creating Java Project
- Importing CraftBukkit using external JAR or Maven, I am using CraftBukkit 1.8.9
- Setting up "plugin.yml"
After that, you need to create the class that will register the plugin, listeners & commands.
package tk.thewoosh.wikianticheat;
import org.bukkit.plugin.java.JavaPlugin;
public class AntiCheat extends JavaPlugin {
@Override
public void onEnable() {
getLogger().info("§5TheWoosh AntiCheat");
getLogger().info("§5Author: §dTheWoosh");
getLogger().info("§5Version: §d" + getDescription().getVersion());Bukkit.getPluginManager().registerEvents(new EventListener(), this);
}}