mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Added production to control
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
--[[-- Control Module - Warnings
|
||||
- Adds a way to give and remove warnings to players.
|
||||
@module Warnings
|
||||
@control Warnings
|
||||
@alias Warnings
|
||||
|
||||
@usage
|
||||
-- import the module from the control modules
|
||||
local Warnings = require 'modules.control.warnings'
|
||||
|
||||
-- This will add a warning to the player
|
||||
Warnings.add_warning('MrBiter','Cooldude2606','Killed too many biters')
|
||||
|
||||
@@ -18,9 +21,17 @@
|
||||
Warnings.clear_warnings('MrBiter','Cooldude2606')
|
||||
]]
|
||||
|
||||
--- Allows registering of custom events
|
||||
-- @dep utils.event
|
||||
local Event = require 'utils.event'
|
||||
--- Allows getting player from any value
|
||||
-- @dep utils.game
|
||||
local Game = require 'utils.game'
|
||||
--- Allows storing in the global table
|
||||
-- @dep utils.global
|
||||
local Global = require 'utils.global'
|
||||
--- Config file for this module
|
||||
-- @dep config.warnings
|
||||
local config = require 'config.warnings'
|
||||
|
||||
local valid_player = Game.get_player_from_any
|
||||
|
||||
Reference in New Issue
Block a user