Skip to content

Commit

Permalink
Merge branch 'feat-fixes' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 15, 2024
2 parents ea9f90c + 762bb44 commit f48f3d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demo/src/main/resources/commands/GiveItem.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def run = { CommandSender sender, String label, String[] args ->
} catch (NumberFormatException ignored) {
// auto-generated code
} catch (IndexOutOfBoundsException ignored) {
sender.sendMessage('Usage: /giveitem <material> <amount> <durability> <name> ' +
'<lore> <enchantments> <item-flags> <unbreakable> <custom-model-data>')
// Groovy does not like separations
sender.sendMessage('Usage: /giveitem <material> <amount> <durability> <name> <lore> <enchantments> <item-flags> <unbreakable> <custom-model-data>')
sender.sendMessage('At least material is required!')
}
else sender.sendMessage('Console cannot execute this command!')
Expand Down
4 changes: 2 additions & 2 deletions demo/src/main/resources/commands/GivePersistentItem.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def run = { CommandSender sender, String label, String[] args ->
} catch (NumberFormatException ignored) {
// auto-generated code
} catch (IndexOutOfBoundsException ignored) {
sender.sendMessage('Usage: /givepersistentitem <death-action> <mobility> <material> <amount> ' +
'<durability> <name> <lore> <enchantments> <item-flags> <unbreakable> <custom-model-data>')
// Groovy does not like separations
sender.sendMessage('Usage: /givepersistentitem <death-action> <mobility> <material> <amount> <durability> <name> <lore> <enchantments> <item-flags> <unbreakable> <custom-model-data>')
sender.sendMessage('At least death-action, mobility and material are required!')
}
else sender.sendMessage('Console cannot execute this command!')
Expand Down

0 comments on commit f48f3d5

Please sign in to comment.