mirror of
https://github.com/Auxilor/EcoBits.git
synced 2025-12-19 15:09:19 +00:00
Fixed /ecobits pay
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user