-
Notifications
You must be signed in to change notification settings - Fork 6
3.6.0 #57
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
Open
EarthCow
wants to merge
18
commits into
master
Choose a base branch
from
dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
3.6.0 #57
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c414705
Adds pv use/see level methods to CorePlayer
EarthCow 18fb581
Adds config NotifyVanishEnabledPlayersOnSilentMove
EarthCow 82fc46f
Updates PV vanish levels on join
EarthCow 44a1103
Silent notify vanish user impl
EarthCow f4681e2
Prevents triggerPlayer from being null
EarthCow b5bba78
Prevent extra List & extra loop
EarthCow 713dc6b
Adds config NotifyRespectVanishLevels
EarthCow b8df48e
Impls NotifyRespectVanishLevels as outlined in 713dc6b
EarthCow 70dda01
Updates outdated comment in CorePlayerListener
EarthCow 7908acb
Bumps config version
EarthCow 66a401a
Merge pull request #56 from RagingTech/feat/silent-notify-vanish-users
EarthCow 8f254a4
Makes CorePlayer an abstract class & uses lombok
EarthCow eea966f
Merge pull request #58 from RagingTech/improvement/refactor-coreplayer
EarthCow 9a94b17
Brings Auidence field to CorePlayer
EarthCow 2d127ed
Corrects silent vanish level logic
EarthCow 26406c4
Use proper parse target for sendSilentConsoleMessage
EarthCow ed385c1
Adds several test files
EarthCow 5e7c95a
Merge pull request #59 from RagingTech/improvement/various-tests
EarthCow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 23 additions & 25 deletions
48
src/main/java/xyz/earthcow/networkjoinmessages/common/abstraction/CorePlayer.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,34 @@ | ||
| package xyz.earthcow.networkjoinmessages.common.abstraction; | ||
|
|
||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import net.kyori.adventure.audience.Audience; | ||
| import org.jetbrains.annotations.NotNull; | ||
| import org.jetbrains.annotations.Nullable; | ||
|
|
||
| import java.util.UUID; | ||
|
|
||
| public interface CorePlayer extends CoreCommandSender { | ||
| @Getter @Setter | ||
| public abstract class CorePlayer implements CoreCommandSender { | ||
| // Fields | ||
| private CoreBackendServer lastKnownConnectedServer; | ||
| private boolean disconnecting = false; | ||
| private String cachedLeaveMessage; | ||
| private Audience audience; | ||
| private boolean premiumVanishHidden = false; | ||
| private int premiumVanishUseLevel = 0; | ||
| private int premiumVanishSeeLevel = 0; | ||
|
|
||
| public CorePlayer(CoreBackendServer lastKnownConnectedServer, Audience audience) { | ||
| this.lastKnownConnectedServer = lastKnownConnectedServer; | ||
| this.audience = audience; | ||
| } | ||
|
|
||
| // Abstract | ||
| @NotNull | ||
| UUID getUniqueId(); | ||
|
|
||
| int getConnectionIdentity(); | ||
|
|
||
| @Nullable | ||
| CoreBackendServer getCurrentServer(); | ||
|
|
||
| public abstract UUID getUniqueId(); | ||
| public abstract int getConnectionIdentity(); | ||
| @Nullable | ||
| CoreBackendServer getLastKnownConnectedServer(); | ||
|
|
||
| void setLastKnownConnectedServer(CoreBackendServer server); | ||
|
|
||
| @NotNull | ||
| Audience getAudience(); | ||
|
|
||
| boolean isInLimbo(); | ||
|
|
||
| String getCachedLeaveMessage(); | ||
| void setCachedLeaveMessage(String cachedLeaveMessage); | ||
|
|
||
| boolean isDisconnecting(); | ||
| void setDisconnecting(); | ||
|
|
||
| boolean getPremiumVanishHidden(); | ||
| void setPremiumVanishHidden(boolean premiumVanishHidden); | ||
| public abstract CoreBackendServer getCurrentServer(); | ||
| public abstract boolean isInLimbo(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.