Major Release 1.0.0
v1.0.0 Release
Welcome to the initial release of PhantomBan, a Minecraft plugin introducing a unique "phantom ban" system. Allow players to join while restricting their actions to encourage positive behavior.
Code Summary
The provided source code for PhantomBan includes several classes and configuration files that work together to create the plugin's functionality:
-
PhantomBan.java: The main plugin class that initializes and manages various components such as event handlers, permission handlers, and online time tracking for phantom-banned players.
-
PhantomBanCommand.java: Handles the
/phantomban
commands, including adding/removing players from the blacklist, reloading the configuration, and displaying help messages. -
DynamicEventHandler.java: Registers and handles custom events based on the plugin's configuration. It restricts specific actions for phantom-banned players and sends configurable messages.
-
PlayerConnectionListener.java: Listens for player login, join, and quit events. It manages the phantom-banned players' status and tracks their online time to implement loyalty rewards.
-
DynamicPermissionHandler.java: Manages dynamic permissions for bypassing event restrictions for phantom-banned players. It registers and unregisters permissions based on the configured events.
-
config.yml: The main configuration file where server administrators can customize blacklist settings, loyalty rewards, event restrictions, messages, and more.
-
plugin.yml: Defines the plugin's basic information, commands, and permissions.
This release aims to enhance server moderation by introducing a flexible and dynamic way to manage player behavior.