Sueta

PinPlease

2.9.1

Players and staff can set gui pin codes on doors, trap doors, and gates, furnaces, and all chests!

·Plugin

PLEASE REVIEW & MAKE ANY POSSIBLE RECOMMENDATIONS IN DISCUSSION PAGE!


Purpose:
This plugin allows players and staff to lock doors with a pin code. Feel free to share it with whomever you choose!

Functions:

  • 4 different pad sizes: 9, 20, 35, 54
  • Unlimited theoretical pin size
  • Admin overrides

Known Bugs:

  • None

Explanation

How To Create A Pin

You can add a pin to any door, trap door, furnace, chest, or gate
1.png
The command to create a pin on a door that you placed( YOU MUST HAVE PLACED THE BLOCK UNLESS YOU HAVE "PinPlease.admin ") is /pp create #,#,#,#,#,#...
Note: Give a player the "PinPlease.size.# " permission node to limit the size of the pins that they can set.
2.png
Your pin can be ANY length as long as it fits in the chat bar.( YOU CAN TECHNICALLY MAKE LONGER IF YOU CHANGE IT DIRECTLY FROM THE pins.yml CONFIG). There are 4 possible pin pad sizes, 9, 20, 35, 54. They will automatically appear based upon how big the numbers are that you use in your pin. In this example I used only numbers <= 9 so the 9 pinned pad appeared.
4.png
In this example I use 21,1,5,15
5.png
Because 21 is bigger than 20, the size became the 35 pinned pad.
6.png 7.png
In the next example I use 1,19,4
8.png
19 is smaller than 20 and bigger than 9 so it used the 20 pinned pad.
9.png
A final example showing the 54 pinned pad.
10.png 11.png

Requirements:

  • Java 8, NOT JAVA 7.

Commands:

  • /pp create #,#,# - Creates a pin on the door,trap door, furnace, chest, or gate that YOU PLACED(Unless you have "PinPlease.admin") and are looking at.

Permission: PinPlease.create

  • /pp remove - Removes the pin from the door,trap door, furnace, chest, or gate that YOU PLACED(Unless you have "PinPlease.admin") and are looking at.

Permission: PinPlease.remove

  • /pp showpin - Shows the pin to ANY door, trap door, furnace, chest, or gate that you are looking at.

Permission: PinPlease.showpin

Permissions:
= PinPlease.admin - Gives all commands and ability to override "if you placed it" filter. (Means you can create/remove any pin even if you didn't place the door, trap door, furnace, chest, or gate.
= PinPlease.create - Set pin
= PinPlease.remove - Remove pin
= PinPlease.showpin - Show pin
= PinPlease.size.# - Give this to players/groups to limit the size of their pin

Videos:
Numero Uno - Minecraft Plugin Tutorials
YouTube

Notes:

  • The configuration is somewhat in depth and can (possibly) be confusing. If you have any questions just let me know and I will help you out as fast as I can!

Config:

##########################################################
#                    Pin Please Config                   #
##########################################################

Prefix: (PinPlease)
#This is the prefix before all messages from the plugin.

Primary_Format: '&b&l'
#This would make plugin name bold and blue. Make sure you put it all in proper order!

Secondary_Format: '&c'
#This would make help messages red.

Time_To_Keep_Open: 10
#This is in ticks. There are 20 ticks in 1 second. Currently it will open for 1/2 a
#second. To keep it open for 1 second, for example, you would put 20. To convert seconds
#to ticks do <(seconds) * 20 = (ticks)>

Staff_Master_Code: "2,4,3,1,1,2,3,4,2,3,5"
#Code that staff can do to open any locked block. Don't let players know this!
#Numbers can be from 1 -> 54 but if the pin panel is smaller than any of the numbers,
#they can't be clicked. Keep this in mind.

##########################################################
#                      Permissions                       #
##########################################################

# PinPlease.admin
#- Gives permissions to do ALL commands and ALL overrides

# PinPlease.create
#- Gives player permission to create THEIR pins

# PinPlease.remove
#- Gives player permission to remove THEIR pins.

# PinPlease.showpin
#- Gives player permission to see ANY pin.

Donations: Although this plugin isn't very big, I don't charge for very much so if you wish to support me _- https://paypal.me/AaronSkeels -_

Similar projects

Plugin →