mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-06 20:42:57 +00:00
yeah
This commit is contained in:
parent
47a62753d1
commit
a37d8ecb31
23 changed files with 1243 additions and 189 deletions
|
@ -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<>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue