Exitplugin-撤离点插件
A practical exit point plugin with many basic exit functions and a high level of customizability.
Exitplugin-撤离点插件
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 <name> <type> Usage: /exitadmin create <name> <type> Description: Create an exit point; types: normal (regular exit), lever (lever-activated exit), drop (drop-activated exit) delete <name> Usage: /exitadmin delete <name> Description: Delete the specified exit point setlever <name> Usage: /exitadmin setlever <name> Description: Bind a lever to the exit point unsetlever <name> Usage: /exitadmin unsetlever <name> Description: Unbind the lever from the exit point setcountdown <name> <seconds> Usage: /exitadmin setcountdown <name> <seconds> Description: Set the exit countdown time addplayercommand <name> <command> Usage: /exitadmin addplayercommand <name> <command> Description: Add a player command (executed when a player exits) addadmincommand <name> <command> Usage: /exitadmin addadmincommand <name> <command> Description: Add an admin command (executed by the console when a player exits) addlevercommand <name> <command> Usage: /exitadmin addlevercommand <name> <command> Description: Add a lever command (executed when the lever is activated) setdisplayname <name> <displayname> Usage: /exitadmin setdisplayname <name> <displayname> Description: Set the display name of the exit point sethologram <name> Usage: /exitadmin sethologram <name> Description: Set the hologram location (current position) setpermission <name> <permission> Usage: /exitadmin setpermission <name> <permission> Description: Set the permission required to use the exit point (empty for no permission) list Usage: /exitadmin list Description: View all exit points info <name> Usage: /exitadmin info <name> 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 <name> Usage: /exitadmin activate <name> 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 <name> <type> <content> Usage: /exitadmin setmessage <name> <type> <content> Description: Set independent messages for the exit point listmessages <name> Usage: /exitadmin listmessages <name> Description: View the message list for the exit point resetmessages <name> Usage: /exitadmin resetmessages <name> Description: Reset the exit point's messages to default help Usage: /exitadmin help Description: Display help
/exit - Activate Lever Exit Point Usage: /exit <exit point name> 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.<exit point name> 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 <exit point name> lever Bind a lever: Stand next to the lever and enter: /exitadmin setlever <exit point name> Then right-click the lever. Set the countdown: /exitadmin setcountdown <exit point name> 60 Add commands: /exitadmin addplayercommand <exit point name> "say %player% has exited!" Activate: Right-click the lever or use /exit <main exit name> 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.