diff --git a/b3/plugins/xlrstats/__init__.py b/b3/plugins/xlrstats/__init__.py index 99c7e92a4..5f73ae221 100644 --- a/b3/plugins/xlrstats/__init__.py +++ b/b3/plugins/xlrstats/__init__.py @@ -135,7 +135,10 @@ class XlrstatsPlugin(b3.plugin.Plugin): # default tablenames for the Battlestats subplugin # battlestats_table = 'xlr_battlestats' # playerbattles_table = 'xlr_playerbattles' - + + # the 'xlrinit' command will truncate all of the above tables, unless included here + exclude_from_xlrinit = [ "clients", "penalties" ] + _defaultTableNames = True _default_messages = { 'cmd_xlrstats': '^3XLR Stats: ^7$name ^7: K ^2$kills ^7D ^3$deaths ^7TK ^1$teamkills ^7Ratio ^5$ratio ^7Skill ^3$skill', @@ -1823,7 +1826,7 @@ def cmd_xlrinit(self, data, client, cmd=None): xlr_tables = [] for attr in dir(self): attr_val = getattr(self, attr) - if attr.endswith('_table') and attr_val.startswith('xlr_'): + if attr.endswith('_table') and attr_val not in self.exclude_from_xlrinit: xlr_tables.append(attr_val) current_tables = self.console.storage.getTables()