mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-28 05:45:10 -06:00
update ::item to actually default to one amount
This commit is contained in:
parent
be744e73b3
commit
cd14fbcc30
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class SpawnCommandSet : CommandSet(Privilege.ADMIN){
|
|||
return@define
|
||||
}
|
||||
val id = args[1].toIntOrNull() ?: return@define
|
||||
var amount = (args.getOrNull(2) ?: "1").toInt()
|
||||
var amount = args.getOrNull(2)?.toIntOrNull() ?: 1
|
||||
if (id > Cache.getItemDefinitionsSize()) {
|
||||
reject(player,"Item ID '$id' out of range.")
|
||||
return@define
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue