-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update PlaceholderAPI Version and Add Server Status Check #19
base: master
Are you sure you want to change the base?
Conversation
src/main/java/com/extendedclip/papi/bungeeexpansion/BungeeExpansion.java
Outdated
Show resolved
Hide resolved
…d offline values.
if (hasString("online")) | ||
this.online = getString("online", "Online"); | ||
if (hasString("offline")) | ||
this.offline = getString("offline", "Offline"); |
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.
Instead of making this extra method, just update the getDefaults()
method to include these new entries and it should update accordingly, especially since the getString method returns the default given if returned path is null.
private boolean hasString(String path) { | ||
ConfigurationSection section = this.getConfigSection(); | ||
if (section == null) | ||
return false; | ||
return section.contains(path); | ||
} | ||
|
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.
This isn't needed as per the above stated suggestions.
This pull request includes the following updates:
PlaceholderAPI
dependency has been updated from version2.10.6
to2.11.6
in thepom.xml
file. This ensures compatibility with the latest features and bug fixes provided by the new version of the API.onRequest
method. If the identifier starts withonline_
, the system now verifies the server's status and returns§aOnline
if the server is available or§cOffline
if it is not.This update improves compatibility and adds a new feature for checking server statuses dynamically based on the identifier provided.