# Path: cuwo/script.py
# class InvalidPlayer(Exception):
# class InsufficientRights(Exception):
# class Command:
# class ScriptManager:
# class BaseScript:
# class ConnectionScript(BaseScript):
# class ServerScript(BaseScript):
# class ScriptInterface:
# def get_player(server, value):
#     def __init__(self, func):
#     def __call__(self, *arg, **kw):
#     def is_compatible(self, rights):
#     def get_help(self):
#     def get_syntax(self):
# def get_command_base(func):
# def set_command_base(new_func, func):
# def command(func, klass=None):
# def alias(*aliases):
#     def dec(func):
# def restrict(*user_types):
#     def dec(func):
#         def new_func(script, *arg, **kw):
#     def __init__(self):
#     def __getattr__(self, name):
#     def __getitem__(self, name):
#     def __contains__(self, name):
#     def add(self, script):
#     def remove(self, script):
#     def unload(self):
#     def get(self):
#     def call(self, event_name, **kw):
#     def call(self, event_name, **kw):
#     def on_load(self):
#     def on_unload(self):
#     def unload(self):
#     def __init__(self, parent, connection):
#     def on_disconnect(self, event):
#     def on_command(self, event):
#     def get_player(self, name=None):
#     def get_commands(self):
#     def get_command(self, name):
#     def unload(self):
#     def entity(self):
#     def __init__(self, server):
#     def on_new_connection(self, event):
#     def on_existing_connection(self, event):
#     def on_command(self, event):
#     def unload(self):
#     def call_command(self, user, command, args):
#     def __init__(self, name, server, *rights):
#     def get_player(self, name):
#     def get_commands(self):
#     def get_command(self, name):


from cuwo.script import ServerScript, command, admin
# Copyright (c) Mathias Kaerlev 2013-2017.
#
# This file is part of cuwo.
#
# cuwo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# cuwo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with cuwo.  If not, see <http://www.gnu.org/licenses/>.

"""
Ban management
"""


SELF_BANNED = 'You are banned: {reason}'
PLAYER_BANNED = '{name} has been banned: {reason}'
DEFAULT_REASON = 'No reason specified'

DATA_NAME = 'banlist'



# Path: cuwo/script.py
# class InvalidPlayer(Exception):
# class InsufficientRights(Exception):
# class Command:
# class ScriptManager:
# class BaseScript:
# class ConnectionScript(BaseScript):
# class ServerScript(BaseScript):
# class ScriptInterface:
# def get_player(server, value):
#     def __init__(self, func):
#     def __call__(self, *arg, **kw):
#     def is_compatible(self, rights):
#     def get_help(self):
#     def get_syntax(self):
# def get_command_base(func):
# def set_command_base(new_func, func):
# def command(func, klass=None):
# def alias(*aliases):
#     def dec(func):
# def restrict(*user_types):
#     def dec(func):
#         def new_func(script, *arg, **kw):
#     def __init__(self):
#     def __getattr__(self, name):
#     def __getitem__(self, name):
#     def __contains__(self, name):
#     def add(self, script):
#     def remove(self, script):
#     def unload(self):
#     def get(self):
#     def call(self, event_name, **kw):
#     def call(self, event_name, **kw):
#     def on_load(self):
#     def on_unload(self):
#     def unload(self):
#     def __init__(self, parent, connection):
#     def on_disconnect(self, event):
#     def on_command(self, event):
#     def get_player(self, name=None):
#     def get_commands(self):
#     def get_command(self, name):
#     def unload(self):
#     def entity(self):
#     def __init__(self, server):
#     def on_new_connection(self, event):
#     def on_existing_connection(self, event):
#     def on_command(self, event):
#     def unload(self):
#     def call_command(self, user, command, args):
#     def __init__(self, name, server, *rights):
#     def get_player(self, name):
#     def get_commands(self):
#     def get_command(self, name):


# Path: scripts/ban.py
from cuwo.script import ServerScript, command, admin

# Copyright (c) Mathias Kaerlev 2013-2017.
#
# This file is part of cuwo.
#
# cuwo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# cuwo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with cuwo.  If not, see <http://www.gnu.org/licenses/>.

"""
Ban management
"""


SELF_BANNED = 'You are banned: {reason}'
PLAYER_BANNED = '{name} has been banned: {reason}'
DEFAULT_REASON = 'No reason specified'

DATA_NAME = 'banlist'



class BanServer(ServerScript):