remove: template save/load/list from SetupCommand
This commit is contained in:
parent
fcf2debbd4
commit
78fc8bfb55
5 changed files with 182 additions and 132 deletions
|
|
@ -198,6 +198,17 @@ public class DBDAdminCommand implements TabExecutor {
|
|||
return selectingGenerator.contains(uuid);
|
||||
}
|
||||
|
||||
public void toggleGeneratorMode(org.bukkit.entity.Player player) {
|
||||
if (selectingGenerator.contains(player.getUniqueId())) {
|
||||
selectingGenerator.remove(player.getUniqueId());
|
||||
player.sendMessage(TextUtil.color("<#FFA500>Режим выбора генератора отключен"));
|
||||
} else {
|
||||
selectingGenerator.add(player.getUniqueId());
|
||||
player.sendMessage(TextUtil.color("<#00FF00>Режим выбора генератора включен!"));
|
||||
player.sendMessage(TextUtil.color("<#FFD700>Сломайте блок чтобы установить генератор"));
|
||||
}
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
if (actionBarTask != null) {
|
||||
actionBarTask.cancel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue