Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/thisdp/dgs
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Mar 5, 2021
2 parents b84ed6f + 7a46b91 commit 7bf9751
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@
<export function="dgsImportOOPClass" type="client" />
<export function="dgsG2DLoadHooker" type="client" />

<min_mta_version server="1.5.7-9.19626" client="1.5.7-9.20157" />
<min_mta_version client="1.5.7-9.20157" />
<aclrequest>
<right name="function.fetchRemote" access="true" />
<right name="general.ModifyOtherObjects" access="true" />
Expand Down
1 change: 1 addition & 0 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ setElementData(root,"DGS-ResName",getResourceName(getThisResource()))

-----------About DGS
addEventHandler("DGSI_RequestAboutData",resourceRoot,function()
if getVersion().sortable < "1.5.7-9.19626" then return outputChatBox("[DGS]Your server version is outdated upgrade to 1.5.7-9.19626 or higher",player,255,255,0) end
fetchRemote("https://raw.githubusercontent.com/thisdp/dgs/master/README.md",{},function(data,info,player)
triggerClientEvent(player,"DGSI_SendAboutData",resourceRoot,data)
end,{client})
Expand Down
1 change: 1 addition & 0 deletions update.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ if dgsConfig.updateCheckAuto then
end

addCommandHandler("updatedgs",function(player)
if getVersion().sortable < "1.5.7-9.19626" then return outputChatBox("[DGS]Your server version is outdated upgrade to 1.5.7-9.19626 or higher",player,255,255,0) end
local account = getPlayerAccount(player)
local isPermit = hasObjectPermissionTo(player,"command.updatedgs")
if not isPermit then
Expand Down

0 comments on commit 7bf9751

Please sign in to comment.