Add Region section Support for /tnt /fire /freeze #168
@ -41,11 +41,12 @@ public class CommandInfo implements CommandExecutor {
|
||||
Player player = (Player) sender;
|
||||
|
||||
sender.sendMessage(BauSystem.PREFIX + "Besitzer: §e" + SteamwarUser.get(BauSystem.getOwnerID()).getUserName());
|
||||
Region.getRegion(player.getLocation(), region -> {
|
||||
sender.sendMessage(BauSystem.PREFIX + "§eTNT§8: " + region.getTntMode().getName() + " §eFire§8: " + (region.isFire() ? "§aAUS" : "§cAN") + " §eFreeze§8: " + (region.isFreeze() ? "§aAN" : "§cAUS"));
|
||||
}, () -> {
|
||||
Region region = Region.getRegion(player);
|
||||
if (region == null) {
|
||||
sender.sendMessage(BauSystem.PREFIX + "§7Du bist in keiner Region.");
|
||||
});
|
||||
} else {
|
||||
sender.sendMessage(BauSystem.PREFIX + "§eTNT§8: " + region.getTntMode().getName() + " §eFire§8: " + (region.isFire() ? "§aAUS" : "§cAN") + " §eFreeze§8: " + (region.isFreeze() ? "§aAN" : "§cAUS"));
|
||||
}
|
||||
|
||||
List<BauweltMember> members = BauweltMember.getMembers(BauSystem.getOwnerID());
|
||||
StringBuilder membermessage = new StringBuilder().append(BauSystem.PREFIX).append("Mitglieder: ");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren