mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-10 10:28:25 +01:00
Fixed NoClassDefFoundError if WorldEdit failed to initialize
This commit is contained in:
parent
282425f3cf
commit
04d5a3b437
@ -385,6 +385,8 @@ public WorldEditPlugin getWorldEdit() throws CommandException {
|
||||
Plugin worldEdit = getServer().getPluginManager().getPlugin("WorldEdit");
|
||||
if (worldEdit == null) {
|
||||
throw new CommandException("WorldEdit does not appear to be installed.");
|
||||
} else if (!worldEdit.isEnabled()) {
|
||||
throw new CommandException("WorldEdit does not appear to be enabled.");
|
||||
}
|
||||
|
||||
if (worldEdit instanceof WorldEditPlugin) {
|
||||
|
Loading…
Reference in New Issue
Block a user