From 762bb44577c77c01327b65469cd44c7086029421 Mon Sep 17 00:00:00 2001 From: Fulminazzo Date: Sun, 15 Dec 2024 22:35:21 +0100 Subject: [PATCH] Fixed sendMessage error for split string --- demo/src/main/resources/commands/GiveItem.groovy | 4 ++-- demo/src/main/resources/commands/GivePersistentItem.groovy | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/src/main/resources/commands/GiveItem.groovy b/demo/src/main/resources/commands/GiveItem.groovy index c3309228..d4c3b8db 100644 --- a/demo/src/main/resources/commands/GiveItem.groovy +++ b/demo/src/main/resources/commands/GiveItem.groovy @@ -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 ' + - ' ') + // Groovy does not like separations + sender.sendMessage('Usage: /giveitem ') sender.sendMessage('At least material is required!') } else sender.sendMessage('Console cannot execute this command!') diff --git a/demo/src/main/resources/commands/GivePersistentItem.groovy b/demo/src/main/resources/commands/GivePersistentItem.groovy index c81f24fa..defa9486 100644 --- a/demo/src/main/resources/commands/GivePersistentItem.groovy +++ b/demo/src/main/resources/commands/GivePersistentItem.groovy @@ -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 ' + - ' ') + // Groovy does not like separations + sender.sendMessage('Usage: /givepersistentitem ') sender.sendMessage('At least death-action, mobility and material are required!') } else sender.sendMessage('Console cannot execute this command!')