xAdminPIN Script on load: send "&8[&c&lxPIN&8] &7» &fEnabling xPIN script..." to console load yaml "plugins/xPIN/config.yml" as "plugins/xPIN/config.yml" load yaml "plugins/xPIN/database.yml" as "plugins/xPIN/database.yml" load yaml "plugins/xPIN/messages.yml" as "plugins/xPIN/messages.yml" wait 5 ticks if yaml "plugins/xPIN/config.yml" is empty: set the header of "plugins/xPIN/config.yml" to " __ ______ ___ _ _ ____ __ _" and " \ \/ / _ \_ _| \ | | / ___|___ _ __ / _(_) __ _" and " \ /| |_) | || \| | | | / _ \| '_ \| |_| |/ _` |" and " / \| __/| || |\ | | |__| (_) | | | | _| | (_| |" and " /_/\_\_| |___|_| \_| \____\___/|_| |_|_| |_|\__, |" and " |___/ " set yaml value "version" from "plugins/xPIN/config.yml" to "1.0" set yaml value "update-notification" from "plugins/xPIN/config.yml" to true set yaml value "min-number" from "plugins/xPIN/config.yml" to 4 set yaml value "max-number" from "plugins/xPIN/config.yml" to 8 set yaml value "pin-approve" from "plugins/xPIN/config.yml" to true set yaml value "multi-pins" from "plugins/xPIN/config.yml" to false set yaml value "pins-per-account" from "plugins/xPIN/config.yml" to 3 set yaml value "max-time" from "plugins/xPIN/config.yml" to 45 set yaml value "after-time-kick" from "plugins/xPIN/config.yml" to true set yaml value "max-attemps" from "plplugins/xPIN/config.yml" to true set yaml value "max-attemps-time-break" from "plugins/xPIN/config.yml" to 1200 set yaml value "max-attemps-information" from "plugins/xPIN/config.yml" to true set yaml value "pin-create-required" from "plugins/xPIN/config.yml" to true set yaml value "logging-in-void" from "plugins/xPIN/config.yml" to true set yaml value "blocked-move-sound" from "plugins/xPIN/config.yml" to true set yaml value "block-commands" from "plugins/xPIN/config.yml" to true set yaml value "pin-reset-only-console" from "plugins/xPIN/config.yml" to true set the comments of yaml node "version" from "plugins/xPIN/config.yml" to "Do not change this as it may cause errors!" set the comments of yaml node "update-notification" from "plugins/xPIN/config.yml" to "Should administrators be informed about new script versions?" set the comments of yaml node "min-number" from "plugins/xPIN/config.yml" to "The minimum number of digits needed to create a pin" set the comments of yaml node "max-number" from "plugins/xPIN/config.yml" to "The maximum number of digits needed to create a pin" set the comments of yaml node "pin-approve" from "plugins/xPIN/config.yml" to "Should admins approve their pin before creating it?" set the comments of yaml node "multi-pins" from "plugins/xPIN/config.yml" to "Can administrators have multiple pins created?" and "Not recommended option!" set the comments of yaml node "pins-per-account" from "plugins/xPIN/config.yml" to "Maximum number of pins per administrator account." and "multi-pins must be set to 'true' for this option to work!" set the comments of yaml node "max-time" from "plugins/xPIN/config.yml" to "Time to enter your PIN, in seconds!" set the comments of yaml node "after-time-kick" from "plugins/xPIN/config.yml" to "Should players be kicked out after the PIN entry time expires?" set the comments of yaml node "max-attemps" from "plugins/xPIN/config.yml" to "Maximum number of attempts to enter the PIN" set the comments of yaml node "max-attemps-information" from "plugins/xPIN/config.yml" to "Should other server administrators be notified when pin attempts are exceeded?" set the comments of yaml node "max-attemps-time-break" from "plugins/xPIN/config.yml" to "Time penalty given after exceeding the pin attempt limit, in seconds." and "Set to 0 to disable it!" set the comments of yaml node "pin-create-required" from "plugins/xPIN/config.yml" to "Does the administrator have to create a pin after first joining the server?" set the comments of yaml node "logging-in-void" from "plugins/xPIN/config.yml" to "Should entering the PIN be done in void?" save yaml "plugins/xPIN/config.yml" send "&8[&c&lxPIN&8] &7» &fCreated config file (config.yml)" to console if yaml "plugins/xPIN/messages.yml" is empty: set the header of "plugins/xPIN/messages.yml" to " __ __" and " | \/ | ___ ___ ___ __ _ __ _ ___ ___" and " | |\/| |/ _ \/ __/ __|/ _` |/ _` |/ _ \/ __|" and " | | | | __/\__ \__ \ (_| | (_| | __/\__ \" and " |_| |_|\___||___/___/\__,_|\__, |\___||___/" and " |___/" set yaml value "prefix" from "plugins/xPIN/messages.yml" to " &c&lPIN &8| &f" set yaml value "prefix-enabled" from "plugins/xPIN/messages.yml" to true set yaml value "prefix-only-in-one-line-messages" from "plugins/xPIN/messages.yml" to false set yaml value "prefix-in-empty-messages-lines" from "plugins/xPIN/messages.yml" to false set yaml list "pin-creation" from "plugins/xPIN/messages.yml" to "&r" and "&fᴡᴇʟᴄᴏᴍᴇ ᴅᴇᴀʀ ᴀᴅᴍɪɴ" and "&fᴛᴏ ᴄʀᴇᴀᴛᴇ ʏᴏᴜʀ ᴘɪɴ, ᴡʀɪᴛᴇ ɪᴛ ɪɴ ᴛʜᴇ ᴄʜᴀᴛ" set yaml list "pin-approving" from "plugins/xPIN/messages.yml" to "&r" and "&fᴛʜɪꜱ ɪꜱ ᴛʜᴇ ʟᴀꜱᴛ ꜱᴛᴇᴘ ᴏꜰ ᴄʀᴇᴀᴛɪɴɢ ᴀ ᴘɪɴ" and "&fᴀᴄᴄᴇᴘᴛ ʏᴏᴜʀ ᴘɪɴ ʙʏ ᴛʏᴘɪɴɢ /ᴘɪɴ ᴀᴘᴘʀᴏᴠᴇ ɪɴ ᴛʜᴇ ᴄʜᴀᴛ" and "&fʏᴏᴜʀ ᴘɪɴ [pin]" set yaml value "only-numbers-title" from "plugins/xPIN/messages.yml" to "&8« &c&lᴇʀʀᴏʀ &8» ; &fᴄʀᴇᴀᴛᴇ ᴀ ᴘɪɴ ᴡɪᴛʜ ɴᴜᴍʙᴇʀꜱ ᴏɴʟʏ" set yaml value "too-few-number" from "plugins/xPIN/messages.yml" to "&8« &c&lᴇʀʀᴏʀ &8» ; &fᴘɪɴ ᴍᴜꜱᴛ ᴄᴏɴᴛᴀɪɴ ᴀᴛ ʟᴇᴀꜱᴛ [min] ᴅɪɢɪᴛꜱ" set yaml value "too-many-numbers" from "plugins/xPIN/messages.yml" to "&8« &c&lᴇʀʀᴏʀ &8» ; &fᴘɪɴ ᴄᴀɴɴᴏᴛ ᴄᴏɴᴛᴀɪɴ ᴍᴏʀᴇ ɴᴜᴍʙᴇʀꜱ ᴛʜᴀɴ [max]" set yaml list "pins-list-format" from "plugins/xPIN/messages.yml" to "&r" and "&fPIN #[number] &8| &7[date] &8| &7[pin] &8| &c[delete]" set yaml list "join-message" from "plugins/xPIN/messages.yml" to "&r" and "&c&lᴘɪɴ &8&l| &7✦" and "&fᴇɴᴛᴇʀ ʏᴏᴜʀ ᴘɪɴ ɪɴ ᴛʜᴇ ᴄʜᴀᴛ ᴛᴏ ꜱᴛᴀʀᴛ ᴘʟᴀʏɪɴɢ" and "&r" set yaml value "join-message" from "plugins/xPIN/messages.yml" to "&8« &c&lᴘɪɴ &8» ; &fᴛʏᴘᴇ ʏᴏᴜʀ ᴘɪɴ ɪɴ ᴄʜᴀᴛ" set yaml value "blocked-move" from "plugins/xPIN/messages.yml" to "&8« &c&lᴘɪɴ &8» ; &fʏᴏᴜ ᴍᴜꜱɴ'ᴛ ᴍᴏᴠᴇ ʙᴇꜰᴏʀᴇ ᴇɴᴛᴇʀɪɴɢ ᴘɪɴ" set yaml list "update" from "plugins/xPIN/messages.yml" to "&r" and "&c&lᴘɪɴ" and "&fᴀ ɴᴇᴡ ᴠᴇʀꜱɪᴏɴ ᴏꜰ ᴛʜᴇ ꜱᴄʀɪᴘᴛ ʜᴀꜱ ʙᴇᴇɴ ʀᴇʟᴇᴀꜱᴇᴅ," and "&fʏᴏᴜ ᴄᴀɴ ᴅᴏᴡɴʟᴏᴀᴅ ɪᴛ ᴏɴ ᴏᴜʀ ᴅɪꜱᴄᴏʀᴅ!" set yaml list "cleared-database" from "plugins/xPIN/messages.yml" to "&r" and "&c&lᴘɪɴ" and "&fꜱᴜᴄᴄᴇꜱꜰᴜʟʏ ᴄʟᴇᴀʀᴇᴅ ᴘɪɴꜱ ᴅᴀᴛᴀʙᴀꜱᴇ," and "&fᴇᴠᴇʀʏᴏɴᴇ ʟᴏꜱᴛ ᴛʜᴇɪʀ ᴘɪɴ" set yaml list "accept-action" from "plugins/xPIN/messages.yml" to "&r" and "&c&lᴘɪɴ" and "&fʏᴏᴜ ᴍᴜꜱᴛ ᴄᴏɴꜰɪʀᴍ ʏᴏᴜʀ ᴀᴄᴛɪᴏɴ, ᴛʏᴘᴇ /ᴘɪɴꜱ ᴄᴏɴꜰɪʀᴍ" set yaml list "reset-pin" from "plugins/xPIN/messages.yml" to "&r" and "&fᴘʟᴀʏᴇʀ [name] ᴘɪɴ ꜱᴜᴄᴄᴇꜱꜱꜰᴜʟʟʏ ʀᴇꜱᴇᴛ!" set yaml list "no-permission" from "plugins/xPIN/messages.yml" to "&r" and "&c&lᴘɪɴ" and "&fʏᴏᴜ ᴅᴏ ɴᴏᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪꜱꜱɪᴏɴ [permission]" set yaml list "kick-message-max-attemps" from "plugins/xPIN/messages.yml" to "&c&lʏᴏᴜ ʜᴀᴠᴇ ʙᴇᴇᴅ ᴋɪᴄᴋᴇᴅ" and "&r" and "&8=====================" and "&r" and "&7ᴘɪɴ ᴇɴᴛʀʏ ᴀᴛᴛᴇᴍᴘᴛ ʟɪᴍɪᴛ ʜᴀꜱ ʙᴇᴇɴ ʀᴇᴀᴄʜᴇᴅ" and "&r" and "&8=====================" set yaml list "kick-message-time" from "plugins/xPIN/messages.yml" to "&c&lʏᴏᴜ ʜᴀᴠᴇ ʙᴇᴇᴅ ᴋɪᴄᴋᴇᴅ" and "&r" and "&8=====================" and "&r" and "&7ᴛʜᴇ ᴛɪᴍᴇ ꜰᴏʀ ᴇɴᴛᴇʀɪɴɢ ᴛʜᴇ ᴘɪɴ ʜᴀꜱ ᴇxᴘɪʀᴇᴅ" and "&r" and "&8=====================" save yaml "plugins/xPIN/messages.yml" send "&8[&c&lxPIN&8] &7» &fCreated messages file (config.yml)" to console