mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Bug Fixes Round One
This commit is contained in:
@@ -146,7 +146,8 @@ function commands.validate_args(event)
|
||||
index = index+1
|
||||
if not word then break end
|
||||
local pos, _pos = word:find('"')
|
||||
while pos and pos == _pos do
|
||||
local hasSecond = pos and word:find('"',pos+1) or nil
|
||||
while not hasSecond and pos and pos == _pos do
|
||||
local next = table.remove(words,index+1)
|
||||
if not next then return commands.error('invalid-parse') end
|
||||
words[index] = words[index]..' '..next
|
||||
|
||||
@@ -180,6 +180,7 @@ script.on_event('on_tick', function(event)
|
||||
end)
|
||||
|
||||
script.on_event('on_player_respawned',function(event)
|
||||
if Gui.center then Gui.center.clear() end
|
||||
if loaded_modules['ExpGamingCore.Server'] then return end
|
||||
if global.players and is_type(global.players,'table') and #global.players > 0 and global.players[event.player_index] then
|
||||
local remove = {}
|
||||
|
||||
@@ -327,6 +327,7 @@ function Role._prototype:get_players(online)
|
||||
if not self_test(self,'role','get_players') then return end
|
||||
if online and not type_error(online,'boolean','Invalid argument #1 to role:get_players, online is not a boolean.') then return end
|
||||
if not global.roles[self.name] then global.roles[self.name] = {} end
|
||||
if self.is_default then if online then return game.connected_players else return game.players end end
|
||||
local rtn = {}
|
||||
for _,player_index in pairs(global.roles[self.name]) do
|
||||
local player = game.players[player_index]
|
||||
|
||||
Reference in New Issue
Block a user