mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Register Moderation commands
This commit is contained in:
1 parent
2fb1eb0eb5
commit
9b6e800c86
1 file changed
+10
+10
@@ -1,6 +1,10 @@
|
||||
package net.draycia.simplechatmoderation;
|
||||
|
||||
import co.aikar.commands.CommandManager;
|
||||
import net.draycia.simplechat.SimpleChat;
|
||||
import net.draycia.simplechatmoderation.commands.ClearChatCommand;
|
||||
import net.draycia.simplechatmoderation.commands.MuteCommand;
|
||||
import net.draycia.simplechatmoderation.commands.ShadowMuteCommand;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
@@ -11,6 +15,12 @@ public final class SimpleChatModeration extends JavaPlugin {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
simpleChat = (SimpleChat)Bukkit.getPluginManager().getPlugin("SimpleChat");
|
||||
|
||||
CommandManager commandManager = simpleChat.getCommandManager().getCommandManager();
|
||||
|
||||
commandManager.registerCommand(new ClearChatCommand(this));
|
||||
commandManager.registerCommand(new MuteCommand(this));
|
||||
commandManager.registerCommand(new ShadowMuteCommand(this));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user