Compare commits

...

3 Commits

Author SHA1 Message Date
Auxilor
ae2c9680f3 libreforge-updater 2023-05-23 16:12:26 +01:00
Auxilor
ad3892fc90 Updated to 2.14.3 2023-05-22 15:14:06 +01:00
Auxilor
658aeee2cc Fixed /ecopets give 2023-05-22 15:06:37 +01:00
2 changed files with 5 additions and 4 deletions

View File

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

View File

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