Use "Coming soon!" instead of empty string

This commit is contained in:
Dan Mulloy 2017-06-01 12:43:05 -04:00 committed by cnr
parent 414573c18d
commit abaaaebd43

View File

@ -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)