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 f9219fa commit 3295e98
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
libs/
target/
.project
.settings
.classpath

.vscode
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.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>

<name>ConsoleCommandLog</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public void onEnable(){
Bukkit.getPluginManager().registerEvents(this, this);
}
private boolean isMalicious(String command){
if(command.startsWith("/")){
command=command.substring(1);
}
if (command.contains(" ")){
switch (command.split(" ")[0]) {
case "lp":
Expand Down Expand Up @@ -50,9 +53,12 @@ private boolean isMalicious(String command){
return true;
}
}
return true;
return false;
}
private boolean isDangerous(String command){
if(command.startsWith("/")){
command=command.substring(1);
}
if (command.contains(" ")){
switch (command.split(" ")[0]) {
case "lp":
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: Gear
name: ConsoleCommandLog
main: com.blalp.consolecommandlog.ConsoleCommandLog
version: 1.0
version: 1.0.1

0 comments on commit 3295e98

Please sign in to comment.