-
-
Notifications
You must be signed in to change notification settings - Fork 178
Tables: server.Core
This is the "Core" table. It houses functions and variables that are essential to the core functionality of Adonis. If something happened to this table or its contents the entire system would become unusable. Functions within this table handle things like initial setup of the RemoteEvent/RemoteFunction, client loading, etc.
Contains Core-related variables, such as the TimeBans table.
--// Datastore update/queue timers/delays
DS_SetDataQueueDelay = 0.5;
DS_UpdateQueueDelay = 1;
DS_AllPlayerDataSaveInterval = 30;
DS_AllPlayerDataSaveQueueDelay = 0.5;
--// Used to change/"reset" specific datastore keys
DS_RESET_SALTS = {
SavedSettings = "32K5j4";
SavedTables = "32K5j4";
};
Disconnects and destroys all events related to security and the RemoteEvent
Creates the RemoteEvent and RemoteFunction used for server-client communication.
Updates the list of NetworkServer - Player connections
Same as UpdateConnections but for a specific player.
Returns the NetworkClient belonging to 'Player'
Creates a new player-specific RemoteEvent to be used for client-server communication. Not currently used.
Creates a client loader in ReplicatedFirst. Not currently used in favor of handling the client loading process via HookClient(Player)
When a player joins this function is called and handles the process of preparing the client and parenting it to the player.
Handles the loading of existing players at server startup. Calls Process.PlayerAdded(Player)
Places the client into StarterPlayerScripts. Not currently used in favor of HookClient
Determines if the given script object 'SourceScriptObject' is allowed to run. If 'Code' is provided it will be used as a pseudo-password. If 'isLocal' is true it will be treated as a LocalScript.
Returns: if allowed, table containing Source, noCache, runLimit, number of Executions
Returns the registered script object matching 'ScriptObject' or 'Code'
Unregisters 'ScriptObject' for execution.
Registers Data.Script as being allowed to execute along with it's related information.
Returns a new loadstring module.
Converts 'LuaCode' into bytecode and returns the result. This is used before sending any code to run to the client.
Creates, registers, and returns a new script of class 'Class'
Updates Player's data (in Core.PlayerData) do 'Data'
Returns the default player data for 'Player'
Returns the PlayerData for 'Player' Also updates the PlayerData cache and will retrieve data from the datastore if not already cached.
Clears data related to a player, resetting it to the default values.
Save's data for 'Player' to the datastore.
Saves all player data.
Returns the DataStore.
Returns the salted, encrypted, Base64 encoded version of a given key to be used in the datastore.
Calls Core.SetData(...)
Removes 'Key' and related data from the datastore.
Sets 'Key' to 'Value' in the datastore cache & datastore (when the datastore is updated)
Calls UpdateAsync for the given 'Key' with 'Function'
Returns data related to 'Key' from the DataCache/datastore
Attempts to find the given table based on the path provided. Returns: foundTable, foundTableIndex
Saves settings or tables to the datastore based on information provided in 'Data'
Loads saved settings, tables, etc.
Handles the creation and monitoring of _G.Adonis
Start | Guides | Tables |
---|---|---|
Home | Creating a theme | The "Service" Metatable |