def __init__(self, rcon, log): PluginBase.__init__(self) self.rcon = rcon # use this to communicate back to the server self.log = log # use this if you want to log things # Default values self.admins = list() self.prefix = "!" self.welcome_message = "" self.rules_message = "" self.help_message = "" self.public_commands = ["help", "status", "rules", "time"] self.private_commands = ["say", "yell", "warn", "kick", "ban", "move"] # Read our config file self.read_config() self.log.info('{} loaded succesfully'.format(__name__))
def __init__(self, rcon, log): PluginBase.__init__(self) self.rcon = rcon self.log = log self.adminlist = {} # self.readAdmins() # Reads admins from a textfile self.admins = list() self.prefix = "!" self.public_commands = ["help", "status", "rules"] self.admin_commands = ["kick", "yell", "warn", "kick", "ban", "move"] self.prefix = "" self.welcome_message = "" self.server_rules = "" self.public_commands = ["help", "killed", "rules", "time"] self.admin_commands = ["adminhelp", "ban", "kick", "move", "say", "yell", "warn"] self.readConfig()