Fixes NPE if Prism or CoreProtect are not installed (#87)

This commit is contained in:
Video
2024-03-02 14:38:49 -07:00
committed by GitHub
parent 532e82472b
commit 54015f668a
2 changed files with 3 additions and 3 deletions

View File

@ -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 ->