Fixed /ecocrates resetwins

This commit is contained in:
Auxilor
2022-11-16 16:16:03 +00:00
parent 10ebcb5978
commit 8f5f9be88c

View File

@@ -32,7 +32,7 @@ class CommandResetWins(plugin: EcoPlugin) : Subcommand(
}
private fun resetWinsFor(sender: CommandSender, player: OfflinePlayer) {
if (!player.hasPlayedBefore()) {
if (!player.hasPlayedBefore() && !player.isOnline) {
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
return
}