Simplify on_command arguments

This commit is contained in:
Cube
2017-06-03 15:23:03 +03:00
parent 30fc810d61
commit 8e8e2d0991
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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() }