Hopefully Fixed Jail Bug

This commit is contained in:
Cooldude2606
2018-11-06 20:54:58 +00:00
parent bc39becfcc
commit bcac04888f
11 changed files with 19 additions and 19 deletions

View File

@@ -16,10 +16,10 @@ end)
return {
on_init = function(self)
if loaded_modules['ExpGamingAdmin.TempBan'] then verbose('ExpGamingAdmin.TempBan is installed; Loading tempban src') require(module_path..'/src/tempban',{Admin=Admin}) end
if loaded_modules['ExpGamingAdmin.Jail'] then verbose('ExpGamingAdmin.Jail is installed; Loading tempban src') require(module_path..'/src/jail',{Admin=Admin}) end
if loaded_modules['ExpGamingAdmin.Warnings'] then verbose('ExpGamingAdmin.Warnings is installed; Loading tempban src') require(module_path..'/src/warnings',{Admin=Admin}) end
if loaded_modules['ExpGamingAdmin.Reports'] then verbose('ExpGamingAdmin.Reports is installed; Loading tempban src') require(module_path..'/src/reports',{Admin=Admin}) end
if loaded_modules['ExpGamingAdmin.ClearInventory'] then verbose('ExpGamingAdmin.ClearInventory is installed; Loading tempban src') require(module_path..'/src/clear',{Admin=Admin}) end
if loaded_modules['ExpGamingAdmin.TempBan'] then verbose('ExpGamingAdmin.TempBan is installed; Loading tempban src') require(module_path..'/src/tempban',{self=Admin}) end
if loaded_modules['ExpGamingAdmin.Jail'] then verbose('ExpGamingAdmin.Jail is installed; Loading tempban src') require(module_path..'/src/jail',{self=Admin}) end
if loaded_modules['ExpGamingAdmin.Warnings'] then verbose('ExpGamingAdmin.Warnings is installed; Loading tempban src') require(module_path..'/src/warnings',{self=Admin}) end
if loaded_modules['ExpGamingAdmin.Reports'] then verbose('ExpGamingAdmin.Reports is installed; Loading tempban src') require(module_path..'/src/reports',{self=Admin}) end
if loaded_modules['ExpGamingAdmin.ClearInventory'] then verbose('ExpGamingAdmin.ClearInventory is installed; Loading tempban src') require(module_path..'/src/clear',{self=Admin}) end
end
}

View File

@@ -1,4 +1,4 @@
local Admin = Admin
local Admin = self
--- Clears a players inventory and moves it to chests in spawn
-- @command clear-inv

View File

@@ -1,5 +1,5 @@
local Admin = Admin
local Role = require('ExpGamingCore.Role')
local Admin = self
local Role = require('ExpGamingCore.Role@^4.0.0')
--- Used to jail a player which stops them from moving
-- @command jail

View File

@@ -1,4 +1,4 @@
local Admin = Admin
local Admin = self
local Role = require('ExpGamingCore.Role@^4.0.0')
--- Reports a player

View File

@@ -1,4 +1,4 @@
local Admin = Admin
local Admin = self
--- Used to temp ban a player and give a reason
-- @command temp-ban

View File

@@ -1,4 +1,4 @@
local Admin = Admin
local Admin = self
local Role = require('ExpGamingCore.Role@^4.0.0')
--- Gives a warning to a player