Skip to content

Commit 7cb0c09

Browse files
committed
update
1 parent 3295e98 commit 7cb0c09

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>com.blalp</groupId>
55
<artifactId>consolecommandlog</artifactId>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<packaging>jar</packaging>
88

99
<name>ConsoleCommandLog</name>

src/main/java/com/blalp/consolecommandlog/ConsoleCommandLog.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,22 @@ private boolean isMalicious(String command){
4343
case "\"*\"":
4444
case "'*'":
4545
return true;
46-
}
47-
if (command.split(" ")[4].contains("luckperms")){
48-
return true;
46+
case "set":
47+
if(command.split(" ").length>=6) {
48+
switch(command.split(" ")[5]){
49+
case "*":
50+
case "\"*\"":
51+
case "'*'":
52+
return true;
53+
}
54+
}
4955
}
5056
}
5157
}
5258
}
59+
break;
60+
case "op":
61+
case "deop":
5362
return true;
5463
}
5564
}

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name: ConsoleCommandLog
22
main: com.blalp.consolecommandlog.ConsoleCommandLog
3-
version: 1.0.1
3+
version: 1.0.2

0 commit comments

Comments
 (0)