Skip to content

Commit

Permalink
Merge pull request #562 from Shynixn/bug/561
Browse files Browse the repository at this point in the history
Merge changes to Master --release
  • Loading branch information
Shynixn authored Dec 10, 2023
2 parents 2d8f21e + c532e70 commit 88c9471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "com.github.shynixn"
version = "9.0.2"
version = "9.0.3"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,16 @@ class PetBlocksCommandExecutor @Inject constructor(

val pets = petService.getPetsFromPlayer(player)

val petAmountPermission = Permission.DYN_AMOUNT.toString() + pets.size + 1
val petAmountPermission = "${Permission.DYN_AMOUNT.text}${pets.size + 1}"

if (!player.hasPermission(petAmountPermission)) {
sender.sendPluginMessage(String.format(PetBlocksLanguage.petAmountNotAllowed, (pets.size + 1).toString()))
return
}

if (!player.hasPermission(Permission.DYN_TEMPLATE.text + templateId)) {
val templatePermission = Permission.DYN_TEMPLATE.text + templateId

if (!player.hasPermission(templatePermission)) {
sender.sendPluginMessage(String.format(PetBlocksLanguage.templateNotAllowed, templateId))
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PetBlocks
version: 9.0.2
version: 9.0.3
author: Shynixn
main: com.github.shynixn.petblocks.PetBlocksPlugin
softdepend: [ PlaceholderAPI, HeadDatabase]
Expand Down

0 comments on commit 88c9471

Please sign in to comment.