From 1bd23272635263c06b9016e40aba94f60e03d21f Mon Sep 17 00:00:00 2001 From: SergeyDertan Date: Mon, 24 Jun 2019 20:48:01 +0300 Subject: [PATCH] Add kotlinlib depend --- src/main/kotlin/Sergey_Dertan/SVault/command/VaultCommand.kt | 3 +-- src/main/resources/plugin.yml | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/Sergey_Dertan/SVault/command/VaultCommand.kt b/src/main/kotlin/Sergey_Dertan/SVault/command/VaultCommand.kt index f77ef1c..b7ff35c 100644 --- a/src/main/kotlin/Sergey_Dertan/SVault/command/VaultCommand.kt +++ b/src/main/kotlin/Sergey_Dertan/SVault/command/VaultCommand.kt @@ -6,7 +6,6 @@ import cn.nukkit.command.Command import cn.nukkit.command.CommandSender import cn.nukkit.command.PluginIdentifiableCommand import cn.nukkit.command.data.CommandParameter -import java.util.* object VaultCommand : Command("vault"), PluginIdentifiableCommand { @@ -33,7 +32,7 @@ object VaultCommand : Command("vault"), PluginIdentifiableCommand { this.messenger.sendMessage(sender, "command.$name.command-not-found", "@name", args[0]) return false } - val newArgs = if (args.size == 1) arrayOf() else Arrays.copyOfRange(args, 1, args.size) + val newArgs = if (args.size == 1) arrayOf() else args.copyOfRange(1, args.size) cmd.execute(sender, cmd.name, newArgs) return false } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index db63c0e..9f26016 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -6,6 +6,8 @@ author: Sergey_Dertan website: https://vk.com/sergey_dertan load: STARTUP prefix: '§eSVault§f' +depend: + - KotlinLib permissions: svault.*: default: false