forked from Minecraft/minecraft_manager
Update models.py to correct Donor LP group reference
It looks like this is trying to retrieve donor status by checking if players are part of the "donator" group in LP. Wondering if updating this name to "donor" which matches the current LP group would fix this?benamaurer-donor-update
parent
aa7e4ea770
commit
d076b7c05f
|
@ -128,7 +128,7 @@ class Player(models.Model):
|
|||
|
||||
try:
|
||||
from django_luckperms.models import LuckPermsPlayerPermissions as lppp
|
||||
donator = lppp.objects.filter(permission='group.donator', uuid=self.uuid)
|
||||
donator = lppp.objects.filter(permission='group.donor', uuid=self.uuid)
|
||||
if donator.exists():
|
||||
expiry = donator.first().expiry
|
||||
if expiry > 0:
|
||||
|
|
Loading…
Reference in New Issue