Skip to content

Commit

Permalink
Add kotlinlib depend
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyDertan committed Jun 24, 2019
1 parent 4ac0ad0 commit 1bd2327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/Sergey_Dertan/SVault/command/VaultCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ author: Sergey_Dertan
website: https://vk.com/sergey_dertan
load: STARTUP
prefix: '§eSVault§f'
depend:
- KotlinLib
permissions:
svault.*:
default: false
Expand Down

0 comments on commit 1bd2327

Please sign in to comment.