1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-28 05:54:16 +02:00

Add mute command, command usages and smaller improvements

This commit is contained in:
Shy
2024-06-08 11:03:56 +02:00
parent 1bb4c2fc47
commit fe4e87d9b4
8 changed files with 174 additions and 5 deletions
@@ -1,7 +1,9 @@
package de.shiewk.smoderation;
import de.shiewk.smoderation.command.MuteCommand;
import de.shiewk.smoderation.listener.PunishmentListener;
import de.shiewk.smoderation.storage.PunishmentContainer;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
import static org.bukkit.Bukkit.getPluginManager;
@@ -19,6 +21,11 @@ public final class SModeration extends JavaPlugin {
@Override
public void onEnable() {
getPluginManager().registerEvents(new PunishmentListener(), this);
final PluginCommand mute = getCommand("mute");
assert mute != null;
mute.setExecutor(new MuteCommand());
mute.setTabCompleter(new MuteCommand());
}
@Override