Files
NGECore2/scripts/commands/guildchangename.py
T
Waverunner 45c91104e0 Added more guild features, fixed re-joining chat channels on relog
Changed guilds to be saved to a TreeMap instead of solely the SWGSet.
Fixed uses string
Added UnknownAbilityPacket (was sent for every new ability, doesnt seem
to do anything)
Lots of guild improvement/features added.
2014-05-29 13:51:40 -04:00

26 lines
548 B
Python

import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getGuildId() == 0:
return
guildSvc = core.guildService
guild = guildSvc.getGuildById(actor.getGuildId())
if guild is None:
return
member = guild.getMember(actor.getObjectID())
if actor.getObjectID() != guild.getLeader() and member.hasChangeNamePermission() is False:
actor.sendSystemMessage('@guild:guild_no_permission_operation', 0)
return
else:
guildSvc.handleChangeGuildName(actor, guild)
return
return