I. Command List:
/exitadmin - Main Admin Command
Alias: /ea
Permission: exitplugin.admin
Subcommands:
setpoint1
Usage: /exitadmin setpoint1
Description: Set the first point of the area
setpoint2
Usage: /exitadmin setpoint2
Description: Set the second point of the area
create
Usage: /exitadmin create
Description: Create an exit point; types: normal (regular exit), lever (lever-activated exit), drop (drop-activated exit)
delete
Usage: /exitadmin delete
Description: Delete the specified exit point
setlever
Usage: /exitadmin setlever
Description: Bind a lever to the exit point
unsetlever
Usage: /exitadmin unsetlever
Description: Unbind the lever from the exit point
setcountdown
Usage: /exitadmin setcountdown
Description: Set the exit countdown time
addplayercommand
Usage: /exitadmin addplayercommand
Description: Add a player command (executed when a player exits)
addadmincommand
Usage: /exitadmin addadmincommand
Description: Add an admin command (executed by the console when a player exits)
addlevercommand
Usage: /exitadmin addlevercommand
Description: Add a lever command (executed when the lever is activated)
setdisplayname
Usage: /exitadmin setdisplayname
Description: Set the display name of the exit point
sethologram
Usage: /exitadmin sethologram
Description: Set the hologram location (current position)
setpermission
Usage: /exitadmin setpermission
Description: Set the permission required to use the exit point (empty for no permission)
list
Usage: /exitadmin list
Description: View all exit points
info
Usage: /exitadmin info
Description: View detailed information about an exit point
reload
Usage: /exitadmin reload
Description: Reload the configuration
fixconfig
Usage: /exitadmin fixconfig
Description: Fix the configuration
activate
Usage: /exitadmin activate
Description: Activate a lever exit point (via command)
update
Usage: /exitadmin update
Description: Manually check for plugin updates
version
Usage: /exitadmin version
Description: View plugin version information
setmessage
Usage: /exitadmin setmessage
Description: Set independent messages for the exit point
listmessages
Usage: /exitadmin listmessages
Description: View the message list for the exit point
resetmessages
Usage: /exitadmin resetmessages
Description: Reset the exit point's messages to default
help
Usage: /exitadmin help
Description: Display help
/exit - Activate Lever Exit Point
Usage: /exit
Permission: exitplugin.activate
Description: Activate the specified lever exit point via command (no lever required)
II. Permission Node List:
exitplugin.*
Description: All exit plugin permissions
Default: op (admin)
Subpermissions:
exitplugin.admin
exitplugin.activate
exitplugin.use.*
exitplugin.admin
Description: Exit plugin admin permission
Default: op (admin)
Description: Allows the use of all admin commands (/exitadmin)
exitplugin.activate
Description: Permission to activate lever exit points via command
Default: op (admin)
Description: Allows the use of the /exit command to activate lever exit points
exitplugin.use.*
Description: Permission to use all exit points
Default: true (all players)
Subpermissions:
exitplugin.use
exitplugin.use
Description: Basic permission to use exit points (each exit point may have independent permissions)
Default: true (all players)
Exit Point Independent Permissions (if require_permission is true in configuration)
Format: exitplugin.use.
Example: exitplugin.use.main_exit
Description: This permission node is automatically generated by the plugin to control access to specific exit points.
III. Notes:
When creating an exit point, you must first use setpoint1 and setpoint2 to define an area with two points.
Lever exit points require a lever to be bound (using the setlever command) for activation via lever, but they can also be activated via the /exit command.
Drop exit points require players to empty their main inventory (excluding hotbar, armor, and offhand) to start the countdown.
Message configuration allows independent settings for each exit point, which can be modified using the setmessage command.
Only version 1.1.1v and above "may" support other cores (e.g., Mohist) and game versions. Versions below 1.1.1v only support Paper core and game version 1.20.1.
IV. Example Workflow:
Set the area:
/exitadmin setpoint1
/exitadmin setpoint2
Create an exit point:
/exitadmin create
Bind a lever:
Stand next to the lever and enter: /exitadmin setlever
Then right-click the lever.
Set the countdown:
/exitadmin setcountdown
Add commands:
/exitadmin addplayercommand
Activate:
Right-click the lever or use /exit
This way, when a player is in the area and the lever is activated, the commands will execute after the countdown ends.
V. Supported Cores: Paper, Spigot, Folia, Purpur, Mohist
VI. Additional Notes: Everyone is welcome to freely distribute this plugin publicly, provided the author's copyright is not infringed.
