Skip to content

Commit

Permalink
updated /warps formatting, now shows displaynames
Browse files Browse the repository at this point in the history
  • Loading branch information
cytocracy committed Jul 24, 2021
1 parent 9fd4ff4 commit 23982e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/main/java/me/jakedadream/ParadisuPlugin/commands/warps.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,15 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
Set<String> 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;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 23982e0

Please sign in to comment.