mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-19 02:12:58 +01:00
Fixed some aliasing bugs, added in commandAnnounce type of command, fixed /reply, changed the command list to be an ArrayList instead of Array.
This commit is contained in:
@@ -87,6 +87,7 @@ public class vMinecraftUsers {
|
||||
//=====================================================================
|
||||
class PlayerList
|
||||
{
|
||||
protected static final Logger log = Logger.getLogger("Minecraft");
|
||||
ArrayList<PlayerProfile> players;
|
||||
|
||||
//=====================================================================
|
||||
@@ -165,6 +166,7 @@ class PlayerList
|
||||
public PlayerProfile(Player player)
|
||||
{
|
||||
//Declare things
|
||||
playerName = player.getName();
|
||||
nickName = new String();
|
||||
tag = new String();
|
||||
suffix = new String();
|
||||
@@ -386,8 +388,9 @@ class PlayerList
|
||||
//=====================================================================
|
||||
public Player getMessage()
|
||||
{
|
||||
|
||||
return etc.getServer().matchPlayer(lastMessage);
|
||||
if(lastMessage != null)
|
||||
return etc.getServer().matchPlayer(lastMessage);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user