diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/EcoBitsPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/EcoBitsPlugin.kt index 00933c3..213c5fe 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/EcoBitsPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/EcoBitsPlugin.kt @@ -1,6 +1,5 @@ package com.willfp.ecobits -import com.sun.tools.javac.jvm.ByteCodes.ret import com.willfp.eco.core.EcoPlugin import com.willfp.eco.core.command.impl.PluginCommand import com.willfp.eco.core.integrations.IntegrationLoader diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/commands/CommandPay.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/commands/CommandPay.kt index 7f8c3dc..cc44486 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/commands/CommandPay.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobits/commands/CommandPay.kt @@ -32,7 +32,7 @@ class CommandPay( @Suppress("DEPRECATION") val recipient = Bukkit.getOfflinePlayer(args[0]) - if (!recipient.hasPlayedBefore() && !recipient.isOnline) { + if ((!recipient.hasPlayedBefore() && !recipient.isOnline) || (recipient.uniqueId == player.uniqueId)) { player.sendMessage(plugin.langYml.getMessage("invalid-player")) return }