From a68e763c8aada15c708570f383bc805ec0a75ca8 Mon Sep 17 00:00:00 2001 From: Sir Papate Date: Sat, 16 Sep 2017 16:52:40 -0400 Subject: [PATCH] Fixed stupid mistake --- addon.json | 3 ++- lua/entities/gmod_wire_expression2/core/custom/playercore.lua | 4 ++-- lua/ulib/modules/playercore_access.lua | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/addon.json b/addon.json index 1dd56b4..f3214d5 100644 --- a/addon.json +++ b/addon.json @@ -5,6 +5,7 @@ "ignore" : [ "*.cmd", "*.gma", - "addonid.txt" + "addonid.txt", + ".git*" ] } diff --git a/lua/entities/gmod_wire_expression2/core/custom/playercore.lua b/lua/entities/gmod_wire_expression2/core/custom/playercore.lua index dd85341..ed3e47f 100644 --- a/lua/entities/gmod_wire_expression2/core/custom/playercore.lua +++ b/lua/entities/gmod_wire_expression2/core/custom/playercore.lua @@ -414,7 +414,7 @@ local function printColorVarArg(ply, target, typeids, ...) end end - target = isentity(target) and {target} + target = isentity(target) and {target} or target target = target or player.GetAll() local plys = {} @@ -456,7 +456,7 @@ local function printColorArray(ply, target, arr) end end - target = isentity(target) and {target} + target = isentity(target) and {target} or target target = target or player.GetAll() local plys = {} diff --git a/lua/ulib/modules/playercore_access.lua b/lua/ulib/modules/playercore_access.lua index 12a96be..5fac2a7 100644 --- a/lua/ulib/modules/playercore_access.lua +++ b/lua/ulib/modules/playercore_access.lua @@ -40,10 +40,11 @@ if SERVER then ULib.ucl.registerAccess("messagecolor", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore") ULib.ucl.registerAccess("globalmessage", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore") ULib.ucl.registerAccess("globalmessagecenter", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore") + ULib.ucl.registerAccess("globalmessagecolor", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore") hook.Add("PlyCoreCommand", "ULX_PlyCore_Access", function(ply, target, command) if ULib.ucl.query(ply, command) then - if not IsValid(target) or target:IsPlayer() then return true end + if not IsValid(target) then return true end if ULib.ucl.query(ply, "target_himself") then if ply == target then