diff --git a/src/main/java/me/jakedadream/ParadisuPlugin/commands/warps.java b/src/main/java/me/jakedadream/ParadisuPlugin/commands/warps.java index e377165..302b6a5 100644 --- a/src/main/java/me/jakedadream/ParadisuPlugin/commands/warps.java +++ b/src/main/java/me/jakedadream/ParadisuPlugin/commands/warps.java @@ -212,12 +212,15 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String Set s = paradisumain.fileWarpConfig.getKeys(false); s.remove("aliases"); String mes = "§3[§dParadisu §bツ§3] §fCurrent Warps:" + ChatColor.DARK_AQUA; + FileConfiguration warplist = paradisumain.fileWarpConfig; for (String i : s){ -// player.sendMessage(i); - i = i.substring(0,1).toUpperCase() + i.substring(1); -// player.sendMessage(i); - mes = mes.concat("\n" + i); -// player.sendMessage(mes); +// player.sendMessage(mes); + if(warplist.getConfigurationSection(i).getString("display") != null){ + mes = mes.concat("\n" + ChatColor.WHITE + "- " + ChatColor.DARK_AQUA + warplist.getConfigurationSection(i).getString("display")); + } else { + i = i.substring(0,1).toUpperCase() + i.substring(1); + mes = mes.concat("\n" + ChatColor.WHITE + "- " + ChatColor.DARK_AQUA + i); + } } player.sendMessage(mes); break; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 053ce2c..d78cc93 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: ParadisuPlugin -version: 2.4.5 +version: 2.4.6 authors: [JakeDaDream, RealInstantRamen, andyinnie, _Kastle] main: me.jakedadream.ParadisuPlugin.paradisumain api-version: 1.16