Skip to content

Major Release 1.0.0

Compare
Choose a tag to compare
@Jochyoua Jochyoua released this 14 Feb 03:47
· 15 commits to main since this release
f5b6b1e

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:

  1. 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.

  2. PhantomBanCommand.java: Handles the /phantomban commands, including adding/removing players from the blacklist, reloading the configuration, and displaying help messages.

  3. 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.

  4. 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.

  5. DynamicPermissionHandler.java: Manages dynamic permissions for bypassing event restrictions for phantom-banned players. It registers and unregisters permissions based on the configured events.

  6. config.yml: The main configuration file where server administrators can customize blacklist settings, loyalty rewards, event restrictions, messages, and more.

  7. 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.