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 1+ libs /
2+ target /
3+ .project
4+ .settings
5+ .classpath
6+
7+ .vscode
Original file line number Diff line number Diff line change 33
44<groupId >com.blalp</groupId >
55<artifactId >consolecommandlog</artifactId >
6- <version >1.0.0 </version >
6+ <version >1.0.1 </version >
77<packaging >jar</packaging >
88
99<name >ConsoleCommandLog</name >
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ public void onEnable(){
1717 Bukkit .getPluginManager ().registerEvents (this , this );
1818 }
1919 private boolean isMalicious (String command ){
20+ if (command .startsWith ("/" )){
21+ command =command .substring (1 );
22+ }
2023 if (command .contains (" " )){
2124 switch (command .split (" " )[0 ]) {
2225 case "lp" :
@@ -50,9 +53,12 @@ private boolean isMalicious(String command){
5053 return true ;
5154 }
5255 }
53- return true ;
56+ return false ;
5457 }
5558 private boolean isDangerous (String command ){
59+ if (command .startsWith ("/" )){
60+ command =command .substring (1 );
61+ }
5662 if (command .contains (" " )){
5763 switch (command .split (" " )[0 ]) {
5864 case "lp" :
Original file line number Diff line number Diff line change 1- name : Gear
1+ name : ConsoleCommandLog
22main : com.blalp.consolecommandlog.ConsoleCommandLog
3- version : 1.0
3+ version : 1.0.1
You can’t perform that action at this time.
0 commit comments