class GuestCommand(Command): type = "guest" def __call__(self, player, *args): if player.dbID <> -1: super(GuestCommand, self).__call__(self, player, *args) else: player.msg("You are already logged in.") class AdminCommand(Command): type = "admin" def __call__(self, player, *args): if player.admin: super(AdminCommand, self).__call__(self, player, *args) else: player.msg("You must be an administrator to use this command.")