Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
blalp committed Jan 28, 2021
1 parent 3295e98 commit 7cb0c09
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.blalp</groupId>
<artifactId>consolecommandlog</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>

<name>ConsoleCommandLog</name>
Expand Down
15 changes: 12 additions & 3 deletions src/main/java/com/blalp/consolecommandlog/ConsoleCommandLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,22 @@ private boolean isMalicious(String command){
case "\"*\"":
case "'*'":
return true;
}
if (command.split(" ")[4].contains("luckperms")){
return true;
case "set":
if(command.split(" ").length>=6) {
switch(command.split(" ")[5]){
case "*":
case "\"*\"":
case "'*'":
return true;
}
}
}
}
}
}
break;
case "op":
case "deop":
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: ConsoleCommandLog
main: com.blalp.consolecommandlog.ConsoleCommandLog
version: 1.0.1
version: 1.0.2

0 comments on commit 7cb0c09

Please sign in to comment.