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

31 lines
1.1 KiB
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;
2024-11-17 09:48:38 +01:00
import eu.m724.tweaks.ping.F3NameListener;
import eu.m724.tweaks.ping.PingChecker;
import eu.m724.tweaks.ping.PingCommands;
2024-11-16 12:37:12 +01:00
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);
2024-11-17 09:48:38 +01:00
new F3NameListener(this).init();
new PingChecker(this).init();
Objects.requireNonNull(getCommand("ping")).setExecutor(new PingCommands());
2024-11-18 16:52:57 +01:00
Objects.requireNonNull(getCommand("dkick")).setExecutor(new PingCommands());
2024-11-16 12:37:12 +01:00
}
}