Guest User

Untitled

a guest
Jan 20th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. def cmd_drban(self, data, client, cmd=None):
  2.     """\
  3.    <player> - Bans the player Specified.
  4.       """
  5.     input = self._adminPlugin.parseUserCmd(data)
  6.     if input:
  7.       sclient = self._adminPlugin.findClientPrompt(input[0], client)
  8.       if not sclient:
  9.         return False
  10.     else:
  11.       client.message('^7Invalid data, try !help drban')
  12.       return False
  13.     if sclient:
  14.          sclient.message('You Are Being Banned FOREVER')
  15.          self.console.write('admin ban: %s '(sclient.cid))
  16.     return True
Add Comment
Please, Sign In to add comment