Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.6</version>
<version>2.11.6</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public Map<String, Object> getDefaults() {
public String onRequest(final OfflinePlayer player, String identifier) {
final int value;

if (identifier.startsWith("online_")) {
final String server = identifier.substring(7).toLowerCase();
return counts.containsKey(server) ? "§aOnline" : "§cOffline";
}

switch (identifier.toLowerCase()) {
case "all":
case "total":
Expand Down