Update BauSystem to new CommandFramework #217
@ -21,6 +21,11 @@ public class CommandBau extends SWCommand {
|
|||||||
p.sendMessage(BauSystem.PREFIX + "§8/§ebau toggleworld §8[§7Player§8] §8- §7Editiere die Werlt Rechte eines Spielers");
|
p.sendMessage(BauSystem.PREFIX + "§8/§ebau toggleworld §8[§7Player§8] §8- §7Editiere die Werlt Rechte eines Spielers");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Register("info")
|
||||||
|
public void infoCommand(Player p) {
|
||||||
|
CommandInfo.sendBauInfo(p);
|
||||||
|
}
|
||||||
|
|
||||||
@Register("togglebuild")
|
@Register("togglebuild")
|
||||||
public void toggleBuildCommand(Player p, String arg) {
|
public void toggleBuildCommand(Player p, String arg) {
|
||||||
if (!permissionCheck(p)) return;
|
if (!permissionCheck(p)) return;
|
||||||
|
@ -45,6 +45,10 @@ public class CommandInfo extends SWCommand {
|
|||||||
|
|
||||||
@Register
|
@Register
|
||||||
public void genericCommand(Player p) {
|
public void genericCommand(Player p) {
|
||||||
|
CommandInfo.sendBauInfo(p);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void sendBauInfo(Player p) {
|
||||||
p.sendMessage(BauSystem.PREFIX + "Besitzer: §e" + SteamwarUser.get(BauSystem.getOwnerID()).getUserName());
|
p.sendMessage(BauSystem.PREFIX + "Besitzer: §e" + SteamwarUser.get(BauSystem.getOwnerID()).getUserName());
|
||||||
Region region = Region.getRegion(p.getLocation());
|
Region region = Region.getRegion(p.getLocation());
|
||||||
p.sendMessage(BauSystem.PREFIX + "§eTNT§8: " + region.getTntMode().getName() + " §eFire§8: " + (region.isFire() ? "§aAUS" : "§cAN") + " §eFreeze§8: " + (region.isFreeze() ? "§aAN" : "§cAUS"));
|
p.sendMessage(BauSystem.PREFIX + "§eTNT§8: " + region.getTntMode().getName() + " §eFire§8: " + (region.isFire() ? "§aAUS" : "§cAN") + " §eFreeze§8: " + (region.isFreeze() ? "§aAN" : "§cAUS"));
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren