mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Corrected dependencies
This commit is contained in:
@@ -147,13 +147,13 @@ function left._left.toggle(event)
|
|||||||
if is_type(Ranking,'table') and Ranking.meta.rank_count > 0 then
|
if is_type(Ranking,'table') and Ranking.meta.rank_count > 0 then
|
||||||
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
||||||
else open = {gui.unauthorized} end
|
else open = {gui.unauthorized} end
|
||||||
end
|
else open = true end
|
||||||
else open = err end
|
else open = err end
|
||||||
else
|
else
|
||||||
if is_type(Ranking,'table') and Ranking.meta.rank_count > 0 then
|
if is_type(Ranking,'table') and Ranking.meta.rank_count > 0 then
|
||||||
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
if Ranking.get_rank(player):allowed(_left.name) then open = true
|
||||||
else open = {gui.unauthorized} end
|
else open = {gui.unauthorized} end
|
||||||
end
|
else open = true end
|
||||||
end
|
end
|
||||||
if open == true and left.style.visible ~= true then
|
if open == true and left.style.visible ~= true then
|
||||||
left.style.visible = true
|
left.style.visible = true
|
||||||
|
|||||||
@@ -133,8 +133,8 @@ function Ranking.get_rank(mixed)
|
|||||||
-- if it is a player name/index, then get player rank; if it is a rank name, get that rank; if it is server or root; return root rank; else nil
|
-- if it is a player name/index, then get player rank; if it is a rank name, get that rank; if it is server or root; return root rank; else nil
|
||||||
_return = game and game.players[mixed] and ranks[game.players[mixed].permission_group.name]
|
_return = game and game.players[mixed] and ranks[game.players[mixed].permission_group.name]
|
||||||
or table.autokey(ranks,mixed) and table.autokey(ranks,mixed)
|
or table.autokey(ranks,mixed) and table.autokey(ranks,mixed)
|
||||||
or string.contains(mixed,'server') and Ranking.get_rank(Ranking.meta.root)
|
or string.find(mixed,'server') and Ranking.get_rank(Ranking.meta.root)
|
||||||
or string.contains(mixed,'root') and Ranking.get_rank(Ranking.meta.root)
|
or string.find(mixed,'root') and Ranking.get_rank(Ranking.meta.root)
|
||||||
or nil
|
or nil
|
||||||
end
|
end
|
||||||
return _return
|
return _return
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"module": "Collection",
|
"module": "Collection",
|
||||||
"description": "Explosive Gaming Core Files",
|
"description": "Explosive Gaming Core Files",
|
||||||
"keywords": ["Library","Lib","ExpGaming","Core"],
|
"keywords": ["Library","Lib","ExpGaming","Core"],
|
||||||
"version": "3.4.0",
|
"version": "4.0.0",
|
||||||
"location": "url",
|
"location": "url",
|
||||||
"submodules": {
|
"submodules": {
|
||||||
"Commands": {
|
"Commands": {
|
||||||
@@ -31,7 +31,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"FactorioModGui": "^1.0.0",
|
"FactorioModGui": "^1.0.0",
|
||||||
"ExpGamingLib": "^4.0.0",
|
"ExpGamingLib": "^4.0.0",
|
||||||
"ExpGamingCore/Ranking": "^4.0.0",
|
"FactorioStdLib.Table": "^0.8.0",
|
||||||
|
"FactorioStdLib.Color": "^0.8.0",
|
||||||
|
"FactorioStdLib.Game": "^0.8.0",
|
||||||
|
"ExpGamingCore/Ranking": "?^4.0.0",
|
||||||
"ExpGamingCore/Server": "?^4.0.0"
|
"ExpGamingCore/Server": "?^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -60,6 +63,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ExpGamingLib": "^4.0.0",
|
"ExpGamingLib": "^4.0.0",
|
||||||
"FactorioStdLib.Table": "^0.8.0",
|
"FactorioStdLib.Table": "^0.8.0",
|
||||||
|
"FactorioStdLib.Color": "^0.8.0",
|
||||||
|
"FactorioStdLib.String": "^0.8.0",
|
||||||
"FactorioStdLib.Game": "^0.8.0",
|
"FactorioStdLib.Game": "^0.8.0",
|
||||||
"ExpGamingCore.Ranking": "?^4.0.0",
|
"ExpGamingCore.Ranking": "?^4.0.0",
|
||||||
"ExpGamingCore.Commands": "?^4.0.0"
|
"ExpGamingCore.Commands": "?^4.0.0"
|
||||||
@@ -75,6 +80,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ExpGamingLib": "^4.0.0",
|
"ExpGamingLib": "^4.0.0",
|
||||||
"FactorioStdLib.Color": "^0.8.0",
|
"FactorioStdLib.Color": "^0.8.0",
|
||||||
|
"FactorioStdLib.Game": "^0.8.0",
|
||||||
"FactorioStdLib.Table": "^0.8.0",
|
"FactorioStdLib.Table": "^0.8.0",
|
||||||
"ExpGamingCore.Ranking": "?^4.0.0",
|
"ExpGamingCore.Ranking": "?^4.0.0",
|
||||||
"ExpGamingCore.Gui": "?^4.0.0"
|
"ExpGamingCore.Gui": "?^4.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user