mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-12-24 01:58:21 +01:00
Removed the warnings for deprecated placeholders
This commit is contained in:
parent
3edb12581d
commit
816a077ddd
@ -31,9 +31,6 @@ public class LevelPlaceholder implements PlaceholderReplacer {
|
||||
*/
|
||||
@Override
|
||||
public String onReplace(User user) {
|
||||
addon.logWarning("You are using a deprecated placeholder.");
|
||||
addon.log("Please replace any occurrence of 'Level_" + gm.getDescription().getName().toLowerCase() + "-island-level'");
|
||||
addon.log("by 'Level_" + gm.getDescription().getName().toLowerCase() + "_island_level'");
|
||||
return addon.getLevelPresenter().getLevelString(addon.getIslandLevel(gm.getOverWorld(), user.getUniqueId()));
|
||||
}
|
||||
|
||||
|
@ -30,9 +30,6 @@ public class TopTenNamePlaceholder implements PlaceholderReplacer {
|
||||
*/
|
||||
@Override
|
||||
public String onReplace(User user) {
|
||||
level.logWarning("You are using a deprecated placeholder.");
|
||||
level.log("Please replace any occurrence of 'Level_" + gm.getDescription().getName().toLowerCase() + "-island-level-top-name-#'");
|
||||
level.log("by 'Level_" + gm.getDescription().getName().toLowerCase() + "_top_name_#'");
|
||||
Collection<UUID> values = level.getTopTen().getTopTenList(gm.getOverWorld()).getTopTen().keySet();
|
||||
return values.size() < i ? "" : level.getPlayers().getName(values.stream().skip(i).findFirst().orElse(null));
|
||||
}
|
||||
|
@ -30,9 +30,6 @@ public class TopTenPlaceholder implements PlaceholderReplacer {
|
||||
*/
|
||||
@Override
|
||||
public String onReplace(User user) {
|
||||
level.logWarning("You are using a deprecated placeholder.");
|
||||
level.log("Please replace any occurrence of 'Level_" + gm.getDescription().getName().toLowerCase() + "-island-level-top-value-#'");
|
||||
level.log("by 'Level_" + gm.getDescription().getName().toLowerCase() + "_top_value_#'");
|
||||
Collection<Long> values = level.getTopTen().getTopTenList(gm.getOverWorld()).getTopTen().values();
|
||||
return values.size() < i ? "" : values.stream().skip(i).findFirst().map(String::valueOf).orElse("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user