Open PrinzPizza42 opened 3 weeks ago
The pull request introduces multiple changes across various files in the deathMinigames
plugin. Key updates include the addition of new classes for managing player data, game commands, and event listeners. The CODEOWNERS
file is corrected and updated with a new owner. The build.gradle.kts
file is modified to update the plugin version and add new dependencies. Additionally, new translation entries are added for localization, enhancing user experience. Overall, the changes improve functionality, introduce new features, and ensure better management of player interactions and game settings.
File | Change Summary |
---|---|
CODEOWNERS |
Corrected typo from "Deafult" to "Default" and added owner @PrinzPizza42 for specified path. |
src/main/java/de/j/deathMinigames/commands/GameCMD.java |
Added GameCMD class with methods for handling game commands, including difficulty adjustments. |
src/main/java/de/j/deathMinigames/listeners/DeathListener.java |
Added DeathListener class to manage player death events and inventory handling. |
src/main/java/de/j/deathMinigames/listeners/InventoryListener.java |
Enhanced inventory interaction handling with new methods for GUI management. |
src/main/java/de/j/deathMinigames/listeners/JoinListener.java |
Implemented JoinListener to manage player join events and initialization. |
src/main/java/de/j/deathMinigames/listeners/RespawnListener.java |
Updated RespawnListener for managing player respawn events and decision timers. |
src/main/java/de/j/deathMinigames/minigames/Difficulty.java |
Created Difficulty class for managing game difficulty settings. |
src/main/java/de/j/deathMinigames/minigames/JumpAndRun.java |
Implemented JumpAndRun minigame class with game lifecycle and player interaction logic. |
src/main/java/de/j/deathMinigames/minigames/Minigame.java |
Updated Minigame class to manage various minigame functionalities and player interactions. |
src/main/java/de/j/deathMinigames/settings/GUI.java |
Introduced GUI class for managing inventory GUI interactions. |
src/main/java/de/j/deathMinigames/settings/MainMenu.java |
Added MainMenu class for customizable in-game settings menu. |
src/main/resources/translations.json |
Added multiple new translation entries for improved localization. |
build.gradle.kts |
Updated pluginVersion and added new library dependencies for PostgreSQL support. |
docker-compose.yml |
Introduced PostgreSQL service configuration for persistent database storage. |
src/main/java/de/j/deathMinigames/database/Database.java |
Created Database class for managing database connections and operations. |
src/main/java/de/j/deathMinigames/database/PlayerDataDatabase.java |
Added PlayerDataDatabase class for managing player data in a database context. |
src/main/java/de/j/deathMinigames/dmUtil/DmUtil.java |
Introduced DmUtil class for utility functions related to player inventory management. |
src/main/java/de/j/deathMinigames/listeners/LeaveListener.java |
Added LeaveListener class to handle player leave events. |
src/main/java/de/j/deathMinigames/main/Config.java |
Implemented Config class for managing plugin configuration settings. |
src/main/java/de/j/deathMinigames/main/HandlePlayers.java |
Introduced HandlePlayers class for managing known players and their data. |
src/main/java/de/j/deathMinigames/main/Introduction.java |
Added Introduction class for managing player introductions and teleportation. |
src/main/java/de/j/deathMinigames/main/PlayerData.java |
Created PlayerData class for managing player attributes and synchronization with the database. |
src/main/java/de/j/deathMinigames/main/PlayerMinigameStatus.java |
Introduced PlayerMinigameStatus enum to represent various player states in minigames. |
CODEOWNERS
file, similar to the main PR which updates the same file by correcting a typo and adding a new owner.🐰 "In the land of code, where bunnies play,
New commands and features brighten the day.
With settings and menus, oh what a sight,
Jump and run, let’s code through the night!
So hop along, let's make it grand,
For every player, a joyful land!" 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
CodeFactor says some of my methods are to complex, i dont think thats such a big issue and i also dont think i will change that, because it would be really complex and would take a long time. If it is ok with you i would just wait for your review and ignore the check from CodeFactor.
With this PR the version should be bumped to 1.15
I was testing the plugin right now, and I still got some errors, I will fix them and fix the issues pointed out by the AI tomorrow, as I have time then.
After fixing all the issues, I will rebase and merge the branch
I will rewrite a lot of the player handling logic today, as I am not satisfied with the current implementation of it. Though, it could take more than one day.
You don‘t have to worry about thread safety as much as @coderabbitai wants you to. The plugins runs in a single thread on the mc server
[!TIP] For best results, initiate chat on the files or code changes.
Understood, @JonasFranke. I will keep that in mind for future reviews.
(_/) (•.•) (/ ) ?
Describe your changes
...
Notes for testing your change
...
Summary by CodeRabbit
Release Notes
New Features
/game settings
for server operators to configure various plugin parameters.Bug Fixes
CODEOWNERS
file.Documentation
Database Enhancements