From 0e1fe374930ec3c185c624e2dafb95e78e9989e4 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 26 Nov 2013 12:23:33 -0700 Subject: [PATCH] Fix to /jobs members. Meant to sort by level, not name. --- .../src/me/kaZep/Commands/commandBankEconomy.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java index e21e703..411d34d 100644 --- a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java +++ b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java @@ -1733,7 +1733,7 @@ public String convertToItemName(String val) { if (this.plugin.getConfig().contains("jobs."+job+"_members")) { p.sendMessage("Players in the "+job_color+job+" job:"); String[] players = this.plugin.getConfig().getString("jobs."+job+"_members").split(", "); - char lowest = 'z'+1; + int lowest = 40; List sorted_players = new ArrayList(); for (int i=0;i0) { for (int i=0;i0) { //If it's 0, for some reason it didn't read this name right....Skip it. - if (sorted_players.get(i).toCharArray()[0]0) {