Temp fix for using /p & /a to send messages, fixes build errors.

This commit is contained in:
GJ 2012-04-10 02:05:14 -04:00
parent 11a4fdfcd5
commit 74188415dd
2 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,6 @@ import org.bukkit.entity.Player;
import com.gmail.nossr50.Users;
import com.gmail.nossr50.mcPermissions;
import com.gmail.nossr50.config.LoadProperties;
import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.locale.mcLocale;
@ -56,7 +55,7 @@ public class ACommand implements CommandExecutor {
aMessage = aMessage + " " + args[i];
}
String name = (LoadProperties.aDisplayNames) ? player.getDisplayName() : player.getName();
String name = player.getName();
String aPrefix = ChatColor.AQUA + "{" + ChatColor.WHITE + name + ChatColor.AQUA + "} ";
Bukkit.getLogger().info("[A]<" + name + "> " + aMessage);
for (Player herp : Bukkit.getServer().getOnlinePlayers()) {

View File

@ -9,7 +9,6 @@ import org.bukkit.entity.Player;
import com.gmail.nossr50.Users;
import com.gmail.nossr50.mcPermissions;
import com.gmail.nossr50.config.LoadProperties;
import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.locale.mcLocale;
import com.gmail.nossr50.party.Party;
@ -64,7 +63,7 @@ public class PCommand implements CommandExecutor {
pMessage = pMessage + " " + args[i];
}
String name = (LoadProperties.pDisplayNames) ? player.getDisplayName() : player.getName();
String name = player.getName();
String pPrefix = ChatColor.GREEN + "(" + ChatColor.WHITE + name + ChatColor.GREEN + ") ";
Bukkit.getLogger().info("[P](" + PP.getParty() + ")<" + name + "> " + pMessage);