Fixed NoClassDefFoundError if WorldEdit failed to initialize
This commit is contained in:
parent
282425f3cf
commit
04d5a3b437
|
@ -385,6 +385,8 @@ public class WorldGuardPlugin extends JavaPlugin {
|
|||
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