TFM_Util.implodeStringList is deprecated.

This commit is contained in:
Steven Lawson 2012-12-01 14:39:37 -05:00
parent 2e899bd4fe
commit 4f3972c406
3 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ public class Command_list extends TFM_Command
{
if (TFM_SuperadminList.isUserSuperadmin(p))
{
if(TFM_SuperadminList.isSeniorAdmin(p))
if (TFM_SuperadminList.isSeniorAdmin(p))
{
prefix = (ChatColor.LIGHT_PURPLE + "[SrA]");
}

View File

@ -2,7 +2,6 @@ package me.StevenLawson.TotalFreedomMod.Commands;
import me.StevenLawson.TotalFreedomMod.TFM_UserInfo;
import me.StevenLawson.TotalFreedomMod.TFM_Util;
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.command.Command;
@ -60,7 +59,7 @@ public class Command_orbit extends TFM_Command
playerdata.startOrbiting(strength);
p.setVelocity(new Vector(0, strength, 0));
TFM_Util.adminAction(sender.getName(), "Orbiting " + p.getName(), true);
TFM_Util.adminAction(sender.getName(), "Orbiting " + p.getName() + ".", false);
return true;
}

View File

@ -2,6 +2,7 @@ package me.StevenLawson.TotalFreedomMod.Commands;
import me.StevenLawson.TotalFreedomMod.TFM_Util;
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
import org.apache.commons.lang.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
@ -45,7 +46,7 @@ public class Command_permban extends TFM_Command
else
{
TFM_Util.playerMsg(sender, TotalFreedomMod.permbanned_players.size() + " permanently banned players:");
TFM_Util.playerMsg(sender, ChatColor.GRAY + TFM_Util.implodeStringList(", ", TotalFreedomMod.permbanned_players));
TFM_Util.playerMsg(sender, ChatColor.GRAY + StringUtils.join(TotalFreedomMod.permbanned_players, ", "));
}
if (TotalFreedomMod.permbanned_ips.isEmpty())
@ -55,7 +56,7 @@ public class Command_permban extends TFM_Command
else
{
TFM_Util.playerMsg(sender, TotalFreedomMod.permbanned_ips.size() + " permanently banned IPs:");
TFM_Util.playerMsg(sender, ChatColor.GRAY + TFM_Util.implodeStringList(", ", TotalFreedomMod.permbanned_ips));
TFM_Util.playerMsg(sender, ChatColor.GRAY + StringUtils.join(TotalFreedomMod.permbanned_ips, ", "));
}
}
}