mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 09:07:37 +00:00
Remind me to read the documentation next time... coreprotect is supposed to be called asynchronously lol
This commit is contained in:
parent
068dd28fd4
commit
129ef7b6bf
@ -122,7 +122,7 @@ public class BanCMD extends PlexCommand
|
|||||||
else if (plugin.getCoreProtectHook() != null && plugin.getCoreProtectHook().hasCoreProtect())
|
else if (plugin.getCoreProtectHook() != null && plugin.getCoreProtectHook().hasCoreProtect())
|
||||||
{
|
{
|
||||||
PlexLog.debug("Testing coreprotect");
|
PlexLog.debug("Testing coreprotect");
|
||||||
Bukkit.getGlobalRegionScheduler().run(plugin, scheduledTask ->
|
Bukkit.getAsyncScheduler().runNow(plugin, scheduledTask ->
|
||||||
{
|
{
|
||||||
plugin.getCoreProtectHook().coreProtectAPI().performRollback(86400, Collections.singletonList(plexPlayer.getName()), null, null, null, null, 0, null);
|
plugin.getCoreProtectHook().coreProtectAPI().performRollback(86400, Collections.singletonList(plexPlayer.getName()), null, null, null, null, 0, null);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user