Password icon

Password -----

Password for your server



Disclaimer: I just started learning, it's my first plugin ever. No need to judge too harshly, but an advice would be nice!
What does it do?
When a player joins the server, it prevents them from moving, chatting and executing commands until they enter the correct password in the chat. They have limited time and tries to do so before being kicked out (these functions can be turned off).
You can allow certain players (e.g. admins) to join without entering the password and certain commands (e.g. /register, /login) to be executed before the password has been entered by adding them to whitelists.
All messages (titles, subtitles, actionbar, kick messages) can be modified in the config.yml.

[​IMG]

[​IMG]

[​IMG]

[​IMG]

[​IMG]

Code (YAML):
password.admin - permission to all /pasword commands
Code (YAML):

title
: '§4§lPassword required'
subtitle
: '§fEnter our server password in chat'
wrongTitle
: '§4§lWrong password!'
wrongSubtitle
: '§fTries left : §e<tries>'
correctTitle
: '§a§lCorrect password!'
correctSubtitle
: '§fYou can move now'
password
: 'password'

# 0 turns off the limits
timeLimit
: 30
actionbarMessage
: '§fTime left : §e<time>s'
tooLongMessage
: '§cTook you too long!'
triesLimit
: 5
tooManyMessage
: '§cToo many failed tries!'

# Commands which CAN be executed before entering the password
# All not listed will be blocked
commandWhitelist
:
 - l
  - login
  - reg
  - register

# Players who can join without entering the password
playerWhitelist
:
 - Notch
  - Shefi27
 

Contact me on Discord (Shefi#1009) if there are any issues to be resolved or changes you want me to make.
Resource Information
Author:
----------
Total Downloads: 301
First Release: Jun 21, 2022
Last Update: Jul 6, 2022
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings