mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Print Empty when nothing staffs for shop.
Former-commit-id: 6d4ffffdd09ed7ef15dd56c14bc0b47bfbccb23c [formerly 7b83b8668fb1bc21f8ac8c36ff08ac7009b88615] Former-commit-id: 7199697f7e9a799691657732f815041eb6336cfb
This commit is contained in:
1 parent
fd95d18243
commit
3a52b8459f
1 file changed
+7
-1
@@ -93,7 +93,13 @@ public class SubCommand_Staff implements CommandProcesser {
|
||||
sender.sendMessage(MsgUtil.getMessage("shop-staff-cleared"));
|
||||
return;
|
||||
case "list":
|
||||
for (UUID uuid : shop.getStaffs()) {
|
||||
List<UUID> staffs = shop.getStaffs();
|
||||
if (staffs.isEmpty()) {
|
||||
sender.sendMessage(ChatColor.GREEN + MsgUtil
|
||||
.getMessage("tableformat.left_begin") + "Empty");
|
||||
return;
|
||||
}
|
||||
for (UUID uuid : staffs) {
|
||||
sender.sendMessage(ChatColor.GREEN + MsgUtil.getMessage("tableformat.left_begin") + Bukkit
|
||||
.getOfflinePlayer(uuid).getName());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user