Fixed new players not being parsed by the give command
This commit is contained in:
@@ -27,7 +27,7 @@ class CommandGive(plugin: EcoPlugin) : Subcommand(
|
||||
@Suppress("DEPRECATION")
|
||||
val player = Bukkit.getOfflinePlayer(args[0])
|
||||
|
||||
if (!player.hasPlayedBefore()) {
|
||||
if (!player.hasPlayedBefore() && !player.isOnline) {
|
||||
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user