mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-19 21:10:17 -07:00
add notify + reject now throws
This commit is contained in:
parent
78bdc82434
commit
31cc74b336
1 changed files with 4 additions and 2 deletions
|
|
@ -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){
|
||||||
|
for(msg in message) {
|
||||||
player.sendMessage(colorize("%R$message"))
|
player.sendMessage(colorize("%R$message"))
|
||||||
|
}
|
||||||
throw IllegalStateException()
|
throw IllegalStateException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue