geforkt von SteamWar/BungeeCore
Merge branch 'regelnCommand' of SteamWar/BungeeCore into master
Dieser Commit ist enthalten in:
Commit
d53912212e
@ -91,6 +91,7 @@ public class BungeeCore extends Plugin {
|
||||
new MuteCommand();
|
||||
new BugCommand();
|
||||
new WhoisCommand();
|
||||
new RegelnCommand();
|
||||
|
||||
new EventStarter();
|
||||
new Broadcaster();
|
||||
|
25
src/de/steamwar/bungeecore/commands/RegelnCommand.java
Normale Datei
25
src/de/steamwar/bungeecore/commands/RegelnCommand.java
Normale Datei
@ -0,0 +1,25 @@
|
||||
package de.steamwar.bungeecore.commands;
|
||||
|
||||
import de.steamwar.bungeecore.BungeeCore;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.chat.ClickEvent;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
|
||||
public class RegelnCommand extends BasicCommand {
|
||||
public RegelnCommand() {
|
||||
super("regeln", null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(CommandSender sender, String[] args) {
|
||||
if(!(sender instanceof ProxiedPlayer))
|
||||
return;
|
||||
ProxiedPlayer player = (ProxiedPlayer) sender;
|
||||
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§7§lRegelwerke");
|
||||
BungeeCore.send(player, "§eAirShip§8-§7Regelwerk", "§7https://steamwar.de/spielmodi/airship-regelwerk/", new ClickEvent(ClickEvent.Action.OPEN_URL, "https://steamwar.de/spielmodi/airship-regelwerk/"));
|
||||
BungeeCore.send(player, "§eMiniWarGear§8-§7Regelwerk", "§7https://steamwar.de/spielmodi/miniwargear-regelwerk/", new ClickEvent(ClickEvent.Action.OPEN_URL, "https://steamwar.de/spielmodi/miniwargear-regelwerk/"));
|
||||
BungeeCore.send(player, "§eWarGear§8-§7Regelwerk", "§7https://steamwar.de/spielmodi/wargear-regelwerk/", new ClickEvent(ClickEvent.Action.OPEN_URL, "https://steamwar.de/spielmodi/wargear-regelwerk/"));
|
||||
BungeeCore.send(player, "§eWarShip§8-§7Regelwerk", "§7https://steamwar.de/spielmodi/warship-regelwerk/", new ClickEvent(ClickEvent.Action.OPEN_URL, "https://steamwar.de/spielmodi/warship-regelwerk/"));
|
||||
}
|
||||
}
|
In neuem Issue referenzieren
Einen Benutzer sperren