mirror of
https://github.com/Maxlego08/zKoth.git
synced 2025-02-23 02:52:04 +01:00
📝 fix command
This commit is contained in:
parent
13166acce2
commit
2ebdd083ea
@ -1,5 +1,7 @@
|
||||
# Unreleased
|
||||
|
||||
- Fix command description
|
||||
|
||||
# 3.1.0
|
||||
|
||||
- Add ``enableEverySecondsCooldownMessage``, Periodically displays a message when the koth is launched
|
||||
|
@ -14,7 +14,7 @@ public class CommandKothAddCommand extends VCommand {
|
||||
super(plugin);
|
||||
this.setPermission(Permission.ZKOTH_COMMAND_ADD);
|
||||
this.addSubCommand("addcommand", "ac");
|
||||
this.setDescription(Message.DESCRIPTION_SPAWN);
|
||||
this.setDescription(Message.DESCRIPTION_ADD_COMMAND);
|
||||
this.addRequireArg("name", (a, b) -> plugin.getKothManager().getNameKoths());
|
||||
this.addRequireArg("type", (a, b) -> Arrays.asList("start", "win"));
|
||||
this.addRequireArg("command");
|
||||
|
@ -12,7 +12,7 @@ public class CommandKothDelete extends VCommand {
|
||||
super(plugin);
|
||||
this.setPermission(Permission.ZKOTH_DELETE);
|
||||
this.addSubCommand("spawn");
|
||||
this.setDescription(Message.DESCRIPTION_SPAWN);
|
||||
this.setDescription(Message.DESCRIPTION_DELETE);
|
||||
this.addRequireArg("name", (a,b) -> plugin.getKothManager().getNameKoths());
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ public class CommandKothLoot extends VCommand {
|
||||
super(plugin);
|
||||
this.setPermission(Permission.ZKOTH_LOOT);
|
||||
this.addSubCommand("loot");
|
||||
this.setDescription(Message.DESCRIPTION_SPAWN);
|
||||
this.setDescription(Message.DESCRIPTION_LOOT);
|
||||
this.addRequireArg("name", (a, b) -> plugin.getKothManager().getNameKoths());
|
||||
this.addOptionalArg("page", (a, b) -> Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9"));
|
||||
}
|
||||
|
@ -3,27 +3,26 @@ package fr.maxlego08.koth.command.commands;
|
||||
import fr.maxlego08.koth.KothPlugin;
|
||||
import fr.maxlego08.koth.command.VCommand;
|
||||
import fr.maxlego08.koth.zcore.enums.Message;
|
||||
import fr.maxlego08.koth.zcore.enums.Permission;
|
||||
import fr.maxlego08.koth.zcore.utils.commands.CommandType;
|
||||
|
||||
public class CommandKothVersion extends VCommand {
|
||||
|
||||
public CommandKothVersion(KothPlugin plugin) {
|
||||
super(plugin);
|
||||
this.addSubCommand("version", "?", "v");
|
||||
this.setDescription(Message.DESCRIPTION_SPAWN);
|
||||
}
|
||||
public CommandKothVersion(KothPlugin plugin) {
|
||||
super(plugin);
|
||||
this.addSubCommand("version", "?", "v");
|
||||
this.setDescription(Message.DESCRIPTION_VERSION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected CommandType perform(KothPlugin plugin) {
|
||||
@Override
|
||||
protected CommandType perform(KothPlugin plugin) {
|
||||
|
||||
message(this.sender, "§aVersion du plugin§7: §2" + plugin.getDescription().getVersion());
|
||||
message(this.sender, "§aAuteur§7: §2Maxlego08");
|
||||
message(this.sender, "§aDiscord§7: §2http://discord.groupez.dev/");
|
||||
message(this.sender, "§aBuy it for §d8€§7: §2https://groupez.dev/resources/zKoth.9");
|
||||
message(this.sender, "§aSponsor§7: §chttps://serveur-minecraft-vote.fr/?ref=345");
|
||||
message(this.sender, "§aVersion du plugin§7: §2" + plugin.getDescription().getVersion());
|
||||
message(this.sender, "§aAuteur§7: §2Maxlego08");
|
||||
message(this.sender, "§aDiscord§7: §2http://discord.groupez.dev/");
|
||||
message(this.sender, "§aBuy it for §d8€§7: §2https://groupez.dev/resources/zKoth.9");
|
||||
message(this.sender, "§aSponsor§7: §chttps://serveur-minecraft-vote.fr/?ref=345");
|
||||
|
||||
return CommandType.SUCCESS;
|
||||
}
|
||||
return CommandType.SUCCESS;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -53,6 +53,7 @@ public enum Message {
|
||||
DESCRIPTION_AXE("Getting the selection axe"),
|
||||
DESCRIPTION_CREATE("Create new koth"),
|
||||
DESCRIPTION_LIST("Get koth list"),
|
||||
DESCRIPTION_ADD_COMMAND("Add a command to a koth"),
|
||||
|
||||
AXE_RECEIVE("§7You have just received the axe for zone selection."),
|
||||
AXE_NAME("§6✤ §7zKoth axe §6✤"),
|
||||
|
Loading…
Reference in New Issue
Block a user