File tree Expand file tree Collapse file tree
java/com/blalp/consolecommandlog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 11name : ConsoleCommandLog
22main : com.blalp.consolecommandlog.ConsoleCommandLog
3- version : 1.0.1
3+ version : 1.0.2
You can’t perform that action at this time.
0 commit comments