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