From b2519ed63f24705d1c6e405ace781927c6ffee08 Mon Sep 17 00:00:00 2001 From: Geri Date: Mon, 29 Apr 2024 10:43:07 +0200 Subject: [PATCH] fix: ignore case for location --- build.gradle | 2 +- .../src/main/java/host/bloom/ab/common/commands/sub/Set.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index e9e7355..30459fa 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ java { ext { pluginName = 'BloomAB' - pluginVersion = '1.5.5' + pluginVersion = '1.5.6' pluginDescription = 'Anti bot protection for Bloom servers' pluginAuthor = 'Bloom' pluginWebsite = 'https://bloom.host' diff --git a/common/src/main/java/host/bloom/ab/common/commands/sub/Set.java b/common/src/main/java/host/bloom/ab/common/commands/sub/Set.java index bda43dd..8eea6b6 100644 --- a/common/src/main/java/host/bloom/ab/common/commands/sub/Set.java +++ b/common/src/main/java/host/bloom/ab/common/commands/sub/Set.java @@ -88,7 +88,7 @@ public void run(Sender sender, String[] args) { Location location; try { - location = Location.valueOf(args[2]); + location = Location.valueOf(args[2].toUpperCase()); } catch (IllegalArgumentException exception) { sender.sendMessage(Messages.invalid_location.getMessage("{location}", args[2])); return; @@ -135,4 +135,4 @@ public List getTabCompletion(String[] args) { return Collections.emptyList(); } -} \ No newline at end of file +}