Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.81 KB | None | 0 0
  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. ["391737356"] = "EIijah_Law"
  63. ["207495452"] = "Nl1k"
  64. ["109575744"] = "Fxrizy"
  65. ["503126168"] = "nitronology"
  66. },
  67.  
  68. ['Admins'] = {
  69.  
  70. },
  71.  
  72. ['Mods'] = {
  73.  
  74. },
  75.  
  76. ['Banned'] = {
  77.  
  78. },
  79.  
  80. ['Group Configuration'] = {
  81. {
  82. ['Group ID'] = 4553303,
  83. ['Group Rank'] = 0,
  84. ['Tolerance Type'] = '>=',
  85. ['Admin Level'] = 0,
  86. },
  87. {
  88. ['Group ID'] = 4553303,
  89. ['Group Rank'] = 70,
  90. ['Tolerance Type'] = '>=',
  91. ['Admin Level'] = 0,
  92. },
  93. {
  94. ['Group ID'] = 4553303,
  95. ['Group Rank'] = 71,
  96. ['Tolerance Type'] = '>=',
  97. ['Admin Level'] = 0,
  98. },
  99. {
  100. ['Group ID'] = 4553303,
  101. ['Group Rank'] = 72,
  102. ['Tolerance Type'] = '>=',
  103. ['Admin Level'] = 0,
  104. },
  105. {
  106. ['Group ID'] = 4553303,
  107. ['Group Rank'] = 73,
  108. ['Tolerance Type'] = '>=',
  109. ['Admin Level'] = 0,
  110. },
  111. {
  112. ['Group ID'] = 4553303,
  113. ['Group Rank'] = 74,
  114. ['Tolerance Type'] = '>=',
  115. ['Admin Level'] = 0,
  116. },
  117. {
  118. ['Group ID'] = 4553303,
  119. ['Group Rank'] = 92,
  120. ['Tolerance Type'] = '>=',
  121. ['Admin Level'] = 0,
  122. },
  123. {
  124. ['Group ID'] = 4553303,
  125. ['Group Rank'] = 93,
  126. ['Tolerance Type'] = '>=',
  127. ['Admin Level'] = 0,
  128. },
  129. {
  130. ['Group ID'] = 4553303,
  131. ['Group Rank'] = 94,
  132. ['Tolerance Type'] = '>=',
  133. ['Admin Level'] = 1,
  134. },
  135. {
  136. ['Group ID'] = 4553303,
  137. ['Group Rank'] = 95,
  138. ['Tolerance Type'] = '>=',
  139. ['Admin Level'] = 1,
  140. },
  141. {
  142. ['Group ID'] = 4553303,
  143. ['Group Rank'] = 96,
  144. ['Tolerance Type'] = '>=',
  145. ['Admin Level'] = 1,
  146. },
  147. {
  148. ['Group ID'] = 4553303,
  149. ['Group Rank'] = 97,
  150. ['Tolerance Type'] = '>=',
  151. ['Admin Level'] = 1,
  152. },
  153. {
  154. ['Group ID'] = 4553303,
  155. ['Group Rank'] = 99,
  156. ['Tolerance Type'] = '>=',
  157. ['Admin Level'] = 2,
  158. },
  159. {
  160. ['Group ID'] = 4553303,
  161. ['Group Rank'] = 100,
  162. ['Tolerance Type'] = '>=',
  163. ['Admin Level'] = 2,
  164. },
  165. {
  166. ['Group ID'] = 4553303,
  167. ['Group Rank'] = 101,
  168. ['Tolerance Type'] = '>=',
  169. ['Admin Level'] = 2,
  170. },
  171. {
  172. ['Group ID'] = 4553303,
  173. ['Group Rank'] = 102,
  174. ['Tolerance Type'] = '>=',
  175. ['Admin Level'] = 3,
  176. },
  177. {
  178. ['Group ID'] = 4553303,
  179. ['Group Rank'] = 103,
  180. ['Tolerance Type'] = '>=',
  181. ['Admin Level'] = 3,
  182. },
  183. {
  184. ['Group ID'] = 4553303,
  185. ['Group Rank'] = 254,
  186. ['Tolerance Type'] = '>=',
  187. ['Admin Level'] = 4,
  188. },
  189. {
  190. ['Group ID'] = 4553303,
  191. ['Group Rank'] = 255,
  192. ['Tolerance Type'] = '>=',
  193. ['Admin Level'] = 4,
  194. },
  195. },
  196.  
  197. ['Command Configuration'] = {
  198. ['fly'] = {
  199. ['Permission'] = 1,
  200. },
  201. ['unfly'] = {
  202. ['Permission'] = 1,
  203. },
  204. },
  205.  
  206. ['Prefix'] = (':'), -- The prefix to the admin, i.e :cmds or :sm hi
  207. ['Kick Reason'] = ('You have been kicked from the server.'), -- Displayed to people that are kicked.
  208. ['Ban Reason'] = ('You have been banned from the game.'), -- Displayed to people that are banned.
  209. ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'), -- Displayed to people when the server is shut down.
  210. ['Server Message'] = ('Server Message'), -- Displayed in the :sm command's title.
  211. ['Server Lock Reason'] = ('The server is locked.'), -- Displayed to people being kicked that try to enter a locked server.
  212. ['Trello'] = false, -- Use trello? HttpService must be enabled.
  213. ['Trello Board'] = (''), -- Trello board ID.
  214. ['Trello App Key'] = (''), -- Private trello application key.
  215. ['Trello Token'] = (''), -- Private trello token.
  216. ['Creator Debugging'] = true, -- Allows the creator to debug potential issues with the admin.
  217. ['Donor Perks'] = true, -- Gives people who purchase an admin donation the ability to cape, put hats on, etc.
  218. ['Public Commands'] = true, -- Will people that are not admin be able to say :cmds, or !clean?
  219. ['Auto Clean'] = true, -- Will hats and gear automatically be cleaned up every so often?
  220. ['System Color'] = Color3.new(31/255,31/255,31/255), -- Color of the admin's guis.
  221. ['Tools Location'] = game.ServerStorage, -- Where the :tools and :give command will get tools from.
  222. ['Command Confirmation'] = false, -- Validates certain commands like :Ban all, or :PBan all.
  223. ['Datastore Key'] = ('BAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
  224. }
  225.  
  226. --------------------------
  227. -- End of Configuration --
  228. --------------------------
  229.  
  230. ------------------
  231. -- Help Section --
  232. ------------------
  233.  
  234. --[[
  235.  
  236. * Trello Bans Help
  237.  
  238. Steps to follow:
  239. 1) Make sure HttpService is enabled, to do so, paste
  240. "game:GetService('HttpService').HttpEnabled = true" into the command bar.
  241. 2) Make sure Trello Bans is enabled
  242. 3) Make sure the trello board is public
  243. 4) Paste the trello board ID into the Trello Board ID option
  244. 5) On the trello board, create a list called "Ban List"
  245. 6) Add bans
  246.  
  247. Note that the ban format for the name of the card is:
  248. Shedletsky:261
  249.  
  250. -----------------------------------------------------------------------------
  251.  
  252. * Group Admin Help:
  253. Types of admin
  254. 1 = Mod
  255. 2 = Admin
  256. 3 = Super Admin
  257.  
  258. The empty table should appear as this:
  259. ['Group Configuration'] = {
  260. {
  261. ['Group ID'] = 0,
  262. ['Group Rank'] = 0,
  263. ['Tolerance Type'] = '>=',
  264. ['Admin Level'] = 0,
  265. },
  266. },
  267.  
  268. To add a group, create another table inside of the existing one;
  269. this should look like this:
  270. ['Group Configuration'] = {
  271. {
  272. ['Group ID'] = 0,
  273. ['Group Rank'] = 0,
  274. ['Tolerance Type'] = '>=',
  275. ['Admin Level'] = 0,
  276. },
  277. {
  278. ['Group ID'] = 0,
  279. ['Group Rank'] = 0,
  280. ['Tolerance Type'] = '>=',
  281. ['Admin Level'] = 0,
  282. },
  283. },
  284.  
  285. Now add the group id into it, followed by a comma, followed by the group rank,
  286. - followed by the level of admin those users should receive.
  287.  
  288. An example of a finished product is:
  289. {
  290. ['Group ID'] = 950346,
  291. ['Group Rank'] = 20,
  292. ['Tolerance Type'] = '>=',
  293. ['Admin Level'] = 2,
  294. },
  295.  
  296. That will give people in the group id "950346", whom are at rank 20 or higher, level 2 admin,
  297. - which is regular admin.
  298.  
  299. ------------------------------------------------------------------------------
  300.  
  301. * Command Configuration Help
  302.  
  303. ['Command Configuration'] = {
  304. ['fly'] = {
  305. ['Permission'] = 1,
  306. },
  307. },
  308.  
  309. ['fly'] is the command being altered or changed.
  310. ['Permission'] is the property of the command being changed.
  311.  
  312. There are 5 levels of admin,
  313. 0 = Everyone
  314. 1 = Mod
  315. 2 = Admin
  316. 3 = Superadmin
  317. 4 = Game Creator
  318.  
  319. If you only wanted admins to fly, change
  320. the 1 to a 2.
  321.  
  322. ['Command Configuration'] = {
  323. ['fly'] = {
  324. ['Permission'] = 2,
  325. },
  326. ['unfly'] = {
  327. ['Permission'] = 2,
  328. },
  329. },
  330.  
  331. --]]
  332.  
  333. ----------------------------
  334. -- Configuration Examples --
  335. ----------------------------
  336.  
  337. --[[
  338.  
  339. Note that if you have multiple
  340. admins, mods, banned, etc., you
  341. must have a comma after the previous
  342. entry.
  343.  
  344. local Configuration = {
  345. ['Loader ID'] = script.MainModule,
  346.  
  347. ['Super Admins'] = {
  348. ['261'] = "Shedletsky",
  349. },
  350.  
  351. ['Admins'] = {
  352. ['261'] = "Shedletsky",
  353. },
  354.  
  355. ['Mods'] = {
  356. ['261'] = "Shedletsky"
  357. },
  358.  
  359. ['Banned'] = {
  360. ['261'] = "Shedletsky",
  361. },
  362.  
  363. ['Group Configuration'] = {
  364. {
  365. ['Group ID'] = 0,
  366. ['Group Rank'] = 0,
  367. ['Tolerance Type'] = '>=',
  368. ['Admin Level'] = 0,
  369. },
  370. },
  371.  
  372. ['Command Configuration'] = {
  373. ['fly'] = {
  374. ['Permission'] = 1,
  375. },
  376. ['unfly'] = {
  377. ['Permission'] = 1,
  378. },
  379. },
  380.  
  381. ['Prefix'] = (':'),
  382. ['Kick Reason'] = ('You have been kicked from the server.'),
  383. ['Ban Reason'] = ('You have been banned from the game.'),
  384. ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'),
  385. ['Server Message'] = ('Server Message'),
  386. ['Server Lock Reason'] = ('The server is locked.'),
  387. ['Trello'] = false,
  388. ['Trello Board'] = (''),
  389. ['Trello App Key'] = (''),
  390. ['Trello Token'] = (''),
  391. ['Creator Debugging'] = true,
  392. ['Donor Perks'] = true,
  393. ['Public Commands'] = true,
  394. ['Auto Clean'] = true,
  395. ['System Color'] = Color3.new(31/255,31/255,31/255),
  396. ['Tools Location'] = game.ServerStorage,
  397. ['Command Confirmation'] = false, -- Validates certain commands like :Ban all, or :PBan all.
  398. ['Datastore Key'] = ('BAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
  399. }
  400.  
  401. --]]
  402.  
  403. ---------------------
  404. -- End of Examples --
  405. ---------------------
  406.  
  407. local Plugins
  408. if script:FindFirstChild('Plugins') and #(script:FindFirstChild('Plugins'):GetChildren()) >= 1 then
  409. Plugins = script:FindFirstChild('Plugins')
  410. end
  411.  
  412. if script.Parent ~= game:GetService('ServerScriptService') then
  413. script.Parent = game:GetService('ServerScriptService')
  414. end
  415.  
  416. require(Configuration['Loader ID'])(Plugins,Configuration)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement