Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
in-game admin v1.0.1: Fix usage bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Neztore committed Feb 28, 2021
1 parent cd7f31f commit 2317504
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions games/ingame-admin/src/commands/exile/exileServer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return function (context, players, rank)
end

local function exile (plr)
local resp = cetus.exile(plr.UserId)
local resp = cetus:exile(plr.UserId)
if resp.error then
return "Failed to rank " .. plr.Name .. ": " .. resp.error.message
end
Expand All @@ -34,4 +34,4 @@ return function (context, players, rank)
end
end
return "Exiled " .. #players .. " from " .. groupInfo.Name
end
end
4 changes: 2 additions & 2 deletions games/ingame-admin/src/commands/setRank/setRankServer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ return function (context, players, rank)
end

local function setRank (plr)
local resp = cetus.setRank(plr.UserId, rank)
local resp = cetus:setRank(plr.UserId, rank)
if resp.error then
return "Failed to rank " .. plr.Name .. ": " .. resp.error.message
end
Expand All @@ -32,4 +32,4 @@ return function (context, players, rank)
end
end
return "Ranked " .. #players .. " to " .. rank .. " in " .. groupInfo.Name
end
end
4 changes: 2 additions & 2 deletions games/ingame-admin/src/init.server.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--[[
Cetus.app
Premade integration: In-game admin
Version: 1.0.0
Version: 1.0.1
This integration makes use of the fantastic Cmdr tool.
https://eryn.io/Cmdr/
Expand Down Expand Up @@ -35,4 +35,4 @@ Cmdr:RegisterCommandsIn(script.commands)

local permissionHook = require(script.hooks.permissions)
permissionHook(Cmdr.Registry)
clientCode.Parent = PlayerScripts
clientCode.Parent = PlayerScripts

0 comments on commit 2317504

Please sign in to comment.