Skip to content

Commit f8822ad

Browse files
committed
Changed /execute to /executecode to prevent confusion with the default /execute command
1 parent 2e5a46e commit f8822ad

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de</groupId>
88
<artifactId>JavaExecutor</artifactId>
9-
<version>1.0.1</version>
9+
<version>1.0.2</version>
1010
<packaging>jar</packaging>
1111

1212
<name>JavaExecutor</name>

src/main/java/de/tamion/JavaExecutor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package de.tamion;
22

3-
import de.tamion.commands.Execute;
3+
import de.tamion.commands.ExecuteCode;
44
import de.tamion.commands.ExecuteFile;
55
import org.bukkit.plugin.java.JavaPlugin;
66

77
public final class JavaExecutor extends JavaPlugin {
88

99
@Override
1010
public void onEnable() {
11-
getCommand("execute").setExecutor(new Execute());
11+
getCommand("executecode").setExecutor(new ExecuteCode());
1212
getCommand("executefile").setExecutor(new ExecuteFile());
1313
}
1414

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.bukkit.command.CommandSender;
88
import org.jetbrains.annotations.NotNull;
99

10-
public class Execute implements CommandExecutor {
10+
public class ExecuteCode implements CommandExecutor {
1111

1212
@Override
1313
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String label, @NotNull String[] args) {

src/main/resources/plugin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ authors: [Tamion]
66
description: Execute your own Java code while ingame
77

88
commands:
9-
execute:
9+
executecode:
1010
executefile:

0 commit comments

Comments
 (0)