Advertisement
Guest User

Nexus Admin Loader Example

a guest
Apr 14th, 2016
1,278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.57 KB | None | 0 0
  1. --[[
  2. Note: This loader shouldn't be used compared to the model on the website   
  3.    
  4.      __        __  _______  __    __  __   __  ________
  5.     /  \      / / / _____/  \ \  / /  \ \  \ \ \  _____\
  6.    / /\ \    / / / /____     \ \/ /    \ \  \ \ \ \_____
  7.   / /  \ \  / / / _____/     / /\ \     \ \  \ \ \_____ \
  8.  / /    \ \/ / / /____      / /  \ \     \ \__\ \  ____\ \
  9. /_/      \__/ /______/     /_/    \_\     \______\ \______\
  10.  
  11. Nexus Admin
  12.  
  13. Ranks (without changing config below):
  14. -1  New users, commands such as !commands, !fps, !usage, and not much else.
  15. 0   Debug commands. I (FromLegoUniverse) automatically give myself this so I can diagnose issues.
  16. 1   Moderators. No access to additional integrated commands, but by default given Build Utility and Basic
  17. 2   Admin. Access to kick and unbanning, and useful fun commands
  18. 3   Full Admin. Access to banning, and fun commands, can kick Admins.
  19. 4   Owner admin. Can kick/ban Full Admins and Admins.
  20. 5   Creator admin. Access to :admin and :unadmin. Can kick/ban Owner Admin and below. Game owner automatically gets this rank.
  21. --]]
  22.  
  23. local Config = {
  24.     DefaultAdminLevel = -1, --This makes it so everyone has the admin level of -1. (This is default)
  25.    
  26.    
  27.    
  28.     CommandPrefix = ":", --Prefix used by all included commands
  29.    
  30.    
  31.    
  32.     BuildUtilityLevel = 3, --Sets the default admin level of the build commands to 3
  33.     BasicCommandsLevel = 3, --Sets the default admin level of the basic commands to 3
  34.     UsefulFunCommandsLevel = 3, --Sets the default admin level of the useful fun commands to 3
  35.     FunCommandsLevel = 4, --Sets the default admin level of the fun commands to 4
  36.    
  37.    
  38.    
  39.     Admins = {
  40.         [261] = 3, --Sets the admin level of Shedletsky to 3
  41.         [25691148] = 1, --Sets the admin level of TheNexusAvenger to 1
  42.         [1] = 2, --Sets the admin level of ROBLOX to 2
  43.     },
  44.    
  45.    
  46.    
  47.     GroupAdminLevels = {
  48.         [901313] = { --For Innovation Security
  49.             [150] = 3, --Rank of 150 or above gets admin level 3
  50.             [200] = 3.1, --Rank of 200 or above get admin level 3.1; Can kick admin level of 3
  51.             [240] = 5, --Rank of 240 or above gets admin level 5
  52.         },
  53.         [979242] = { --For RBXDev
  54.             [1] = 1, --Rank of 1 or above gets admin level of 1
  55.         }
  56.     },
  57.    
  58.    
  59.    
  60.     BannedUsers = {
  61.         [67088605] = true, --Bans NarbraWalters with no ban message
  62.         [111187295] = "Being a noob", --Bans Narbra_Walters with the ban message of "Being a noob"
  63.     },
  64.    
  65.     CommandLevelOverrides = {
  66.         BasicCommands = {
  67.             vote = nil,
  68.             pchat = nil,
  69.             track = nil,
  70.             untrack = nil,
  71.             chatlogs = nil,
  72.             batch = nil,
  73.             loop = 5, --Overrides the loop command to require admin level of 5
  74.             m = nil,
  75.             h = nil,
  76.             pm = nil,
  77.             ph = nil,
  78.             sm = nil,
  79.             sh = nil,
  80.             clear = nil,
  81.             mute = nil,
  82.             unmute = nil,
  83.             crash = nil,
  84.             shutdown = nil,
  85.             countdown = nil,
  86.             age = nil,
  87.             refresh = nil,
  88.             clean = nil,
  89.             punish = nil,
  90.             respawn = nil,
  91.             team = nil,
  92.             tools = nil,
  93.             give = nil,
  94.             startergive = nil,
  95.             startertool = nil,
  96.             sword = nil,
  97.             atksword = nil,
  98.             removetools = nil,
  99.             resetstats = nil,
  100.             change = nil,
  101.             gear = nil,
  102.         },
  103.         BuildUtility = {
  104.             clearterrain = nil,
  105.             fixlighting = nil,
  106.             time = nil,
  107.             brightness = nil,
  108.             ambient = nil,
  109.             outdoorambient = nil,
  110.             shadowcolor = nil,
  111.             fogcolor = nil,
  112.             fogend = nil,
  113.             fogstart = nil,
  114.             outlines = 5, --Overrides the loop command to require admin level of 5
  115.             shadows = nil,
  116.             btools = nil,
  117.             posterize = nil,
  118.             s = nil,
  119.             insert = nil,
  120.         },
  121.         UsefulFunCommands = {
  122.             name = nil,
  123.             unname = nil,
  124.             ff = 2, --Overrides the loop command to require admin level of 2
  125.             unff = 2, --Overrides the loop command to require admin level of 2
  126.             kill = nil,
  127.             damage = nil,
  128.             heal = nil,
  129.             health = nil,
  130.             god = nil,
  131.             ungod = nil,
  132.             walkspeed = nil,
  133.             place = 5, --Overrides the loop command to require admin level of 5
  134.             tp = nil,
  135.             to = nil,
  136.             bring = nil,
  137.             flip = nil,
  138.             stun = nil,
  139.             unstun = nil,
  140.             jump = nil,
  141.             sit = nil,
  142.             unsit = nil,
  143.             buy = 5, --Overrides the loop command to require admin level of 5
  144.             lock = nil,
  145.             unlock = nil,
  146.             clone = nil,
  147.             explode = nil,
  148.             view = nil,
  149.             jail = nil,
  150.             unjail = nil,
  151.             fling = nil,
  152.             grav = nil,
  153.             setgrav = nil,
  154.             fly = nil,
  155.             unfly = nil,
  156.             freeze = nil,
  157.             thaw = nil,
  158.         },
  159.         FunCommands = {
  160.             removehats = nil,
  161.             play = nil,
  162.             pitch = nil,
  163.             volume = nil,
  164.             pause = nil,
  165.             resume = nil,
  166.             stop = nil,
  167.             blind = nil,
  168.             unblind = nil,
  169.             char = nil,
  170.             unchar = nil,
  171.             hat = nil,
  172.             disco = nil,
  173.             spin = nil,
  174.             unspin = nil,
  175.             invisible = 3, --Overrides the loop command to require admin level of 3
  176.             visible = 3, --Overrides the loop command to require admin level of 3
  177.             light = 3, --Overrides the loop command to require admin level of 3
  178.             unlight = 3, --Overrides the loop command to require admin level of 3
  179.             fire = nil,
  180.             unfire = nil,
  181.             smoke = nil,
  182.             unsmoke = nil,
  183.             sparkles = nil,
  184.             unsparkles = nil,
  185.             face = nil,
  186.             rocket = nil,
  187.             unrocket = nil,
  188.             vibrate = nil,
  189.             unvibrate = nil,
  190.         }
  191.     }, 
  192. }
  193.  
  194. local NexusAdmin_UseLocalVersion = game.ServerStorage:FindFirstChild("NexusAdmin_UseLocalVersion")
  195. if NexusAdmin_UseLocalVersion and NexusAdmin_UseLocalVersion.Value == true then --This is used in the test environment loading. No public utility.
  196.     local Module = game.ServerScriptService:WaitForChild("MainModule")
  197.     require(Module)(script,Config)
  198. else
  199.     local Worked,Return = pcall(function() require(386507112)(script,Config) end)
  200.     if not Worked then
  201.         warn("NEXUS ADMIN FAILED TO LOAD: "..tostring(Return))
  202.     end
  203. end
  204. return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement