slipcor / PVPStats

GNU General Public License v3.0
8 stars 15 forks source link

Placeholders don't work for offline players #16

Closed Drc-DEV closed 5 years ago

Drc-DEV commented 5 years ago

Can you add OfflinePlayer compatibility to the placeholders you provide via placeholderapi?

Because there are plugins which have commands like "/playerinfo " which also get offline players' info, and if I use PAPI placeholders everything works fine but pvpstats throws a nullpointer and does not work. This may be related to the fact that the method for getting the placeholder only works for "Player" and not for OfflinePlayer.