mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Simplify on_command arguments
This commit is contained in:
@@ -2,4 +2,4 @@ import org.apollo.game.model.entity.setting.PrivilegeLevel
|
||||
|
||||
// Opens the player's bank if they are an administrator.
|
||||
on_command("bank", PrivilegeLevel.ADMINISTRATOR)
|
||||
.then { player, _ -> player.openBank() }
|
||||
.then { player -> player.openBank() }
|
||||
Reference in New Issue
Block a user