9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-04 15:41:45 +00:00

Register PAPI (wip)

This commit is contained in:
LoJoSho
2022-12-13 20:45:38 -06:00
parent d22a4afe6e
commit a6d310d78b
2 changed files with 8 additions and 3 deletions

View File

@@ -29,9 +29,8 @@ public class PAPIHook extends PlaceholderExpansion {
@Override
public String onRequest(OfflinePlayer player, String params) {
final String[] parts = params.split("_");
if (parts.length == 0) {
return null;
}
if (parts.length == 0) return null;
CosmeticUser user = CosmeticUsers.getUser(player.getUniqueId());
if (user == null) return null;