add notify + reject now throws
This commit is contained in:
@@ -30,8 +30,10 @@ abstract class CommandSet(val defaultPrivilege: Command.Privilege) : Plugin<Any?
|
|||||||
* rather than just player.sendMessage for anything that involves informing the player
|
* rather than just player.sendMessage for anything that involves informing the player
|
||||||
* of proper usage or invalid syntax. Throws an IllegalStateException and ends command execution immediately.
|
* of proper usage or invalid syntax. Throws an IllegalStateException and ends command execution immediately.
|
||||||
*/
|
*/
|
||||||
fun reject(player: Player, message: String){
|
fun reject(player: Player, vararg message: String){
|
||||||
player.sendMessage(colorize("%R$message"))
|
for(msg in message) {
|
||||||
|
player.sendMessage(colorize("%R$message"))
|
||||||
|
}
|
||||||
throw IllegalStateException()
|
throw IllegalStateException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user