Skip to content

Add {gamemode}_points_to_next_level placeholder#405

Merged
tastybento merged 1 commit intodevelopfrom
copilot/add-placeholder-points-next-level
Mar 15, 2026
Merged

Add {gamemode}_points_to_next_level placeholder#405
tastybento merged 1 commit intodevelopfrom
copilot/add-placeholder-points-next-level

Conversation

Copy link
Contributor

Copilot AI commented Mar 15, 2026

Users requested a PlaceholderAPI placeholder exposing the same "points required until next level" value shown by /is level.

What's included

  • Placeholder: {gamemode}_points_to_next_level (e.g. bskyblock_points_to_next_level) — returns the remaining points needed for the island to reach the next level, matching the in-game /is level output
  • Data flow: IslandLevelCalculator computes the value post-scan → stored in Results → persisted to IslandLevels cache/DB via LevelsManager.setIslandResults() → exposed via LevelsManager.getPointsToNextString()
  • Null safety: returns "" when the player has no island, "0" when the island hasn't been calculated yet

Example

/is level
Island level is 119
87 points required until the next level

# Equivalent placeholder
%Level_bskyblock_points_to_next_level%  →  "87"

Test coverage

Registration verified in PlaceholderManagerTest and LevelTest; value logic covered in LevelsManagerTest#testGetPointsToNextString.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • hub.spigotmc.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Level/Level org.codehaus.plexus.classworlds.launcher.Launcher test -Dtest=PlaceholderManagerTest -q (dns block)
    • Triggering command: /usr/lib/jvm/temurin-21-jdk-amd64/bin/java /usr/lib/jvm/temurin-21-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Level/Level org.codehaus.plexus.classworlds.launcher.Launcher test -Dtest=PlaceholderManagerTest (dns block)
    • Triggering command: /usr/lib/jvm/temurin-21-jdk-amd64/bin/java /usr/lib/jvm/temurin-21-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Level/Level org.codehaus.plexus.classworlds.launcher.Launcher test (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Placeholder: Points to achieve next level</issue_title>
<issue_description>Description

Please add placeholder for points to achieve next level. Similar to what is provided in-game

/is level
Calculating level...
Island level is 119
(0 deaths)
87 points required until the next level

Placeholder: Something like Level_bskyblock_points_to_achieve_next_island_level

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI changed the title [WIP] Add placeholder for points to achieve next level Add {gamemode}_points_to_next_level placeholder Mar 15, 2026
Copilot AI requested a review from tastybento March 15, 2026 01:06
@tastybento tastybento marked this pull request as ready for review March 15, 2026 01:24
@tastybento tastybento merged commit f242433 into develop Mar 15, 2026
1 check passed
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.

Placeholder: Points to achieve next level

2 participants