mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
18 lines
544 B
Python
18 lines
544 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
permissionType = 'Undetermined'
|
|
commandArgs = commandString.split(' ')
|
|
target = core.housingService.getClosestStructureWithAdminRights(actor)
|
|
if not target:
|
|
return
|
|
if target.getTemplate().startswith('object/building'):
|
|
core.housingService.handlePermissionListModify(actor, target, commandString)
|
|
elif target.getTemplate().startswith('object/installation'):
|
|
core.harvesterService.handlePermissionListModify(actor, target, commandString)
|
|
return
|
|
|
|
|