Source code for permissions
# this was a stupid idea, i shold probably remove this file ioksaodksaisaoijd LOLOLOLOLOOL
# because it goes unused
# LOLLOOLOLOL
[docs]class Permissions:
def __init__(self, wrapper):
self.wrapper = wrapper
#self.permissions = storage.Storage("permissions", self.log)
[docs] def createGroup(self, groupName):
if groupName in self.permissions["groups"]:
raise Exception("Group '%s' already exists!" % groupName)
else:
self.permissions["groups"]
[docs] def doesGroupExist(self, groupName):
return groupName in self.permissions["groups"]
# Check for permissions
[docs] def doesPlayerHavePermission(self, player, node):
uuid = player.uuid