Vault

Vault

7M Downloads

OfflinePlayer

Wouter0100 opened this issue ยท 1 comments

commented

hey,

Can you make this functions compatable with OfflinePlayer?
playerInGroup
getPlayerGroups
playerAddGroup
playerRemoveGroup

For this:
OfflinePlayer player = plugin.getServer().getOfflinePlayer(even.getPlayer().getName());

Thanks!
Wouter0100

commented

no? just use the name if you need to get offline player permissions. ie: use offlinePlayer.getName() this is how Vault / Permissions systems handle offline player lookups, they don't use offline player objects.