Skip to content
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

Feature: Last server #2046

Merged
merged 19 commits into from
Aug 31, 2024
Merged

Conversation

j10a1n15
Copy link
Contributor

@j10a1n15 j10a1n15 commented Jun 9, 2024

What

This Pull Request adds a feature, which reminds the player if he joins a server he joined previously (customisable time).

Images

image

Changelog New Features

  • Added a notification when you join a server you have joined previously. - j10a1n15

Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
@hannibal002 hannibal002 added this to the Version 0.27 milestone Jun 9, 2024
@github-actions github-actions bot added the Merge Conflicts There are open merge conflicts with the beta branch. label Jun 16, 2024
Copy link

This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes.

Copy link

Conflicts have been resolved! 🎉

@github-actions github-actions bot removed the Merge Conflicts There are open merge conflicts with the beta branch. label Jun 16, 2024
Copy link

This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes.

@github-actions github-actions bot added the Merge Conflicts There are open merge conflicts with the beta branch. label Aug 26, 2024
@jani270 jani270 added the Soon This Pull Request will be merged within the next couple of betas label Aug 26, 2024
@jani270 jani270 modified the milestones: Version 0.27, Version 0.26 Aug 26, 2024
# Conflicts:
#	src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
Copy link

Conflicts have been resolved! 🎉

@github-actions github-actions bot removed the Merge Conflicts There are open merge conflicts with the beta branch. label Aug 26, 2024
Copy link
Owner

@hannibal002 hannibal002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not work for me. LorenzUtils.inSkyBlock is false at the moment the world change event fires.
I suggest an different approach:
periodically check the value of HypixelData.serverId, compare against last known value. If the value changes, assume server switch. This should also work faster than 5 seconds after joining. Also fixed the potential bug when a user quickly swaps servers in under 5 seconds.

Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Copy link
Owner

@hannibal002 hannibal002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works fine now

@hannibal002 hannibal002 merged commit 31f9e29 into hannibal002:beta Aug 31, 2024
4 checks passed
@github-actions github-actions bot removed the Soon This Pull Request will be merged within the next couple of betas label Aug 31, 2024
@j10a1n15 j10a1n15 deleted the feature/last-server branch September 8, 2024 10:09
MTOnline69 pushed a commit to MTOnline69/SkyHanni that referenced this pull request Sep 11, 2024
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants