Remove command utilities plugin

This commit is contained in:
Major
2018-04-08 05:15:48 +01:00
parent 6e94f4c7d0
commit 275da1331b
8 changed files with 109 additions and 155 deletions
-3
View File
@@ -1,3 +0,0 @@
plugin {
name = "command_utilities"
}
-22
View File
@@ -1,22 +0,0 @@
package org.apollo.game.plugin.util.command
import org.apollo.game.model.entity.Player
/**
* Checks whether the amount of arguments provided is correct, sending the player the specified
* message if not.
*/
fun valid_arg_length(args: Array<String>, length: IntRange, player: Player, message: String): Boolean {
val valid = length.contains(args.size)
if (!valid) {
player.sendMessage(message)
}
return valid
}
/**
* Checks whether the amount of arguments provided is correct, sending the player the specified
* message if not.
*/
fun valid_arg_length(args: Array<String>, length: Int, player: Player, message: String)
= valid_arg_length(args, IntRange(length, length), player, message)