9
0
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:
Auxilor
2022-11-21 20:31:12 +00:00
parent 8623094188
commit 86fbda9c78
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}