Skip to content

Commit 3295e98

Browse files
committed
update
1 parent f9219fa commit 3295e98

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
libs/
2+
target/
3+
.project
4+
.settings
5+
.classpath
6+
7+
.vscode

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.0</version>
6+
<version>1.0.1</version>
77
<packaging>jar</packaging>
88

99
<name>ConsoleCommandLog</name>

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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":

src/main/resources/plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
name: Gear
1+
name: ConsoleCommandLog
22
main: com.blalp.consolecommandlog.ConsoleCommandLog
3-
version: 1.0
3+
version: 1.0.1

0 commit comments

Comments
 (0)