Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Asintotoo authored Jul 15, 2024
1 parent be0c1c9 commit 2c932d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.asintoto</groupId>
<artifactId>Basic</artifactId>
<version>1.0.24</version>
<version>1.0.25</version>
<packaging>jar</packaging>

<name>Basic</name>
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/asintoto/basic/commands/BasicCommand.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.asintoto.basic.commands;

import com.asintoto.basic.Basic;
import com.asintoto.basic.interfaces.RegisterCommand;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
Expand All @@ -19,8 +17,6 @@ public abstract class BasicCommand implements CommandExecutor, TabCompleter {

public BasicCommand(String label) {
this.label = label;

registerCommand();
}

@Override
Expand All @@ -35,16 +31,9 @@ public final List<String> onTabComplete(CommandSender sender, Command command, S
}

public void onCommand(CommandSender sender, String[] args) {
sender.sendMessage("comando");
}

public List<String> onTabComplete(CommandSender sender, String[] args) {
return NO_COMPLETE;
}

private void registerCommand() {
if(this.getClass().isAnnotationPresent(RegisterCommand.class)) {
Basic.getPlugin().getCommand(label).setExecutor(this);
}
}
}

0 comments on commit 2c932d6

Please sign in to comment.