SteamWar/BungeeCore
Archiviert
13
2

Add usage messsage on no permission

Dieser Commit ist enthalten in:
yoyosource 2023-02-17 15:22:05 +01:00
Ursprung b3a4c93c59
Commit 6de8ed282b

Datei anzeigen

@ -41,7 +41,10 @@ public class JoinmeCommand extends SWCommand {
@Register(description = "JOINME_USAGE")
public void genericCommand(ProxiedPlayer player) {
if (!player.hasPermission("bungeecore.joinme")) return;
if (!player.hasPermission("bungeecore.joinme")) {
Message.send("JOINME_USAGE", player);
return;
}
Message.broadcast("JOINME_BROADCAST", "JOINME_BROADCAST_HOVER",
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + player.getName()), player.getName(), player.getServer().getInfo().getName());
}