f
This commit is contained in:
@@ -8,6 +8,9 @@ import com.sk89q.worldguard.protection.flags.registry.FlagRegistry;
|
||||
import dev.trixinity.eventmanager.commands.TrixinityCommand;
|
||||
import dev.trixinity.eventmanager.commands.EventCommand;
|
||||
|
||||
/**
|
||||
* Hlavní třída pluginu pro správu eventů na Minecraft serveru.
|
||||
*/
|
||||
public class TrixinityEventManager extends JavaPlugin {
|
||||
private static volatile TrixinityEventManager instance;
|
||||
|
||||
@@ -27,6 +30,12 @@ public class TrixinityEventManager extends JavaPlugin {
|
||||
getLogger().info("TrixinityEventManager byl vypnut!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Získá instanci pluginu.
|
||||
*
|
||||
* @return Instance pluginu
|
||||
* @throws IllegalStateException pokud plugin není inicializován
|
||||
*/
|
||||
public static TrixinityEventManager getInstance() {
|
||||
if (instance == null) {
|
||||
throw new IllegalStateException("Plugin není inicializován!");
|
||||
|
||||
Reference in New Issue
Block a user