add CommandListen...

Signed-off-by: j502647092 <jtb1@163.com>
master
j502647092 2015-08-07 20:50:31 +08:00
parent 0e22831512
commit 3ffccd7b7b
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,8 @@
package cn.citycraft.CTZLoginServer; package cn.citycraft.CTZLoginServer;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask; import org.bukkit.scheduler.BukkitTask;
@ -31,11 +33,17 @@ public class CTZLoginServer extends JavaPlugin {
pm.disablePlugin(this); pm.disablePlugin(this);
return; return;
} }
onLoadLoginServer(); this.onLoadLoginServer();
pm.registerEvents(new PlayerListen(), this); pm.registerEvents(new PlayerListen(), this);
getLogger().info("CTZLoginServer已加载!"); getLogger().info("CTZLoginServer已加载!");
} }
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
return false;
}
public void onLoadLoginServer() { public void onLoadLoginServer() {
if (loginserver != null) { if (loginserver != null) {
loginserver.cancel(); loginserver.cancel();