package de.warking.schematicsystem;
import com.sk89q.worldedit.bukkit.WorldEditPlugin;
import de.warking.schematicsystem.commands.SchematicCommand;
import de.warking.schematicsystem.utils.CommandRemover;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class SchematicSystem extends JavaPlugin {
public static String SCHEM_DIR = "/home/netuser/schematics/";
public static String PREFIX = "§8[§3Schematic§8] §7";
private static SchematicSystem instance;
public void onEnable() {
instance = this;
try {
CommandRemover.removeAll("/schematic", "/schem", "//schematic", "//schem");
} catch (Exception ex) {
ex.printStackTrace();
}
getCommand("schematic").setExecutor(new SchematicCommand());
getCommand("/schematic").setExecutor(new SchematicCommand());
getCommand("schem").setExecutor(new SchematicCommand());
getCommand("/schem").setExecutor(new SchematicCommand());
public void onDisable() {
public static SchematicSystem getInstance() {
return instance;
public static WorldEditPlugin getWorldEditPlugin() {
return (WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit");