From 4f3972c4065ba69621f50a01eadfcfb59f47c35a Mon Sep 17 00:00:00 2001 From: Steven Lawson Date: Sat, 1 Dec 2012 14:39:37 -0500 Subject: [PATCH] TFM_Util.implodeStringList is deprecated. --- .../StevenLawson/TotalFreedomMod/Commands/Command_list.java | 2 +- .../StevenLawson/TotalFreedomMod/Commands/Command_orbit.java | 3 +-- .../TotalFreedomMod/Commands/Command_permban.java | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_list.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_list.java index 2b50f9e3..e6088bbd 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_list.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_list.java @@ -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]"); } diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_orbit.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_orbit.java index 4e4301be..27fb00cf 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_orbit.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_orbit.java @@ -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; } diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_permban.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_permban.java index 9502c8f8..4a74d547 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_permban.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_permban.java @@ -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, ", ")); } } }