Sueta

PlaceholderAPI Scoreboard Objectives Placeholder

6.3

Retrieve name & scores for scoreboard objectives using placeholders!

·Plugin
  1. 6.3latestVersion 6.3 releaseMar 9, 2024
    Fixes a server crash - potential infinite loop in getRank() due to case sensitivity. Thanks to @Xenapte
    1 download
  2. 6.2Version 6.2 releaseDec 2, 2023
    Minor update to fix a reported issue (console error) that happened in combination with certain other plugins that call Placeholder's onRequest() asynchronously.
    331 downloads
  3. 6.1Version 6.1 releaseAug 3, 2023
    Added placeholders: %objective_entries_{<objective>},<all/any/size>% %objective_entries_{<objective>}_for_score_{<#>},<all/any/size>% %objective_rank_{<objective>}% %objective_rank_{<objective>}_{[entry]}% Also made debugging easier with error messages show to player (instead of just spamming the console)
    511 downloads
  4. 5.2Version 5.2 releaseJan 28, 2023
    * Fixed an off-by-1 error in entrypos and scorepos * Compatible with Java16+ (previously required Java19+)
    731 downloads
  5. 5.1Version 5.1 releaseJan 25, 2023
    Added support for inner-nested expansions (requested by @Yoshi_Galaxy) You can take any expansion available on your server and have it as an input (inside the curly-braces) for expansions in ScoreboardObjectives. Due to PlaceHolderAPI parsing, inner expansions do not use %% Example (sorry I'm too lazy to think of a better one): %objective_displayname_{test}% => "deaths" %objective_displayname_{deaths}% => "Number of Deaths" %objective_displayname_{objective_displayname_{test}}% => "Number of Deaths"
    71 downloads
  6. 5.0Version 5.0 releaseDec 13, 2022
    The original author ( @LethalBunny) has handed maintenance responsibility of this expansion over to me ( @EvModder), and I have gone ahead and extensively reworked this expansion to provide a bit more flexibility and also performance improvements for servers that parse the "scorepos" placeholder with high frequency. All old syntax should still work, with the notable exception of the %objective_scorep_{objective}_{entry}% placeholder, which no longer verifies if {entry} is a player name, and now just behaves as an alias for %objective_score_{objective}_{entry}% (this might get changed again in the future). You may notice that a lot of the old placeholders have disappeared from the description page--they are still supported (and will continue to work into the future), but since the newer syntax is simpler and supports all the same features I felt it unnecessary to list out both the new and old versions of each.
    251 downloads
  7. 4.1.04.1.0 adds getting sorted scores & entriesDec 27, 2021
    Adds the much anticipated placeholders for sorting scores by rank and getting either the score or entry at a certain position in the ranks. 4 new placeholders, 2 for getting scores sorted by Highest or Lowest, and 2 for getting entries sorted by Highest or Lowest: %objective_scoreposhigh_{<obj-name>}_{<#>}% %objective_scoreposlow_{<obj-name>}_{<#>}% %objective_entryposhigh_{<obj-name>}_{<#>}% %objective_entryposlow_{<obj-name>}_{<#>}% Please Note: this version uses String.isEmpty() which was implemented in Java 11 so your server must have Java 11 or newer.
    844 downloads
  8. 4.0.0Supports new PAPI 2.11.0 API changes, native version 1.16Aug 24, 2020
    - Added changes to support the new PAPI 2.11.0 API. - Also now on native 1.16 though nothing changed there. - Added new placeholders to support Scoreboard objectives and Player names that contain underscores. The old placeholders will continue to work fine. - Cleaned up code and removed a lot of duplication.
    983 downloads
  9. 3.3.0Added placeholder to get DisplayName of ObjectiveMay 28, 2020
    added placeholder: %objective_displayname_<obj-name>%
    171 downloads
  10. 3.2.5MC 1.13.1 & papi 2.9.2 supportSep 12, 2018
    just used the new jars to support new version, nothing changed.
    442 downloads
  11. 3.2.4internal update for API compatiblityJul 6, 2018
    Clip will be implementing API to use getName() method to identify expansions on ecloud and your installed directory. This is to support that future update.
    148 downloads
  12. 3.2.3scorep [otherPlayer] is now case insensitiveJul 6, 2018
    [otherPlayer] is now case insensitive since it's only checking for players not non-player entries.
    67 downloads
  13. 3.2.2Added feature for checking JUST player scoresJul 1, 2018
    %objective_scorep_<obj-name>% = works just the same as %objective_score_<obj-name>% %objective_scorep_<obj-name>_[otherPlayer]% = checks if the optional parameter [otherPlayer] is a player, if not, returns PNF
    79 downloads
  14. 3.2.1Bugfix - optional <player> parametere wasn't being checkedJul 1, 2018
    Oops, made a mistake, don't download this version! Fix coming out. The following is wrong, removes intended use for non-player objectives. The optional <player> parameter when passed wasn't being checked it was an actual player that existed on your server therefore if you passed in garbage you'd always get 0 instead of the intended PNF. You will now get PNF if the optional parameter isn't actually a player on your server.
    1 download
  15. 3.2.0Removed deprecated methods and optimized code!Apr 19, 2018
    This is a big one! - Removed deprecated methods to support future versions =D - Changed [otherPlayer] to [otherEntry] because Scoreboards can contain entries that aren't players - Yes [otherEntry] will now also get scores of Entries not just Players - [otherEntry] will also get score of Offline players! - Optimized code and made the plugin smaller =D
    144 downloads
  16. 3.1Fixed bug caused by optional players with underscores in their namesDec 21, 2017
    Fixed a bug where using the optional parameter for a player that had an underscore in their name return score for just the calling player instead. Optional parameter now supports players with underscores in their name.
    156 downloads
  17. 3.0added efficiency in calling other playerDec 16, 2017
    Sorry for the quick redaction of version 2.0 but version 3.0 allows the original placeholder to work for both calling player and other player by just tacking on an optional parameter at the end. This will allow you to pass on a second parameter to the placeholder and if that second parameter is empty, it'll default to calling player, otherwise if the 2nd parameter is an online player, it'll return their score instead. Also made some code optimizations to save a few bytes
    76 downloads
  18. 2.1added some error checks for null playersDec 16, 2017
    Can return the following error strings: {empty string} - Score does not exist PNF - Player Not Found PDNE - Placeholder Does Not Exist
    84 downloads
  19. 2.0Added ability to get score of OTHER players onlineDec 16, 2017
    Now returned score doesn't have to be of the calling player, added a new variable for OTHER player: %objective_playerscore_<player>_<obj-name>% where <player> is the OTHER player who's info you desire, and <obj-name> is the name of the object's score you want.
    71 downloads
  20. 2017-10-10Oct 10, 2017
    106 downloads

Similar projects

Plugin →