summaryrefslogtreewikicommitdiff
path: root/.wiki/6-Placeholder-API.md
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-04 16:21:45 +0000
committerFreya Murphy <freya@freyacat.org>2025-09-04 15:07:36 -0400
commita6e9b85ab82016e7058ee2a01d7b5210f3e96d34 (patch)
tree4c07e376aa71633cb9d260b7f840fd71dfe379e3 /.wiki/6-Placeholder-API.md
parentchange (diff)
downloadkenshinshideandseek-a6e9b85ab82016e7058ee2a01d7b5210f3e96d34.tar.gz
kenshinshideandseek-a6e9b85ab82016e7058ee2a01d7b5210f3e96d34.tar.bz2
kenshinshideandseek-a6e9b85ab82016e7058ee2a01d7b5210f3e96d34.zip
add wiki for cgit
Diffstat (limited to '.wiki/6-Placeholder-API.md')
-rw-r--r--.wiki/6-Placeholder-API.md53
1 files changed, 53 insertions, 0 deletions
diff --git a/.wiki/6-Placeholder-API.md b/.wiki/6-Placeholder-API.md
new file mode 100644
index 0000000..0da5c0f
--- /dev/null
+++ b/.wiki/6-Placeholder-API.md
@@ -0,0 +1,53 @@
+### **PlaceholderAPI**
+
+This plugin tracks player wins, losses, kills, deaths, etc. This is all stored in a database, and can be queried by placeholder api.
+
+The supported placeholders are:
+
+```
+%hs_stats_<stat-name>%
+%hs_stats_<stat-name>_<player-name>%
+%hs_rank-score_<stat-name>_<place>%
+%hs_rank-name_<stat-name>_<place>%
+```
+
+The following state names are:
+
+```
+total-wins
+hider-wins
+seeker-wins
+total-games
+hider-games
+seeker-games
+total-kills
+hider-kills
+seeker-kills
+total-deaths
+hider-deaths
+seeker-deaths
+```
+
+#### %hs_stats_\<stat-name>%
+
+This gives the current statistic for the current player viewing it.
+
+Example: `%hs_stats_hider-kills` // Shows your kills as hider count
+
+#### %hs_stats_\<stat-name>_\<player-name>%
+
+This gives the current statistic for the player selected in the placeholder
+
+Example: `%hs_stats_total-kills_JohnDoe` // Shows JohnDoe's total kill count
+
+#### %hs_rank-score_\<stat-name>_\<place>%
+
+This shows the current score at the given place in the given ranking of the stat
+
+Example: `%hs_rank-score_seeker-wins_2%` // Shows 2nd place's score in seeker wins
+
+#### %hs_rank-name_\<stat-name>_\<place>%
+
+This shows the current name at the given place in the given ranking of the stat
+
+Example: `%hs_rank-name_seeker-wins_2%` // Shows 2nd place's name in seeker wins \ No newline at end of file