mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-12 12:08:35 +00:00
Fixes NPE if Prism or CoreProtect are not installed (#87)
This commit is contained in:
@ -104,7 +104,7 @@ public class TempbanCMD extends PlexCommand
|
||||
});
|
||||
}
|
||||
else */
|
||||
if (plugin.getCoreProtectHook().hasCoreProtect())
|
||||
if (plugin.getCoreProtectHook() != null && plugin.getCoreProtectHook().hasCoreProtect())
|
||||
{
|
||||
PlexLog.debug("Testing coreprotect");
|
||||
Bukkit.getAsyncScheduler().runNow(plugin, scheduledTask ->
|
||||
|
Reference in New Issue
Block a user