Skip to content

Commit 5edc5d5

Browse files
committed
ReadMe and permissions
1 parent f8822ad commit 5edc5d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# JavaExecutor
22
Execute your own Java code while ingame
33
## Usage
4-
- /execute {Code}: Executes the Java code you put as an argument
4+
- /executecode {Code}: Executes the Java code you put as an argument
55
- /executefile {Path to File}: Executes the code in the File. For example: if you have a TestCode.txt in the Folder of your Server you would have to use /executefile ./TestCode.txt
66
## Permissions
7-
- JavaExecutor.execute: /execute
7+
- JavaExecutor.executecode: /executecode
88
- JavaExecutor.executefile: /executefile

src/main/java/de/tamion/commands/ExecuteCode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class ExecuteCode implements CommandExecutor {
1111

1212
@Override
1313
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String label, @NotNull String[] args) {
14-
if(!sender.hasPermission("JavaExecutor.execute")) {
14+
if(!sender.hasPermission("JavaExecutor.executecode")) {
1515
sender.sendMessage("You aren't allowed to execute this Command");
1616
return false;
1717
}

0 commit comments

Comments
 (0)