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

added more placeholders #821

Merged
merged 6 commits into from
May 10, 2024
Merged

added more placeholders #821

merged 6 commits into from
May 10, 2024

Conversation

sh0inx
Copy link
Contributor

@sh0inx sh0inx commented Mar 6, 2024

  • modified the fetch for online and offline members to run a single stream to create both lists
  • added island_visitors and island_visitors_amount placeholders to get the list of player names visiting an island and the amount of current visitors to said island
  • added island_booster and island_upgrade placeholders, to get whether they're active, the level of the enhancement, and the time remaining

sh0inx added 3 commits March 6, 2024 11:15
- modified the fetch for online and offline members to run a single stream to create both lists
- added ``island_visitors`` and ``island_visitors_amount`` placeholders to get the list of player names visiting an island and the amount of current visitors to said island
- added ``island_booster`` and ``island_upgrade`` placeholders, to get whether they're active, the level of the enhancement, and the time remaining
- also removed members from the list of visitors
- fixed an error in loop logic
@sh0inx sh0inx marked this pull request as ready for review March 16, 2024 14:25
…ceholders

# Conflicts:
#	src/main/java/com/iridium/iridiumskyblock/placeholders/IslandPlaceholderBuilder.java
Comment on lines 38 to 39
if(user.getPlayer() != null) onlineUsers.add(user.getName());
else offlineUsers.add(user.getName());
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if(user.getPlayer() != null) onlineUsers.add(user.getName());
else offlineUsers.add(user.getName());
if (user.getPlayer() != null) {
onlineUsers.add(user.getName());
} else {
offlineUsers.add(user.getName());
}

@PeachesMLG PeachesMLG merged commit c5a275d into master May 10, 2024
5 checks passed
@PeachesMLG PeachesMLG deleted the more-placeholders branch May 10, 2024 18:53
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.

2 participants