mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +09:00
Added /rainbow
This commit is contained in:
@@ -19,6 +19,7 @@ local Colours = require 'resources.color_presets'
|
||||
local Game = require 'utils.game'
|
||||
local Util = require 'util'
|
||||
require 'utils.table'
|
||||
require 'utils.math'
|
||||
|
||||
local Public = {}
|
||||
|
||||
@@ -496,4 +497,10 @@ function Public.table_keysort(tbl)
|
||||
return _tbl
|
||||
end
|
||||
|
||||
function Public.format_chat_colour(message,color)
|
||||
color = color or Colours.white
|
||||
local color_tag = '[color='..math.round(color.r,3)..','..math.round(color.g,3)..','..math.round(color.b,3)..']'
|
||||
return string.format('%s%s[/color]',color_tag,message)
|
||||
end
|
||||
|
||||
return Public
|
||||
Reference in New Issue
Block a user