tweaks724/src/main/java/eu/m724/tweaks/TweaksPlugin.java

23 lines
712 B
Java
Raw Normal View History

2024-11-16 12:37:12 +01:00
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);
}
}