Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae2c9680f3 | ||
|
|
ad3892fc90 | ||
|
|
658aeee2cc |
@@ -9,6 +9,7 @@ import com.willfp.ecopets.pets.hasPet
|
|||||||
import com.willfp.ecopets.pets.setPetLevel
|
import com.willfp.ecopets.pets.setPetLevel
|
||||||
import org.bukkit.Bukkit
|
import org.bukkit.Bukkit
|
||||||
import org.bukkit.command.CommandSender
|
import org.bukkit.command.CommandSender
|
||||||
|
import org.bukkit.entity.Player
|
||||||
import org.bukkit.util.StringUtil
|
import org.bukkit.util.StringUtil
|
||||||
|
|
||||||
class CommandGive(plugin: EcoPlugin) : Subcommand(plugin, "give", "ecopets.command.give", false) {
|
class CommandGive(plugin: EcoPlugin) : Subcommand(plugin, "give", "ecopets.command.give", false) {
|
||||||
@@ -28,7 +29,7 @@ class CommandGive(plugin: EcoPlugin) : Subcommand(plugin, "give", "ecopets.comma
|
|||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
val player = Bukkit.getOfflinePlayer(playerName)
|
val player = Bukkit.getOfflinePlayer(playerName)
|
||||||
|
|
||||||
if (!player.hasPlayedBefore()) {
|
if (!player.hasPlayedBefore() && player !is Player) {
|
||||||
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
|
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#libreforge-updater
|
#libreforge-updater
|
||||||
#Sat May 20 17:41:14 BST 2023
|
#Tue May 23 16:12:26 BST 2023
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
libreforge-version=4.14.2
|
libreforge-version=4.16.0
|
||||||
version=2.14.2
|
version=2.15.0
|
||||||
|
|||||||
Reference in New Issue
Block a user