mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-06-26 14:35:03 +02:00
Fix first time players
This commit is contained in:
parent
c60085eade
commit
3ca65765a3
|
@ -742,7 +742,7 @@ public class NPCCommands {
|
|||
}
|
||||
|
||||
OfflinePlayer player = Bukkit.getOfflinePlayer(name);
|
||||
if (!player.hasPlayedBefore()) {
|
||||
if (!player.hasPlayedBefore() && !player.isOnline()) {
|
||||
NPCCommandSelector.Callback callback = new NPCCommandSelector.Callback() {
|
||||
@Override
|
||||
public void run(NPC followingNPC) throws CommandException {
|
||||
|
@ -1465,7 +1465,7 @@ public class NPCCommands {
|
|||
UUID uuid;
|
||||
if (args.getString(1).equalsIgnoreCase("SERVER")) {
|
||||
uuid = null;
|
||||
} else if ((p = Bukkit.getOfflinePlayer(args.getString(1))).hasPlayedBefore()) {
|
||||
} else if ((p = Bukkit.getOfflinePlayer(args.getString(1))).hasPlayedBefore() || p.isOnline()) {
|
||||
uuid = p.getUniqueId();
|
||||
} else {
|
||||
uuid = UUID.fromString(args.getString(1));
|
||||
|
|
Loading…
Reference in New Issue
Block a user