SteamWar/BungeeCore
Archiviert
13
2

Remove Premium and add challenge help

Dieser Commit ist enthalten in:
Lixfel 2019-07-17 17:22:04 +02:00
Ursprung 764ed5bff2
Commit 01e2a4f2d1
3 geänderte Dateien mit 6 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -101,10 +101,6 @@ public class PlayerListener implements Listener {
player.setPermission("bungeecore.group.youtuber", true); player.setPermission("bungeecore.group.youtuber", true);
player.setDisplayName("§5Youtuber " + player.getName() + "§r"); player.setDisplayName("§5Youtuber " + player.getName() + "§r");
break; break;
case "Premium":
player.setPermission("bungeecore.group.premium", true);
player.setDisplayName("§6Premium " + player.getName() + "§r");
break;
case "Member": case "Member":
default: default:
player.setDisplayName(player.getName()); player.setDisplayName(player.getName());
@ -214,8 +210,7 @@ public class PlayerListener implements Listener {
sender.hasPermission("bungeecore.group.builder")){ sender.hasPermission("bungeecore.group.builder")){
chatsuffix = "§7» §r"; chatsuffix = "§7» §r";
message = ChatColor.translateAlternateColorCodes('&', message); message = ChatColor.translateAlternateColorCodes('&', message);
}else if(sender.hasPermission("bungeecore.group.youtuber") || }else if(sender.hasPermission("bungeecore.group.youtuber")){
sender.hasPermission("bungeecore.group.premium")){
message = ChatColor.translateAlternateColorCodes('&', message); message = ChatColor.translateAlternateColorCodes('&', message);
} }

Datei anzeigen

@ -47,7 +47,7 @@ public class FightCommand extends Command {
sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight AirShip §8- §7Starte einen §eAirShip§8-§7Kampf§8!"); sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight AirShip §8- §7Starte einen §eAirShip§8-§7Kampf§8!");
sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight WarShip §8- §7Starte einen §eWarShip§8-§7Kampf§8!"); sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight WarShip §8- §7Starte einen §eWarShip§8-§7Kampf§8!");
sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight WarGear §8- §7Starte einen §eWarGear§8-§7Kampf§8!"); sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight WarGear §8- §7Starte einen §eWarGear§8-§7Kampf§8!");
sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight MiniWarGear §8- §7Starte einen §eMiniWarGear§8-§7Kampf§8!"); sender.sendMessage(BungeeCore.ChatPrefix + "§8/§efight MiniWarGear §8- §7Starte einen §eMiniWarGear§8-§7Kampf");
return; return;
} }

Datei anzeigen

@ -36,6 +36,10 @@ public class HelpCommand extends Command {
tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/fight")); tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/fight"));
sender.sendMessage(tc); sender.sendMessage(tc);
tc = new TextComponent(BungeeCore.ChatPrefix + "§7Tippe §8/§echallenge §7, um jemanden herauszufordern!");
tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eHerausfordern").create()));
tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/challenge"));
tc = new TextComponent(BungeeCore.ChatPrefix + "§7Trete mit §8/§ejoin §8[§eSpieler§8] §7einem Kampf bei!"); tc = new TextComponent(BungeeCore.ChatPrefix + "§7Trete mit §8/§ejoin §8[§eSpieler§8] §7einem Kampf bei!");
tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eSpieler beitreten").create())); tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eSpieler beitreten").create()));
tc.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/join")); tc.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/join"));