3.0.0
https://www.spigotmc.org/resources/t2c-opsecurity-permission-security-1-8-x-1-19-x.90739/update?update=478193
This commit is contained in:
@@ -8,7 +8,7 @@ public class Util {
|
||||
private static String infoText = "";
|
||||
|
||||
@Getter
|
||||
private static String requiredT2CodeLibVersion = "13.1";
|
||||
private static String requiredT2CodeLibVersion = "13.2";
|
||||
|
||||
@Getter
|
||||
private static String prefix = "§8[§4T2C§8-§2OP§4Security§8]";
|
||||
|
@@ -42,11 +42,6 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
|
||||
case "version":
|
||||
case "ver":
|
||||
Commands.info(sender);
|
||||
break;
|
||||
case "test":
|
||||
T2Csend.debugmsg(Main.getPlugin(), OPWhitelist.enable.valueBoolean.toString());
|
||||
T2Csend.debugmsg(Main.getPlugin(), Config.onlyOPcanUseThePlugin.valueBoolean.toString());
|
||||
|
||||
break;
|
||||
case "help":
|
||||
default:
|
||||
|
@@ -28,8 +28,6 @@ public class Events implements Listener {
|
||||
public void CommandSendEvent(PlayerCommandPreprocessEvent event) {
|
||||
if (!Config.checkOnCommand.valueBoolean) return;
|
||||
Player player = event.getPlayer();
|
||||
T2Csend.debugmsg(Main.getPlugin(), "1 "+ OpCheck.onCheck(player,false));
|
||||
T2Csend.debugmsg(Main.getPlugin(), "1 "+ PermissionCheck.onCheck(player,false));
|
||||
if (OpCheck.onCheck(player, false) || PermissionCheck.onCheck(player, false)) {
|
||||
if (event.isCancelled()) return;
|
||||
event.setCancelled(true);
|
||||
@@ -40,8 +38,6 @@ public class Events implements Listener {
|
||||
public void PlayerChatEvent(PlayerChatEvent event) {
|
||||
if (!Config.checkOnChat.valueBoolean) return;
|
||||
Player player = event.getPlayer();
|
||||
T2Csend.debugmsg(Main.getPlugin(), "2 "+OpCheck.onCheck(player,false));
|
||||
T2Csend.debugmsg(Main.getPlugin(), "2 "+PermissionCheck.onCheck(player,false));
|
||||
if (OpCheck.onCheck(player, false) || PermissionCheck.onCheck(player, false)) {
|
||||
if (event.isCancelled()) return;
|
||||
event.setCancelled(true);
|
||||
|
Reference in New Issue
Block a user