Offline players will not be null. This was interfering with faction invites for some reason.

This commit is contained in:
drtshock 2014-05-20 16:45:13 -05:00
parent b10e31acbb
commit 997d0c5a43
2 changed files with 1 additions and 2 deletions

View File

@ -132,12 +132,10 @@ public abstract class FCommand extends MCommand<P> {
if (name != null) {
OfflinePlayer player = Bukkit.getOfflinePlayer(name);
if (player.hasPlayedBefore()) {
FPlayer fplayer = FPlayers.i.get(player);
if (fplayer != null) {
ret = fplayer;
}
}
}
if (msg && ret == null) {

View File

@ -116,6 +116,7 @@ public class FactionsEntityListener implements Listener {
boolean online = faction.hasPlayersOnline();
//TODO: :(
if
(
boomer instanceof Creeper