daily pastebin goal
20%
SHARE
TWEET

Untitled

Errands Feb 19th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.    
  3.      ____            _      
  4.     | __ )  __ _ ___(_) ___
  5.     |  _ \ / _` / __| |/ __|
  6.     | |_) | (_| \__ \ | (__
  7.     |____/ \__,_|___/_|\___|
  8.                            
  9.     Admin Essentials 2.0
  10.     Created by TheFurryFish
  11.    
  12.     Instructions:
  13.     Place this Model in
  14.     "ServerScriptService"
  15.    
  16.     Note:
  17.     You can remove the Model and
  18.     place the script itself in
  19.     ServerScriptService if you wish.
  20.    
  21.     There is more information regarding
  22.     this admin script in the description
  23.     of the actual model if you are interested.
  24.    
  25.     If you are confused as to how to configure this,
  26.     please scroll to the bottom of this script
  27.     for examples.
  28.    
  29.     As the creator of the game, you are automatically
  30.     owner-admined, so you do not have to add yourself
  31.     to any of the tables below.
  32.    
  33. --]]
  34.  
  35. -------------------
  36. -- Configuration --
  37. -------------------
  38.  
  39. local Configuration = {
  40.     ['Loader ID'] = 563619835,
  41.  
  42.     --[[
  43.        
  44.         Example:
  45.        
  46.         ['Super Admins'] = {
  47.             ["1"] = "ROBLOX",
  48.             ["2"] = "John Doe",
  49.             ["3"] = "Jane Doe",
  50.         },
  51.  
  52.         ["1"] is the User ID
  53.         "ROBLOX" is their Username
  54.        
  55.         This format is the same for
  56.         Super Admins, Admins, Mods,
  57.         and Banned.
  58.        
  59.     --]]
  60.    
  61.     ['Super Admins'] = {
  62.  
  63.     },
  64.    
  65.     ['Admins'] = {
  66.        
  67.    
  68.     },
  69.        
  70.     ['Mods'] = {
  71.    
  72.     },
  73.    
  74.     ['Banned'] = {
  75.  
  76.     },
  77.    
  78.     ['Group Configuration'] = {
  79.         {
  80.             ['Group ID'] = 0,
  81.             ['Group Rank'] = 0,
  82.             ['Tolerance Type'] = '>=',
  83.             ['Admin Level'] = 0,
  84.         },
  85.     },
  86.    
  87.     ['Command Configuration'] = {
  88.         ['shutdown'] = {
  89.             ['Permission'] = 3,
  90.         },
  91.         ['fly'] = {
  92.             ['Permission'] = 3,
  93.         },
  94.         ['unfly'] = {
  95.             ['Permission'] = 3,
  96.     },
  97.  
  98.     ['Prefix'] = (':'), -- The prefix to the admin, i.e :cmds or :sm hi
  99.     ['Kick Reason'] = ('You have been kicked from the server.'), -- Displayed to people that are kicked.
  100.     ['Ban Reason'] = ('You have been banned from the game.'), -- Displayed to people that are banned.
  101.     ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'), -- Displayed to people when the server is shut down.
  102.     ['Server Message'] = ('Server Message'), -- Displayed in the :sm command's title.
  103.     ['Server Lock Reason'] = ('The server is locked.'), -- Displayed to people being kicked that try to enter a locked server.
  104.     ['Trello'] = false, -- Use trello? HttpService must be enabled.
  105.     ['Trello Board'] = (''), -- Trello board ID.
  106.     ['Trello App Key'] = (''), -- Private trello application key.
  107.     ['Trello Token'] = (''), -- Private trello token.
  108.     ['Creator Debugging'] = true, -- Allows the creator to debug potential issues with the admin.
  109.     ['Donor Perks'] = true, -- Gives people who purchase an admin donation the ability to cape, put hats on, etc.
  110.     ['Public Commands'] = true, -- Will people that are not admin be able to say :cmds, or !clean?
  111.     ['Auto Clean'] = true, -- Will hats and gear automatically be cleaned up every so often?
  112.     ['System Color'] = Color3.new(31/255,31/255,31/255), -- Color of the admin's guis.
  113.     ['Tools Location'] = game.ServerStorage, -- Where the :tools and :give command will get tools from.
  114.     ['Command Confirmation'] = false, -- Validates certain commands like :Ban all, or :PBan all.
  115.     ['Datastore Key'] = ('BAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
  116. }
  117.  
  118. --------------------------
  119. -- End of Configuration --
  120. --------------------------
  121.  
  122. ------------------
  123. -- Help Section --
  124. ------------------
  125.  
  126. --[[
  127.  
  128.     * Trello Bans Help
  129.    
  130.     Steps to follow:
  131.     1) Make sure HttpService is enabled, to do so, paste
  132.     "game:GetService('HttpService').HttpEnabled = true" into the command bar.
  133.     2) Make sure Trello Bans is enabled
  134.     3) Make sure the trello board is public
  135.     4) Paste the trello board ID into the Trello Board ID option
  136.     5) On the trello board, create a list called "Ban List"
  137.     6) Add bans
  138.    
  139.     Note that the ban format for the name of the card is:
  140.     Shedletsky:261
  141.  
  142.     -----------------------------------------------------------------------------  
  143.    
  144.     * Group Admin Help:
  145.     Types of admin
  146.     1 = Mod
  147.     2 = Admin
  148.     3 = Super Admin
  149.    
  150.     The empty table should appear as this:
  151.     ['Group Configuration'] = {
  152.         {
  153.             ['Group ID'] = 0,
  154.             ['Group Rank'] = 0,
  155.             ['Tolerance Type'] = '>=',
  156.             ['Admin Level'] = 0,
  157.         },
  158.     },
  159.    
  160.     To add a group, create another table inside of the existing one;
  161.     this should look like this:
  162.     ['Group Configuration'] = {
  163.         {
  164.             ['Group ID'] = 0,
  165.             ['Group Rank'] = 0,
  166.             ['Tolerance Type'] = '>=',
  167.             ['Admin Level'] = 0,
  168.         },
  169.         {
  170.             ['Group ID'] = 0,
  171.             ['Group Rank'] = 0,
  172.             ['Tolerance Type'] = '>=',
  173.             ['Admin Level'] = 0,
  174.         },
  175.     },
  176.    
  177.     Now add the group id into it, followed by a comma, followed by the group rank,
  178.     - followed by the level of admin those users should receive.
  179.    
  180.     An example of a finished product is:
  181.     {
  182.         ['Group ID'] = 950346,
  183.         ['Group Rank'] = 20,
  184.         ['Tolerance Type'] = '>=',
  185.         ['Admin Level'] = 2,
  186.     },
  187.    
  188.     That will give people in the group id "950346", whom are at rank 20 or higher, level 2 admin,
  189.     - which is regular admin.
  190.    
  191.     ------------------------------------------------------------------------------
  192.    
  193.     * Command Configuration Help
  194.    
  195.     ['Command Configuration'] = {
  196.         ['fly'] = {
  197.             ['Permission'] = 1,
  198.         },
  199.     },
  200.    
  201.     ['fly'] is the command being altered or changed.
  202.     ['Permission'] is the property of the command being changed.
  203.    
  204.     There are 5 levels of admin,
  205.     0 = Everyone
  206.     1 = Mod
  207.     2 = Admin
  208.     3 = Superadmin
  209.     4 = Game Creator
  210.    
  211.     If you only wanted admins to fly, change
  212.     the 1 to a 2.
  213.    
  214.     ['Command Configuration'] = {
  215.         ['fly'] = {
  216.             ['Permission'] = 2,
  217.         },
  218.         ['unfly'] = {
  219.             ['Permission'] = 2,
  220.         },
  221.     },
  222.    
  223. --]]
  224.  
  225. ----------------------------
  226. -- Configuration Examples --
  227. ----------------------------
  228.  
  229. --[[
  230.    
  231.     Note that if you have multiple
  232.     admins, mods, banned, etc., you
  233.     must have a comma after the previous
  234.     entry.
  235.    
  236.     local Configuration = {
  237.         ['Loader ID'] = script.MainModule,
  238.        
  239.         ['Super Admins'] = {
  240.             ['261'] = "Shedletsky",
  241.         },
  242.        
  243.         ['Admins'] = {
  244.             ['261'] = "Shedletsky",
  245.         },
  246.            
  247.         ['Mods'] = {
  248.             ['261'] = "Shedletsky"
  249.         },
  250.        
  251.         ['Banned'] = {
  252.             ['261'] = "Shedletsky",
  253.         },
  254.        
  255.         ['Group Configuration'] = {
  256.             {
  257.                 ['Group ID'] = 0,
  258.                 ['Group Rank'] = 0,
  259.                 ['Tolerance Type'] = '>=',
  260.                 ['Admin Level'] = 0,
  261.             },
  262.         },
  263.            
  264.         ['Command Configuration'] = {
  265.             ['fly'] = {
  266.                 ['Permission'] = 1,
  267.             },
  268.             ['unfly'] = {
  269.                 ['Permission'] = 1,
  270.             },
  271.         },
  272.        
  273.         ['Prefix'] = (':'),
  274.         ['Kick Reason'] = ('You have been kicked from the server.'),
  275.         ['Ban Reason'] = ('You have been banned from the game.'),
  276.         ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'),
  277.         ['Server Message'] = ('Server Message'),
  278.         ['Server Lock Reason'] = ('The server is locked.'),
  279.         ['Trello'] = false,
  280.         ['Trello Board'] = (''),
  281.         ['Trello App Key'] = (''),
  282.         ['Trello Token'] = (''),
  283.         ['Creator Debugging'] = true,
  284.         ['Donor Perks'] = true,
  285.         ['Public Commands'] = true,
  286.         ['Auto Clean'] = true,
  287.         ['System Color'] = Color3.new(31/255,31/255,31/255),
  288.         ['Tools Location'] = game.ServerStorage,
  289.         ['Command Confirmation'] = false, -- Validates certain commands like :Ban all, or :PBan all.
  290.         ['Datastore Key'] = ('BAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
  291.     }
  292.        
  293. --]]
  294.  
  295. ---------------------
  296. -- End of Examples --
  297. ---------------------
  298.  
  299. local Plugins
  300. if script:FindFirstChild('Plugins') and #(script:FindFirstChild('Plugins'):GetChildren()) >= 1 then
  301.     Plugins = script:FindFirstChild('Plugins')
  302. end
  303.  
  304. if script.Parent ~= game:GetService('ServerScriptService') then
  305.     script.Parent = game:GetService('ServerScriptService')
  306. end
  307.  
  308. require(Configuration['Loader ID'])(Plugins,Configuration)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top