mirror of
https://e.coding.net/circlecloud/CTZLoginServer.git
synced 2024-12-11 05:18:48 +00:00
add CommandListen...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
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
Block a user