def save_data(self, name, value): return database.save_data(self.db_con, name, value)
def setspawn(script): """Sets global spawn point.""" if database.save_data(script.server.db_con, 'globalspawnpoint', [script.connection.position.x,script.connection.position.y,script.connection.position.z]) is True: return 'Global spawn point set.' return 'Could not set global spawn point!'