mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
final i think update yAY
This commit is contained in:
parent
78f3127dc9
commit
15d9eab91e
@ -164,11 +164,6 @@ public class Plex extends JavaPlugin
|
||||
PlexLog.log("Punishment System initialized");
|
||||
|
||||
commandBlockerManager = new CommandBlockerManager();
|
||||
// todo: make this a service lmao --v
|
||||
getServer().getScheduler().scheduleSyncDelayedTask(this, () -> {
|
||||
commandBlockerManager.syncCommands();
|
||||
PlexLog.log("Command Blocker commands loaded");
|
||||
});
|
||||
PlexLog.log("Command Blocker initialized");
|
||||
|
||||
generateWorlds();
|
||||
|
@ -15,8 +15,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
public class CommandListener extends PlexListener
|
||||
{
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
|
25
src/main/java/dev/plex/services/impl/CmdBlockerService.java
Normal file
25
src/main/java/dev/plex/services/impl/CmdBlockerService.java
Normal file
@ -0,0 +1,25 @@
|
||||
package dev.plex.services.impl;
|
||||
|
||||
import dev.plex.services.AbstractService;
|
||||
import dev.plex.util.PlexLog;
|
||||
|
||||
public class CmdBlockerService extends AbstractService
|
||||
{
|
||||
public CmdBlockerService()
|
||||
{
|
||||
super(false, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
plugin.getCommandBlockerManager().syncCommands();
|
||||
PlexLog.log("Command Blocker commands loaded");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int repeatInSeconds()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user