Use "Coming soon!" instead of empty string
This commit is contained in:
parent
414573c18d
commit
abaaaebd43
@ -8,10 +8,10 @@ import java.util.Set;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
|
||||
import mineplex.core.Managers;
|
||||
import mineplex.core.common.util.BukkitFuture;
|
||||
import mineplex.core.common.util.F;
|
||||
@ -52,7 +52,7 @@ public class PowerPlayClubRewards
|
||||
private static final PowerPlayClubItem MISSING = new PowerPlayClubItem()
|
||||
{
|
||||
@Override
|
||||
public String getPrizeName() { return ""; }
|
||||
public String getPrizeName() { return "Coming soon!"; }
|
||||
|
||||
@Override
|
||||
public void reward(Player player) { }
|
||||
@ -123,14 +123,7 @@ public class PowerPlayClubRewards
|
||||
|
||||
public static PowerPlayClubItem getReward(YearMonth month)
|
||||
{
|
||||
if (rewards.containsKey(month))
|
||||
{
|
||||
return rewards.get(month);
|
||||
} else
|
||||
{
|
||||
System.err.println("PowerPlayClub item for " + month + " is missing!");
|
||||
return MISSING;
|
||||
}
|
||||
return rewards.getOrDefault(month, MISSING);
|
||||
}
|
||||
|
||||
public static void giveAllItems(Player player, InventoryManager inventoryManager, PowerPlayClubRepository repo)
|
||||
|
Loading…
Reference in New Issue
Block a user