forked from 2009Scape/Server
::rolldrops admin/testing command now clears container between invocations
This commit is contained in:
parent
5cfe44d5cd
commit
385a04a5b9
1 changed files with 2 additions and 0 deletions
|
|
@ -122,6 +122,8 @@ class DevelopmentCommandSet : CommandSet(Privilege.ADMIN) {
|
|||
val npcId = args[1].toInt()
|
||||
val amount = args[2].toInt()
|
||||
|
||||
container.clear()
|
||||
|
||||
for(i in 0..amount)
|
||||
{
|
||||
val drops = NPCDefinition.forId(npcId).dropTables.table.roll()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue