This resource is not plugin
Locker script is used to add security element to game.
Player chests are automatically locked after place. Noone can access it, except players which are added to whitelist of the player.
What is script offering?
- Advanced script command
- Customizability
- Lightweight
Requirements:
-
Skript
-
SkBee
Installation:
- Download the locker script
- Put script in file located /plugins/skript/scripts
Setting up:
- Open file locker.sk
- Edit values in "Options" section to your liking
- You can set if command name, world, if explosions should destroy locked chests, permissions, and all messages
Code (Text):
#-----------------------------------------------------------------------------------------------------
options:
#basic
command: locker #Name of command you will use
var_prefix: jp.script.locker #It's safe to leave this default
explosion: false #Set this true, if you want explosions break locked chest
world: "hardcore" #World where should script work
#permissions
permission_lock: skript.locker.lock #Permission for locking chest
permission_unlock: skript.locker.unlock #Permission for unlocking chest
permission_bypass: skript.locker.bypass #Permission for bypassing locker
permission_reload: skript.locker.reload #Permission for reloading script
#messages
unlock: "&a%arg-2% was added to whitelist" #Message when you add player to whitelist
removed: "&a%arg-2% was removed from whitelist" #Message when you remove player from whitelist
you_locked: "&aYou locked this chest" #Message when player lock his chest
already_own: "&cYou already own this chest" #Message when player already own targeted chest
belong: "&cThis chest belong to %tag "custom;owner" of nbt compound of event-block%" #Message if targeted chest is already taken
public: "&aThis chest is now public" #Message when unlocking targeted chest
reloaded: "&6Script was reloaded" #Message when script is being reloaded
#help
help1: ""
help2: ""
help3: "&6/locker lock &7- Used to set chest private"
help4: "&6/locker lock <player> &7- Used to remove access of player"
help5: "&6/locker unlock &7- Used to set chest public"
help6: "&6/locker unlock <player> &7- Used to give access for player"
help7: "&6/locker help &7- Shows this page"
help8: "&6/locker about &7- Shows info about author"
help9: ""
help10: ""
#command usage
#
#/<yourcommand> lock - Lock player's targeted chest
#/<yourcommand> lock <player> - Lock all chests for the player
#/<yourcommand> unlock - Make player's targeted chest public
#/<yourcommand> unlock <player> - Unlock all chests of player for player
#/<yourcommand> about - Show page about
#/<yourcommand> help - Show help page of script
#/<yourcommand> reload - Reload script
#
#-----------------------------------------------------------------------------------------------------
FAQ:
Can i edit the file?
Yes, script is written to be easily understood and edited
Can i order custom scripts?
Yes, you can contact me on my discord
Where to send ideas for improvements?
Join my discord and send the idea
Can i order one image, like is the one at top of page?
Yes, you can contact me on my discord
Don't use reviews to report bugs or give ideas