Denizen Virtual Chest

Share scripts you wrote for Denizen-Bukkit here!
Post Reply
User avatar
zozer_firehood
User
User
Posts: 9
Joined: August 6th, 2016, 6:50 pm

Denizen Virtual Chest

Post by zozer_firehood » June 12th, 2020, 10:02 am

Access a person virtual chest at anytime with a single command.
In order to access the DVChest, a player needs the permission

Code: Select all

dvchest
This can be given manually or via the command

Code: Select all

/dvchest add [player]
The dvchest add command requires a user to have the permission

Code: Select all

dvchest.admin
By default the virtual chest is a single line. This can be changed by a user with dvchest.admin via the command

Code: Select all

/dvchest addLimit [player]
This command will increase the line count by 1 (up to a max of 6)

Just drop in this script and you can start using it right away
https://one.denizenscript.com/haste/70835

Want tab completion for this command? Check out
viewtopic.php?f=9&t=299

update: included safety in passing what the player type to the tab complete script
Last edited by zozer_firehood on June 15th, 2020, 8:51 am, edited 1 time in total.
I was once a programmer, but then I took a NullPointerException to the knee...

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 299
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: Denizen Virtual Chest

Post by mcmonkey » June 12th, 2020, 8:05 pm

<proc[TabComplete].context[dvchest|DVChestTab|<context.raw_args>]> is liable to bork if the user types a | symbol. Probably make use of the list.include_single tag.
Denizen lead developer. On Discord as mcmonkey#6666.

User avatar
zozer_firehood
User
User
Posts: 9
Joined: August 6th, 2016, 6:50 pm

Re: Denizen Virtual Chest

Post by zozer_firehood » June 15th, 2020, 8:51 am

Fixed, thank you o7
I was once a programmer, but then I took a NullPointerException to the knee...

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests