23 lines
712 B
Java
23 lines
712 B
Java
|
package eu.m724.tweaks;
|
||
|
|
||
|
import eu.m724.tweaks.chat.ChatCommands;
|
||
|
import eu.m724.tweaks.chat.ChatManager;
|
||
|
import eu.m724.tweaks.door.DoorListener;
|
||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||
|
|
||
|
import java.util.Objects;
|
||
|
|
||
|
public class TweaksPlugin extends JavaPlugin {
|
||
|
@Override
|
||
|
public void onEnable() {
|
||
|
ChatManager chatManager = new ChatManager(this);
|
||
|
chatManager.init();
|
||
|
|
||
|
ChatCommands chatCommands = new ChatCommands(chatManager);
|
||
|
Objects.requireNonNull(getCommand("chat")).setExecutor(chatCommands);
|
||
|
Objects.requireNonNull(getCommand("chatmanage")).setExecutor(chatCommands);
|
||
|
|
||
|
getServer().getPluginManager().registerEvents(new DoorListener(), this);
|
||
|
}
|
||
|
}
|