mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Manually register aliases
This commit is contained in:
1 parent
435a9b9dff
commit
3b69b2df4d
3 files changed
+15
-8
No files matched your search
@@ -7,7 +7,6 @@ import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@@ -38,7 +37,6 @@ public class BukkitCommand implements CommandExecutor, TabExecutor {
|
||||
*/
|
||||
public void register(@NotNull PluginCommand pluginCommand) {
|
||||
try {
|
||||
pluginCommand.setAliases(Arrays.asList(command.aliases));
|
||||
pluginCommand.setPermission(command.permission);
|
||||
pluginCommand.setDescription(command.getDescription());
|
||||
pluginCommand.setExecutor(this);
|
||||
|
||||
@@ -17,20 +17,24 @@ commands:
|
||||
usage: /sethome <name>
|
||||
homelist:
|
||||
usage: /homelist [page]
|
||||
aliases: [homes]
|
||||
delhome:
|
||||
usage: /delhome <name>
|
||||
edithome:
|
||||
usage: /edithome <name> [rename|description|relocate|privacy] [args]
|
||||
publichome:
|
||||
usage: /publichome [<owner_name>.<home_name>]
|
||||
aliases: [phome]
|
||||
publichomelist:
|
||||
usage: /publichomelist [page]
|
||||
aliases: [phomelist, phomes]
|
||||
warp:
|
||||
usage: /warp <name>
|
||||
setwarp:
|
||||
usage: /setwarp <name>
|
||||
warplist:
|
||||
usage: /warplist [page]
|
||||
aliases: [warps]
|
||||
delwarp:
|
||||
usage: /delwarp <name>
|
||||
editwarp:
|
||||
|
||||
Reference in new issue
Block a user