Skip to content

Commit

Permalink
chore: add vanish level placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed May 24, 2024
1 parent 42eec85 commit 9bdab14
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ class PlaceholderAPIHook(plugin: VelocityVanishSpigot, name: String) : Dependenc
return plugin.vanishedNamesOnline.size.toString()
}

if (params.equals("level", true)) {
val onlinePlayer = player?.player ?: return "0"
return plugin.vanishManager.getVanishLevel(onlinePlayer).toString()
}

if (params.startsWith("online_")) {
val type = params.substring(7)

Expand Down

0 comments on commit 9bdab14

Please sign in to comment.