JaTiTV 2022-11-05 12:41:56 +01:00
parent d9206e63a7
commit 930e48484c
4 changed files with 3 additions and 12 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId>
<artifactId>T2C-OPSecurity</artifactId>
<version>3.0.0-SNAPSHOT-#1</version>
<version>3.0.0</version>
<packaging>jar</packaging>
<name>T2C-OPSecurity</name>
@ -81,7 +81,7 @@
<dependency>
<groupId>net.t2code</groupId>
<artifactId>T2CodeLib</artifactId>
<version>13.0</version>
<version>13.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>

View File

@ -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]";

View File

@ -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:

View File

@ -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);