Added discord help command
This commit is contained in:
parent
889c6b77a5
commit
cb45047f71
@ -2,6 +2,7 @@ package eu.mhsl.craftattack.spawn.appliances.help;
|
|||||||
|
|
||||||
import eu.mhsl.craftattack.spawn.appliance.Appliance;
|
import eu.mhsl.craftattack.spawn.appliance.Appliance;
|
||||||
import eu.mhsl.craftattack.spawn.appliance.ApplianceCommand;
|
import eu.mhsl.craftattack.spawn.appliance.ApplianceCommand;
|
||||||
|
import eu.mhsl.craftattack.spawn.appliances.help.command.DiscordCommand;
|
||||||
import eu.mhsl.craftattack.spawn.appliances.help.command.HelpCommand;
|
import eu.mhsl.craftattack.spawn.appliances.help.command.HelpCommand;
|
||||||
import eu.mhsl.craftattack.spawn.appliances.help.command.SpawnCommand;
|
import eu.mhsl.craftattack.spawn.appliances.help.command.SpawnCommand;
|
||||||
import eu.mhsl.craftattack.spawn.appliances.help.command.TeamspeakCommand;
|
import eu.mhsl.craftattack.spawn.appliances.help.command.TeamspeakCommand;
|
||||||
@ -19,7 +20,8 @@ public class Help extends Appliance {
|
|||||||
return List.of(
|
return List.of(
|
||||||
new HelpCommand(),
|
new HelpCommand(),
|
||||||
new SpawnCommand(),
|
new SpawnCommand(),
|
||||||
new TeamspeakCommand()
|
new TeamspeakCommand(),
|
||||||
|
new DiscordCommand()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
package eu.mhsl.craftattack.spawn.appliances.help.command;
|
||||||
|
|
||||||
|
import eu.mhsl.craftattack.spawn.appliance.ApplianceCommand;
|
||||||
|
import eu.mhsl.craftattack.spawn.appliances.help.Help;
|
||||||
|
import net.kyori.adventure.text.Component;
|
||||||
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
public class DiscordCommand extends ApplianceCommand<Help> {
|
||||||
|
public DiscordCommand() {
|
||||||
|
super("discord");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void execute(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) throws Exception {
|
||||||
|
sender.sendMessage(
|
||||||
|
Component.text("Einen offiziellen Discord Server gibt es nicht, aber Du kannst gerne unserem Teamspeak joinen: ", NamedTextColor.GOLD)
|
||||||
|
.append(Component.text("mhsl.eu", NamedTextColor.AQUA))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -27,3 +27,5 @@ commands:
|
|||||||
spawn:
|
spawn:
|
||||||
teamspeak:
|
teamspeak:
|
||||||
aliases: ["ts"]
|
aliases: ["ts"]
|
||||||
|
discord:
|
||||||
|
aliases: ["dc"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user