Added the ability to delay command / group execution on join.
New option added to delay execution of commands and group assignment in x server ticks!
Code (YAML):
execution_delay
: 1
The default value is 1. You may add it to your config if you wanna adjust it.
This plugin is listening on the PlayerJoinEvent what gets triggered when a player joins the server. Basic commands can normally be applied directly without delay. Some commands (like Teleport) have to be processed after the player joined, therefore I give you the option to delay the execution in server ticks. If zero delay cause problems with some commands you can set it to 1 or 2 ticks for example.
Complete default config
Code (YAML):
### ofunnys BedrockPlayerManager for Floodgate ###
# This plugin is listening on the PlayerJoinEvent what gets triggered when a player joins a server.
# Basic commands can normally be applied directly without delay. Some commands (like Teleport)
# have to be processed after the player finally joined, therefore I give you the option to delay the execution
# in server ticks. If 0 delay cause proplems with some commands you can set it to 1 or 2 ticks for example.
execution_delay
: 1
#
# Command modul.
commands:
java
:
# If true -> the following commands will be executed when a java player joins.
enabled
: false
# Execute commands as server/console.
# The placeholder {player} will be replaced with the joining players name.
#
# One command per line or {} if empty
# Example:
# - say hi {player}
# - say How are you today?
# - give {player} dirt 1
server
:
{
}
# Execute commands as the joining player.
# The placeholder {player} will be replaced with the joining players name.
player
:
{
}
bedrock
:
# If true -> the following commands will be executed when a bedrock player joins.
enabled
: false
# Execute commands as server/console.
# The placeholder {player} will be replaced with the joining players name.
#
# One command per line or {} if empty
# Example:
# - say hi {player}
# - say How are you today?
# - give {player} dirt 1
server
:
{
}
# Execute commands as the joining player.
# The placeholder {player} will be replaced with the joining players name.
player
:
{
}
all
:
# If true -> the following commands will be executed for all player joins unrelated to the client
enabled
: false
# Execute commands as server/console.
# The placeholder {player} will be replaced with the joining players name.
#
# One command per line or {} if empty
# Example:
# - say hi {player}
# - say How are you today?
# - give {player} dirt 1
server
:
{
}
# Execute commands as the joining player.
# The placeholder {player} will be replaced with the joining players name.
player
:
{
}
# Permission modul.
permissions
:
# If true, the following permission group will be added / removed depending on the client version (Bedrock / Java) when a player joins / leaves.
enabled
: false
# Supported permission plugin.
# Only luckperms is supported at the moment. The option "plugin" has no effect at the moment. More permission plugins may follow in the future.
# You can use the command function for any unsupported permission plugin and apply perms/groups via command.
plugin
:
"luckperms"
# The permission group to add for bedrock users or to remove for java users.
# If a user joins via Floodgate, the group gets applied otherwise removed (if previously inherited by the joining / leaving user).
# Make sure to add the group in Luckperms first. I check if the group exist before it will be applied!
bedrock_group_name
:
"bedrock_user"
# Activate advanced debug messages.
debug
: false
# Do not touch the following lines!
version
: 1