mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixing file load failing
This commit is contained in:
@@ -13,11 +13,11 @@ local Public = {
|
||||
}
|
||||
|
||||
Global.register({
|
||||
Public.compilatrons,
|
||||
Public.current_messages
|
||||
compilatrons = Public.compilatrons,
|
||||
current_messages = Public.current_messages
|
||||
},function(tbl)
|
||||
Public.compilatrons=tbl[1]
|
||||
Public.current_messages=tbl[2]
|
||||
Public.compilatrons = tbl.compilatrons
|
||||
Public.current_messages = tbl.current_messages
|
||||
end)
|
||||
|
||||
--- This will re-create the speech bubble after it de-spawns called with set_timeout
|
||||
|
||||
@@ -13,11 +13,11 @@ local Public = {
|
||||
}
|
||||
|
||||
Global.register({
|
||||
Public.old_roles,
|
||||
Public.temp_bans
|
||||
old_roles = Public.old_roles,
|
||||
temp_bans = Public.temp_bans
|
||||
},function(tbl)
|
||||
Public.old_roles=tbl[1]
|
||||
Public.temp_bans=tbl[2]
|
||||
Public.old_roles = tbl.old_roles
|
||||
Public.temp_bans = tbl.temp_bans
|
||||
end)
|
||||
|
||||
local function event_emit(event,player,by_player_name,reason)
|
||||
|
||||
@@ -15,11 +15,11 @@ local Public = {
|
||||
}
|
||||
|
||||
Global.register({
|
||||
Public.user_warnings,
|
||||
Public.user_temp_warnings
|
||||
user_warnings = Public.user_warnings,
|
||||
user_temp_warnings = Public.user_temp_warnings
|
||||
},function(tbl)
|
||||
Public.user_warnings = tbl[1]
|
||||
Public.user_temp_warnings = tbl[2]
|
||||
Public.user_warnings = tbl.user_warnings
|
||||
Public.user_temp_warnings = tbl.user_temp_warnings
|
||||
end)
|
||||
|
||||
local function event_emit(event,player,by_player_name)
|
||||
|
||||
@@ -23,9 +23,12 @@ end
|
||||
|
||||
local interface_env = {} -- used as a persistent sandbox for interface commands
|
||||
local interface_callbacks = {} -- saves callbacks which can load new values per use
|
||||
Global.register({interface_env,interface_callbacks},function(tbl)
|
||||
interface_env = tbl[1]
|
||||
interface_callbacks = tbl[2]
|
||||
Global.register({
|
||||
interface_env = interface_env,
|
||||
interface_callbacks = interface_callbacks
|
||||
},function(tbl)
|
||||
interface_env = tbl.interface_env
|
||||
interface_callbacks = tbl.interface_callbacks
|
||||
end)
|
||||
|
||||
--- Adds a callback function when the interface command is used
|
||||
|
||||
Reference in New Issue
Block a user