i find a bug. if in config
# Enable broadcasts for admins?
enable-broadcasts: false
error before enter:
[14:40:49] [Craft Scheduler Thread - 6/WARN]: Plugin UltimateServerProtector v21.0 generated an exception while executing task 146
java.lang.NullPointerException: null
at ru.overwrite.protect.bukkit.listeners.ConnectionListener.lambda$0(ConnectionListener.java:57) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) ~[patched_1.12.2.jar:git-Paper-1620]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.12.2.jar:git-Paper-1620]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
and after login:
[14:40:51] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'pas' in plugin UltimateServerProtector v21.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1492) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1297) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.2.jar:git-Paper-1620]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.NullPointerException
at ru.overwrite.protect.bukkit.PasswordHandler.correctPassword(PasswordHandler.java:145) ~[?:?]
at ru.overwrite.protect.bukkit.PasswordHandler.lambda$0(PasswordHandler.java:44) ~[?:?]
at ru.overwrite.protect.bukkit.PasswordHandler.checkPassword(PasswordHandler.java:57) ~[?:?]
at ru.overwrite.protect.bukkit.commands.PasCommand.onCommand(PasCommand.java:41) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.2.jar:git-Paper-1620]
... 15 more
my messages.yml is clear, my config:
#
#▀██▀ ▀█▀ ▀██ ▄ ██ ▄ ▄█▀▀▀▄█ ▀██▀▀█▄ ▄ ▄
# ██ █ ██ ▄██▄ ▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄ ▄██▄ ▄▄▄▄ ██▄▄ ▀ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄▄▄ ▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ██ ██ ▄▄▄ ▄▄ ▄▄▄ ▄██▄ ▄▄▄▄ ▄▄▄▄ ▄██▄ ▄▄▄ ▄▄▄ ▄▄
# ██ █ ██ ██ ██ ██ ██ ██ ▀▀ ▄██ ██ ▄█▄▄▄██ ▀▀███▄ ▄█▄▄▄██ ██▀ ▀▀ ▀█▄ █ ▄█▄▄▄██ ██▀ ▀▀ ██▄▄▄█▀ ██▀ ▀▀ ▄█ ▀█▄ ██ ▄█▄▄▄██ ▄█ ▀▀ ██ ▄█ ▀█▄ ██▀ ▀▀
# ██ █ ██ ██ ██ ██ ██ ██ ▄█▀ ██ ██ ██ ▄ ▀██ ██ ██ ▀█▄█ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
# ▀█▄▄▀ ▄██▄ ▀█▄▀ ▄██▄ ▄██ ██ ██▄ ▀█▄▄▀█▀ ▀█▄▀ ▀█▄▄▄▀ █▀▄▄▄▄█▀ ▀█▄▄▄▀ ▄██▄ ▀█ ▀█▄▄▄▀ ▄██▄ ▄██▄ ▄██▄ ▀█▄▄█▀ ▀█▄▀ ▀█▄▄▄▀ ▀█▄▄▄▀ ▀█▄▀ ▀█▄▄█▀ ▄██▄
#
# Main settings
main-settings:
# Available serializers:
# LEGACY - "&c&lExample &c&9Text".
# MINIMESSAGE - "<bold><red>Example</red> <blue>Text</blue></bold>". (
https://webui.adventure.kyori.net/)
serialiser: LEGACY
# Plugin prefix (hex - &#colorID)
prefix: '&e&l[&6&lProtection&e&l] '
# If false is specified, then you will need to write a password to the chat to enter the password
use-command: true
# Password command. (specified without / at the beginning) (by default - pas)
pas-command: 'pas'
# Whether to include commands for adding new players in the config
enable-admin-commands: false
# Please don't disable
enable-metrics: false
update-checker: true
# File configuration settings
file-settings:
# The name of the player data file. (default is data.yml)
data-file: 'data.yml'
# The name of the log file. (by default - log.yml)
log-file: 'log.yml'
# If this setting is enabled, then you will need to specify the full path to the file
# Example: root/server/plugins/UltimateServerProtector/data.yml
use-full-path: false
# data.yml path
data-file-path: '/root/server/plugins/UltimateServerProtector/'
# log.yml path
log-file-path: '/root/server/plugins/UltimateServerProtector/'
# Additional lock settings
blocking-settings:
# Whether to block item drop
block-item-drop: true
# Whether to block items pickup
block-item-pickup: true
# Whether to block tab completion (/version + TAB)
block-tab-complete: true
# Whether to make the player immortal while entering the password
block-damage: true
# Block or not the ability to harm mobs and players while entering a password
block-damaging-entity: true
# Whether to block the mob trigger on the player while entering the password
block-mobs-targeting: true
# Session settings
session-settings:
# Save player's IP
session: true
# Should player data be deleted after a while
session-time-enabled: true
# The time after which the data about the registered player will be deleted in seconds (the countdown starts from the player's exit)
session-time: 10800 #(3 hrs)
# Punishment settings
punish-settings:
# Should punishment be applied to a player who did not have time to enter the admin password for the number of attempts allotted to him
enable-attempts: true
# Maximum number of attempts to enter the admin password
max-attempts: 1
# Should punishment be applied to a player who did not have time to enter the admin password for a certain time
enable-time: true
# The time for which the player will have to enter the admin password in seconds
time: 60
# Setting of the boss bar (works only if the login time is enabled)
bossbar-settings:
# Whether to turn on the bossbar
enable-bossbar: false
# Boss bar color (PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE)
bar-color: RED
# Boss bar type (SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20)
bar-style: SEGMENTED_12
# Secure Settings
secure-settings:
# Should punishments be applied to operators that are not on the list
enable-op-whitelist: true
# Should punishments be applied to players with admin-permissions who are not in the config
enable-notadmin-punish: true
# Should punishments be applied to people who have prohibited permissions (default - false)
enable-permission-blacklist: false
# Whether to enable IPWhitelist for admins (default - false)
enable-ip-whitelist: true
# Whether to enable the ability to use the /usp command only from the console
only-console-usp: true
# Should plugin turn off the server if the plugin is disabled (default - false)
shutdown-on-disable: false
# Whether to allow a specific players to join the game without an admin password and notifications (disabled by default and unsafe!)
enable-excluded-players: false
# Message settingd
message-settings:
# Delay between auto-messages and titles in seconds
delay: 1
# Enable titles?
send-titles: true
# Enable broadcasts for admins?
enable-broadcasts: false
# Enable broadcasts for console?
enable-console-broadcasts: true
# Settings of sounds that will be played when entering commands/actions
sound-settings:
# Whether to turn on sounds on commands
enable-sounds: true
# Aviable sounds:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
# Sound when catching a player with admin-perms
on-capture: ENTITY_ITEM_BREAK
# Sound with an incorrect password
on-pas-fail: ENTITY_VILLAGER_NO
# Sound with the correct password
on-pas-correct: ENTITY_PLAYER_LEVELUP
# Volume from 0.0 to 1.0, where 1.0 is max.
volume: 0.75
# Pitch from 0.5 to 2.0, default: 1.0
pitch: 1.0
# Setting up the effects that are given before entering the password
effect-settings:
# Whether to enable the effect that will be given to the admin before entering the password
enable-effects: true
# What effects should be applied to the player (EFFECT:LEVEL)
effects:
- 'BLINDNESS:3'
# Log settings
logging-settings:
# Log successful/failed password entry attempts?
logging-pas: true
# Log admin joins?
logging-join: true
# Log plugin enable and disable?
logging-enable-disable: true
# Commands that will be applied to violators
commands:
# Commands that will be applied to those who have admin-permissions, but who are not in the config
not-in-config:
- 'kick %player% You are not admin!'
- 'deop %player%'
# Commands that will be applied to those who hava OP, but who are not in op-whitelist
not-in-opwhitelist:
- 'deop %player%'
#- 'ban %player% Вам нельзя иметь права оператора!'
# Commands that will be applied to those who have forbidden permissions (disabled by default)
have-blacklisted-perm:
- 'lp user %player% permission clear'
#- 'ban %player% Вам нельзя иметь такие права!'
# Commands that will be applied to those who logged in with admin-perms and are specified in the config, but have a non-admin IP
not-admin-ip:
- 'kick %player% Your IP is not in whitelist'
#- 'deop %player'
# Commands that will be applied to those who entered the pass incorrectly for the attempts allotted to him
failed-pass:
- 'ban %player% You entered the admin password incorrectly, your account is banned'
- 'deop %player%'
# Commands that will be applied to those who have not entered a pass in the allotted time
failed-time:
- 'ban %player% You did not have time to enter the admin password in the allotted time'
- 'deop %player%'
# Permissions for which the player will need to enter the admin password (Add as many as you need)
permissions:
- '*'
- 'bukkit.*'
- 'minecraft.*'
- 'essentials.*'
- 'cmi.*'
- 'worldguard.*'
- 'worldedit.*'
- 'fawe.*'
- 'permissions.*'
- 'luckperms.*'
- 'luckperms.editor'
- 'luckperms.applyedits'
- 'citizens.*'
- 'citizenscmd.*'
- 'znpcs.*'
- 'holograms.*'
- 'multiverse.*'
- 'coreprotect.*'
- 'mycommand.*'
- 'towny.*'
- 'dh.admin'
- 'ls.admin'
- 'authme.admin'
- 'protocol.admin'
- 'placeholderapi.admin'
- 'plugman.admin'
# Commands that can be entered before entering the admin password
allowed-commands:
- '/l'
- '/login'
- '/reg'
- '/register'
# Which players are allowed to have OP
op-whitelist:
- Firecs
# Which IP is admin-ip
# You can specify only part of the IP address to allow people with a dynamic IP to log in. For example 1.2.3.4 - 1.2.3.*
ip-whitelist:
- '127.0.0.1'
- '0.0.0.0'
# - 1.2.3.*
# Permissions that no one except the players from the excluded-players section will be able to have (by default - disabled)
blacklisted-perms:
- '*'
# Players who can join the server, without admin-password
excluded-players:
- test99999
- test123123