mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixing file load failing
This commit is contained in:
@@ -63,11 +63,11 @@ local ProgressBar = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Global.register({
|
Global.register({
|
||||||
ProgressBar.unregistered,
|
unregistered = ProgressBar.unregistered,
|
||||||
ProgressBar.independent
|
independent = ProgressBar.independent
|
||||||
},function(tbl)
|
},function(tbl)
|
||||||
ProgressBar.unregistered = tbl[1]
|
ProgressBar.unregistered = tbl.unregistered
|
||||||
ProgressBar.independent = tbl[2]
|
ProgressBar.independent = tbl.independent
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--- Gets the define data, cant use Gui.get_define as it would error
|
--- Gets the define data, cant use Gui.get_define as it would error
|
||||||
@@ -13,11 +13,11 @@ local Public = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Global.register({
|
Global.register({
|
||||||
Public.compilatrons,
|
compilatrons = Public.compilatrons,
|
||||||
Public.current_messages
|
current_messages = Public.current_messages
|
||||||
},function(tbl)
|
},function(tbl)
|
||||||
Public.compilatrons=tbl[1]
|
Public.compilatrons = tbl.compilatrons
|
||||||
Public.current_messages=tbl[2]
|
Public.current_messages = tbl.current_messages
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--- This will re-create the speech bubble after it de-spawns called with set_timeout
|
--- This will re-create the speech bubble after it de-spawns called with set_timeout
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ local Public = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Global.register({
|
Global.register({
|
||||||
Public.old_roles,
|
old_roles = Public.old_roles,
|
||||||
Public.temp_bans
|
temp_bans = Public.temp_bans
|
||||||
},function(tbl)
|
},function(tbl)
|
||||||
Public.old_roles=tbl[1]
|
Public.old_roles = tbl.old_roles
|
||||||
Public.temp_bans=tbl[2]
|
Public.temp_bans = tbl.temp_bans
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function event_emit(event,player,by_player_name,reason)
|
local function event_emit(event,player,by_player_name,reason)
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ local Public = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Global.register({
|
Global.register({
|
||||||
Public.user_warnings,
|
user_warnings = Public.user_warnings,
|
||||||
Public.user_temp_warnings
|
user_temp_warnings = Public.user_temp_warnings
|
||||||
},function(tbl)
|
},function(tbl)
|
||||||
Public.user_warnings = tbl[1]
|
Public.user_warnings = tbl.user_warnings
|
||||||
Public.user_temp_warnings = tbl[2]
|
Public.user_temp_warnings = tbl.user_temp_warnings
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function event_emit(event,player,by_player_name)
|
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_env = {} -- used as a persistent sandbox for interface commands
|
||||||
local interface_callbacks = {} -- saves callbacks which can load new values per use
|
local interface_callbacks = {} -- saves callbacks which can load new values per use
|
||||||
Global.register({interface_env,interface_callbacks},function(tbl)
|
Global.register({
|
||||||
interface_env = tbl[1]
|
interface_env = interface_env,
|
||||||
interface_callbacks = tbl[2]
|
interface_callbacks = interface_callbacks
|
||||||
|
},function(tbl)
|
||||||
|
interface_env = tbl.interface_env
|
||||||
|
interface_callbacks = tbl.interface_callbacks
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--- Adds a callback function when the interface command is used
|
--- Adds a callback function when the interface command is used
|
||||||
|
|||||||
Reference in New Issue
Block a user