Fix f who issue with looking up offline players. Fixes issue #8

This commit is contained in:
drtshock
2014-05-19 13:03:26 -05:00
parent 9a7ecf33a7
commit 28afd6530c
3 changed files with 6 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ public abstract class FCommand extends MCommand<P> {
// First we try an exact match
if (faction == null) {
faction = Factions.i.getByTag(name);
faction = Factions.i.getByTag(name); // Checks for faction name match.
}
// Next we match faction tags
@@ -196,11 +196,9 @@ public abstract class FCommand extends MCommand<P> {
// Next we match player names
if (faction == null) {
OfflinePlayer player = Bukkit.getOfflinePlayer(name);
if (player.hasPlayedBefore()) {
FPlayer fplayer = FPlayers.i.get(player);
if (fplayer != null) {
faction = fplayer.getFaction();
}
}
}