-
-
Notifications
You must be signed in to change notification settings - Fork 19
GH-1134 Add permissions allowing to ignore sleep count for night skip and phantom spawn #1135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces new permissions to ignore sleep counting for night skipping and to prevent phantom spawning. It also includes a significant refactoring across many command classes, replacing the @Context
annotation with the more specific @Sender
annotation from LiteCommands. Additionally, a small bug in the teleport command has been fixed.
The new features are well-implemented with new controllers and a custom event for phantom spawning, which is a good design choice. The refactoring is consistent and improves the codebase.
I've found a couple of minor issues: a permission mismatch in the documentation and a small improvement opportunity in a new event class. Please see my detailed comments below.
...nalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PlayerJoinSleepController.java
Outdated
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these annotations doing here? To be honest, I didn't feel like reviewing over 80 files, most of which were annotations. 51d1eb5#r164269516 - my review is here
Sorry, seems like I created a new branch based on another PR. Will fix |
…ntoms when holding appropriate permission
…eep/PlayerJoinSleepController.java Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
0236b32
to
0deac50
Compare
eternalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PhantomSpawnController.java
Show resolved
Hide resolved
eternalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PhantomSpawnController.java
Show resolved
Hide resolved
...nalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PlayerJoinSleepController.java
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomEventInitializer.java
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomEventWrapper.java
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Outdated
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Outdated
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Outdated
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Outdated
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Piotr Zych <[email protected]>
Co-authored-by: Piotr Zych <[email protected]>
Co-authored-by: Piotr Zych <[email protected]>
Co-authored-by: Piotr Zych <[email protected]>
Co-authored-by: Piotr Zych <[email protected]>
Co-authored-by: Piotr Zych <[email protected]>
Co-authored-by: Piotr Zych <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you tested it?
eternalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PhantomSpawnController.java
Outdated
Show resolved
Hide resolved
eternalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PhantomSpawnController.java
Outdated
Show resolved
Hide resolved
eternalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PhantomSpawnController.java
Outdated
Show resolved
Hide resolved
...nalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PlayerJoinSleepController.java
Outdated
Show resolved
Hide resolved
eternalcore-paper/src/main/java/com/eternalcode/paper/phantom/PhantomSpawnAttemptEvent.java
Show resolved
Hide resolved
…eep/PhantomSpawnController.java Co-authored-by: Norbert Dejlich <[email protected]>
…eep/PlayerJoinSleepController.java Co-authored-by: Norbert Dejlich <[email protected]>
…eep/PhantomSpawnController.java Co-authored-by: Norbert Dejlich <[email protected]>
eternalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PhantomSpawnController.java
Outdated
Show resolved
Hide resolved
...nalcore-core/src/main/java/com/eternalcode/core/feature/sleep/PlayerJoinSleepController.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Michał Wojtas <[email protected]>
Co-authored-by: Michał Wojtas <[email protected]>
Resolves #1134