PlayerJoin - Command Execution on Player Join/Leave
PlayerJoin is a simple yet powerful plugin for Minecraft servers that allows you to automatically execute commands when a player joins or leaves the server. Whether you want to send welcome messages, grant permissions, or run custom scripts, PlayerJoin makes it easy and flexible.
Features:
- Execute one or more commands when a player joins or leaves the server.
- Supports PlaceholderAPI for dynamic command customization.
- Customizable commands via the plugin configuration file.
- Lightweight and optimized for performance.
Commands:
- /playerjoin [reload|help] - Main command for PlayerJoin.
- Aliases: /pj
- Permission: playerjoin.command
Subcommands:
- help - Displays the list of available commands.
- reload - Reloads the plugin configuration.
- Permission: playerjoin.reload
Permissions:
- playerjoin.command - Allows access to the main command. (default: true)
- playerjoin.onjoin - Allows executing commands on player join. (default: true)
- playerjoin.onleave - Allows executing commands on player leave.
- playerjoin.reload - Allows reloading the plugin configuration. (default: OP)
Configuration Example:
join-commands:
- "broadcast Welcome %player% to the server!"
- "give %player% minecraft:diamond 1"
leave-commands:
- "broadcast %player% has left the server!"
With PlaceholderAPI enabled, placeholders such as %player% will be dynamically replaced with the player’s name.
Soft Dependencies:
- PlaceholderAPI (optional) - Enhances command customization with placeholders.
How to Install:
- Download the latest version of PlayerJoin.
- Place the plugin file into your server's plugins directory.
- Restart or reload your server.
- Configure the plugin as needed in the config.yml file.
- Use /playerjoin reload to apply changes.
Support and Contributions:
For any issues or suggestions, feel free to reach out on the Spigot discussion thread. Contributions are welcome on GitHub!