Will now run /tag check, given that the module is installed
This commit is contained in:
@@ -22,6 +22,7 @@ import org.json.simple.parser.ParseException;
|
|||||||
import com.nemez.cmdmgr.Command;
|
import com.nemez.cmdmgr.Command;
|
||||||
import com.nemez.cmdmgr.Command.AsyncType;
|
import com.nemez.cmdmgr.Command.AsyncType;
|
||||||
import com.redstoner.annotations.Version;
|
import com.redstoner.annotations.Version;
|
||||||
|
import com.redstoner.coremods.moduleLoader.ModuleLoader;
|
||||||
import com.redstoner.misc.Utils;
|
import com.redstoner.misc.Utils;
|
||||||
import com.redstoner.misc.mysql.JSONManager;
|
import com.redstoner.misc.mysql.JSONManager;
|
||||||
import com.redstoner.misc.mysql.MysqlHandler;
|
import com.redstoner.misc.mysql.MysqlHandler;
|
||||||
@@ -31,7 +32,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase;
|
|||||||
import com.redstoner.misc.mysql.elements.MysqlTable;
|
import com.redstoner.misc.mysql.elements.MysqlTable;
|
||||||
import com.redstoner.modules.Module;
|
import com.redstoner.modules.Module;
|
||||||
|
|
||||||
@Version(major = 2, minor = 0, revision = 1, compatible = 2)
|
@Version(major = 2, minor = 0, revision = 2, compatible = 2)
|
||||||
public class Check implements Module, Listener
|
public class Check implements Module, Listener
|
||||||
{
|
{
|
||||||
MysqlTable table;
|
MysqlTable table;
|
||||||
@@ -70,6 +71,8 @@ public class Check implements Module, Listener
|
|||||||
if (oPlayer == null)
|
if (oPlayer == null)
|
||||||
oPlayer = Bukkit.getServer().getOfflinePlayer(player);
|
oPlayer = Bukkit.getServer().getOfflinePlayer(player);
|
||||||
sendData(sender, oPlayer);
|
sendData(sender, oPlayer);
|
||||||
|
if (ModuleLoader.getModule("Tag") != null)
|
||||||
|
Bukkit.dispatchCommand(sender, "tag check player");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String read(URL url)
|
public String read(URL url)
|
||||||
|
|||||||
Reference in New Issue
Block a user