Permalink
Browse files

RemoteAdminの名前変更に伴う内部変更

  • Loading branch information...
hide92795
hide92795 committed Oct 10, 2013
1 parent 1f187d3 commit 737e59c3e65614ac188970cdac23788b7301fdb3
Binary file not shown.
@@ -9,7 +9,7 @@
import hide92795.bukkit.plugin.mcbansdetector.listener.PlayerBlockBreakListener;
import hide92795.bukkit.plugin.mcbansdetector.listener.PlayerLoginListener;
import hide92795.bukkit.plugin.mcbansdetector.listener.PlayerLogoutListener;
import hide92795.bukkit.plugin.mcbansdetector.remoteadmin.MCBasnDetectorRemoteAdminRegister;
import hide92795.bukkit.plugin.mcbansdetector.remotecontroller.MCBasnDetectorRemoteControllerRegister;
import hide92795.bukkit.plugin.mcbansdetector.sidebar.SideBarManager;
import ipx.IP;
import ipx.IPMap;
@@ -66,7 +66,7 @@ public void onEnable() {
pm.registerEvents(new PlayerBlockBreakListener(this), this);
pm.registerEvents(new PlayerLogoutListener(this), this);
checkRemoteAdmin();
checkRemoteController();
try {
// Log
@@ -100,10 +100,10 @@ public void onEnable() {
logger.info("MCBansDetector enabled!");
}
private void checkRemoteAdmin() {
if (getServer().getPluginManager().isPluginEnabled("RemoteAdmin")) {
MCBasnDetectorRemoteAdminRegister.register(this);
getLogger().info("Hook into RemoteAdmin");
private void checkRemoteController() {
if (getServer().getPluginManager().isPluginEnabled("RemoteController")) {
MCBasnDetectorRemoteControllerRegister.register(this);
getLogger().info("Hook into RemoteController");
}
}

This file was deleted.

Oops, something went wrong.
@@ -1,8 +1,8 @@
package hide92795.bukkit.plugin.mcbansdetector.remoteadmin;
package hide92795.bukkit.plugin.mcbansdetector.remotecontroller;
import hide92795.bukkit.plugin.mcbansdetector.MCBansDetector;
import hide92795.bukkit.plugin.remoteadmin.api.AdditionalInfo;
import hide92795.bukkit.plugin.remoteadmin.api.AdditionalInfoCreator;
import hide92795.bukkit.plugin.remotecontroller.api.AdditionalInfo;
import hide92795.bukkit.plugin.remotecontroller.api.AdditionalInfoCreator;
public class MCBansDetectorInfoCreator implements AdditionalInfoCreator {
private MCBansDetector plugin;
@@ -0,0 +1,11 @@
package hide92795.bukkit.plugin.mcbansdetector.remotecontroller;
import hide92795.bukkit.plugin.mcbansdetector.MCBansDetector;
import hide92795.bukkit.plugin.remotecontroller.RemoteController;
public class MCBasnDetectorRemoteControllerRegister {
public static void register(MCBansDetector plugin) {
((RemoteController) plugin.getServer().getPluginManager().getPlugin("RemoteController")).getAPI().registerCreator(
new MCBansDetectorInfoCreator(plugin));
}
}
@@ -1,10 +1,10 @@
name: MCBansDetector
main: hide92795.bukkit.plugin.mcbansdetector.MCBansDetector
version: 1.6.2_3
version: 1.6.2_4
description: Check baned player
author: hide92795
depend: [hide92795CoreLib]
softdepend: [RemoteAdmin]
softdepend: [RemoteController]
commands:
mcbansdetector:

0 comments on commit 737e59c

Please sign in to comment.