mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
Merge branch 'core'
This commit is contained in:
@@ -58,6 +58,14 @@ function Game.get_player(mixed)
|
||||
end
|
||||
elseif mixed then
|
||||
local player = game.players[mixed]
|
||||
if type(mixed) == "string" and tonumber(mixed) then
|
||||
for _, p in pairs(game.players) do
|
||||
if p.name == mixed then
|
||||
player = p
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
return player and player.valid and player
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,6 +8,9 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
-- a base for functions to keep things clean
|
||||
_G._ = {}
|
||||
|
||||
-- replaces the base error function
|
||||
_error = error
|
||||
error = function(err)
|
||||
|
||||
Reference in New Issue
Block a user