From 2fed466f51ecc0e660dd1bf24cde4844c4df77ff Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 30 Oct 2019 19:47:51 -0400 Subject: [PATCH 1/3] Added perm check for /kit command. --- .../java/com/songoda/ultimatekits/commands/CommandKit.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/songoda/ultimatekits/commands/CommandKit.java b/src/main/java/com/songoda/ultimatekits/commands/CommandKit.java index 018478d..1205526 100644 --- a/src/main/java/com/songoda/ultimatekits/commands/CommandKit.java +++ b/src/main/java/com/songoda/ultimatekits/commands/CommandKit.java @@ -44,6 +44,12 @@ public class CommandKit extends AbstractCommand { if (!(sender instanceof Player)) return ReturnType.NEEDS_PLAYER; + + if (!kit.hasPermission((Player)sender)) { + instance.getLocale().getMessage("command.general.noperms").sendPrefixedMessage(sender); + return ReturnType.FAILURE; + } + kit.processGenericUse((Player) sender, false); return ReturnType.SUCCESS; } else if (args.length == 2) { From 92579e9fee86ad5445832763e42be1cf6f3c401d Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 30 Oct 2019 21:10:02 -0400 Subject: [PATCH 2/3] Fixed issue with the key file not loading correctly. --- src/main/java/com/songoda/ultimatekits/UltimateKits.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/songoda/ultimatekits/UltimateKits.java b/src/main/java/com/songoda/ultimatekits/UltimateKits.java index 0c5820b..875b8b5 100644 --- a/src/main/java/com/songoda/ultimatekits/UltimateKits.java +++ b/src/main/java/com/songoda/ultimatekits/UltimateKits.java @@ -108,6 +108,7 @@ public class UltimateKits extends SongodaPlugin { // load kits dataFile.load(); + keyFile.load(); checkKeyDefaults(); loadKits(); keyFile.saveChanges(); From 2eb92c5081c5ed5bf417a5a4a07387d262219c57 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 30 Oct 2019 21:10:17 -0400 Subject: [PATCH 3/3] version 2.4.7 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee3d5d3..8e03b28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "UltimateKits" path: "/builds/$CI_PROJECT_PATH" - version: "2.4.6" + version: "2.4.7" build: stage: build