Skip to content
MrDiamondDog edited this page Jun 26, 2022 · 8 revisions

Security Terminal

Allows you to protect the blocks in an area from getting mined by unauthorized users.

Methods

isEnabled():boolean
-- returns the status of the block
addUser(String:Password, String:Username):boolean
-- adds the Minecraft User as an allowed user.
delUser(String:Username):boolean 
-- removes the Minecraft User as an allowed user.
setPassword(String:password):boolean 
-- sets the block password, required to enable/disable and other actions
toggleParticle():boolean 
-- switches particles to show the corners of the protected area
setRange(Int:range):boolean -- valid values [1 - 4]
-- sets the range of the protction area (range * 8 Blocks)
-- increasing range increases energy cost.
enable(String:password):boolean 
-- enables the block, requires the correct password
disable(String:password):boolean 
-- disables the block, requires the correct password
getAllowedUsers(String:password):boolean 
-- returns a comma delimited string of current allowed users.