From 39907082cbf2fbef7d88a9bf662071b89221bc4f Mon Sep 17 00:00:00 2001 From: Yessiest Date: Thu, 2 Dec 2021 19:40:29 +0400 Subject: [PATCH] Fixed persistence --- plugins/roledefaults/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/roledefaults/init.lua b/plugins/roledefaults/init.lua index 1af497f..1c2e72c 100644 --- a/plugins/roledefaults/init.lua +++ b/plugins/roledefaults/init.lua @@ -1,7 +1,7 @@ local plugin_class = import("classes.plugin") local command = import("classes.command") local plugin = plugin_class("roledefaults") -config.default_roles = {} +config.default_roles = config.default_roles or {} client:on("memeberJoin",function(member) for k,v in pairs(config.default_roles) do member:addRole(v)