fix
This commit is contained in:
@@ -9,7 +9,7 @@ import dev.trixinity.eventmanager.commands.TrixinityCommand;
|
||||
import dev.trixinity.eventmanager.commands.EventCommand;
|
||||
|
||||
public class TrixinityEventManager extends JavaPlugin {
|
||||
private static TrixinityEventManager instance;
|
||||
private static volatile TrixinityEventManager instance;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
@@ -28,6 +28,9 @@ public class TrixinityEventManager extends JavaPlugin {
|
||||
}
|
||||
|
||||
public static TrixinityEventManager getInstance() {
|
||||
if (instance == null) {
|
||||
throw new IllegalStateException("Plugin není inicializován!");
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user