začátek
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package dev.trixinity.eventmanager;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import com.sk89q.worldguard.WorldGuard;
|
||||
import com.sk89q.worldguard.protection.flags.Flag;
|
||||
import com.sk89q.worldguard.protection.flags.StateFlag;
|
||||
import com.sk89q.worldguard.protection.flags.registry.FlagRegistry;
|
||||
|
||||
public class TrixinityEventManager extends JavaPlugin {
|
||||
|
||||
private static TrixinityEventManager instance;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
instance = this;
|
||||
|
||||
// Registrace příkazů
|
||||
getCommand("trixinity").setExecutor(new TrixinityCommand());
|
||||
getCommand("event").setExecutor(new EventCommand());
|
||||
|
||||
getLogger().info("TrixinityEventManager byl úspěšně spuštěn!");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
getLogger().info("TrixinityEventManager byl vypnut!");
|
||||
}
|
||||
|
||||
public static TrixinityEventManager getInstance() {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user