Offline players will not be null. This was interfering with faction invites for some reason.
This commit is contained in:
parent
b10e31acbb
commit
997d0c5a43
@ -132,13 +132,11 @@ public abstract class FCommand extends MCommand<P> {
|
|||||||
|
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
OfflinePlayer player = Bukkit.getOfflinePlayer(name);
|
OfflinePlayer player = Bukkit.getOfflinePlayer(name);
|
||||||
if (player.hasPlayedBefore()) {
|
|
||||||
FPlayer fplayer = FPlayers.i.get(player);
|
FPlayer fplayer = FPlayers.i.get(player);
|
||||||
if (fplayer != null) {
|
if (fplayer != null) {
|
||||||
ret = fplayer;
|
ret = fplayer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (msg && ret == null) {
|
if (msg && ret == null) {
|
||||||
this.msg("<b>No player \"<p>%s<b>\" could be found.", name);
|
this.msg("<b>No player \"<p>%s<b>\" could be found.", name);
|
||||||
|
@ -116,6 +116,7 @@ public class FactionsEntityListener implements Listener {
|
|||||||
|
|
||||||
boolean online = faction.hasPlayersOnline();
|
boolean online = faction.hasPlayersOnline();
|
||||||
|
|
||||||
|
//TODO: :(
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
boomer instanceof Creeper
|
boomer instanceof Creeper
|
||||||
|
Loading…
Reference in New Issue
Block a user