This commit is contained in:
ZeroEpoch1969
2020-01-24 23:27:16 -07:00
parent 47a62753d1
commit a37d8ecb31
23 changed files with 1243 additions and 189 deletions

View File

@ -26,6 +26,7 @@ import me.totalfreedom.totalfreedommod.config.ConfigEntry;
import me.totalfreedom.totalfreedommod.shop.ShopItem;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.WordUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
@ -124,6 +125,20 @@ public class FUtil
return ConfigEntry.SERVER_OWNERS.getStringList().contains(name) || ConfigEntry.SERVER_EXECUTIVES.getStringList().contains(name) || ConfigEntry.SERVER_MASTER_BUILDER_MANAGEMENT.getStringList().contains(name);
}
public static String formatName(String name)
{
return WordUtils.capitalizeFully(name.replace("_", " "));
}
public static String showS(int count)
{
if (count == 1)
{
return "";
}
return "s";
}
public static List<String> getPlayerList()
{
List<String> names = new ArrayList<>();