mirror of
https://e.coding.net/circlecloud/CTZLoginServer.git
synced 2025-11-24 21:36:03 +00:00
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user