mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 19:51:36 +01:00
Merge branch 'development'
This commit is contained in:
commit
f7eb3b91f0
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateKits"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.4.6"
|
||||
version: "2.4.7"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -108,6 +108,7 @@ public class UltimateKits extends SongodaPlugin {
|
||||
|
||||
// load kits
|
||||
dataFile.load();
|
||||
keyFile.load();
|
||||
checkKeyDefaults();
|
||||
loadKits();
|
||||
keyFile.saveChanges();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user