Update BauSystem to new CommandFramework #217
24
BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSelect.java
Normale Datei
24
BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSelect.java
Normale Datei
@ -0,0 +1,24 @@
|
||||
package de.steamwar.bausystem.commands;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.world.Region;
|
||||
import de.steamwar.command.SWCommand;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
|
||||
public class CommandSelect extends SWCommand {
|
||||
|
||||
public CommandSelect() {
|
||||
super("select");
|
||||
}
|
||||
|
||||
|
||||
@Register("baurahmen")
|
||||
public void baurahmenCommand(Player p) {
|
||||
Region region = Region.getRegion(p.getLocation());
|
||||
if (region == Region.GlobalRegion.getInstance()) {
|
||||
p.sendMessage(BauSystem.PREFIX + "§cDu befindest dich derzeit in keiner Region");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
In neuem Issue referenzieren
Einen Benutzer sperren