mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
k
This commit is contained in:
parent
f1f427a3e8
commit
11d11825c1
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class BanFSM(FSM):
|
||||||
self.accountId = fields.get('ACCOUNT_ID')
|
self.accountId = fields.get('ACCOUNT_ID')
|
||||||
|
|
||||||
if self.accountId:
|
if self.accountId:
|
||||||
self.performBan(0 if self.duration < 0 else datetime.date.now() + (self.duration * 3600000))
|
self.performBan(0 if self.duration < 0 else datetime.datetime.now() + (self.duration * 3600000))
|
||||||
|
|
||||||
def getAvatarDetails(self):
|
def getAvatarDetails(self):
|
||||||
av = self.air.doId2do.get(self.avId)
|
av = self.air.doId2do.get(self.avId)
|
||||||
|
@ -133,4 +133,4 @@ def ban(reason, duration):
|
||||||
if target == invoker:
|
if target == invoker:
|
||||||
return "You can't ban yourself!"
|
return "You can't ban yourself!"
|
||||||
simbase.air.banManager.ban(invoker.doId, target.doId, duration, reason)
|
simbase.air.banManager.ban(invoker.doId, target.doId, duration, reason)
|
||||||
return "Banned %s from the game server!" % target.getName()
|
return "Banned %s from the game server!" % target.getName()
|
||||||
|
|
Loading…
Reference in a new issue