26 lines
480 B
Java
26 lines
480 B
Java
package xyz.karx.spirc;
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
|
|
public class Main extends JavaPlugin {
|
|
private Bot bot;
|
|
|
|
@Override
|
|
public void onEnable() {
|
|
super.onEnable();
|
|
System.out.println("Hello there!");
|
|
|
|
bot = new Bot("spirc", "192.168.1.28", "main", 6667);
|
|
|
|
bot.start();
|
|
}
|
|
|
|
@Override
|
|
public void onDisable() {
|
|
super.onDisable();
|
|
System.out.println("General Kenobi");
|
|
|
|
bot.stop();
|
|
}
|
|
}
|