From 0e33773d5cb3187a8c52bcb3290734507e4e09b5 Mon Sep 17 00:00:00 2001 From: Pepich Date: Fri, 5 May 2017 09:46:09 +0200 Subject: [PATCH] Will now run /tag check, given that the module is installed --- src/com/redstoner/modules/check/Check.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/redstoner/modules/check/Check.java b/src/com/redstoner/modules/check/Check.java index d6219b4..3659fb9 100644 --- a/src/com/redstoner/modules/check/Check.java +++ b/src/com/redstoner/modules/check/Check.java @@ -22,6 +22,7 @@ import org.json.simple.parser.ParseException; import com.nemez.cmdmgr.Command; import com.nemez.cmdmgr.Command.AsyncType; import com.redstoner.annotations.Version; +import com.redstoner.coremods.moduleLoader.ModuleLoader; import com.redstoner.misc.Utils; import com.redstoner.misc.mysql.JSONManager; 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.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 { MysqlTable table; @@ -70,6 +71,8 @@ public class Check implements Module, Listener if (oPlayer == null) oPlayer = Bukkit.getServer().getOfflinePlayer(player); sendData(sender, oPlayer); + if (ModuleLoader.getModule("Tag") != null) + Bukkit.dispatchCommand(sender, "tag check player"); } public String read(URL url)