Advertisement
FrostedWeFall

SE

Jan 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.69 KB | None | 0 0
  1. #Thank you for using my SimpleEssentials V0.6-A 1.12.2 Skript#
  2. #Be sure to check out my other Skripts and Plugins below#
  3. #Just copy and paste the following links into your browser or search engine#
  4. #https://www.spigotmc.org/resources/%E2%98%85-basicbackpacks-%E2%98%85-the-best-working-backpacks-plugin-%E2%96%BA-constant-updates-%E2%97%84.47339/#
  5. #https://www.spigotmc.org/resources/playervaults-duplication-protect.45711/
  6. #https://www.spigotmc.org/resources/frostclearlag.46239/#
  7. #https://www.spigotmc.org/resources/%E2%9C%B1-combat-log-%E2%9C%B1-skript-%E2%9C%B1-1-8-x-1-12-2-%E2%9C%B1-fully-customizable-%E2%9C%B1-new-%E2%9C%B1.49866/#
  8. #https://www.spigotmc.org/resources/consolecommands.50744/#
  9. #More plugins coming soon including a paid version of chatcore!#
  10. #Thanks for reading, I hope you enjoy my plugin!#
  11.  
  12.  
  13. # Disabled Configuration Parts
  14. # To enable remove the "#" before and after the code, to remove it add "#" before it
  15.  
  16. # Line 382 | 383 - Set spawn points = Disabled # When editing this put a # before the code on Line 384
  17. # Line 270 | 271 - Teleport to spawn on first join = Disabled #
  18.  
  19. options:
  20. Version: V 0.6-A
  21. nopermission: &7You do not have the required permissions to execute this command, please contact a server administrator if you think this is wrong!
  22. elevatornopermission: &cYou do not have the correct permissions to create Elevator Signs!
  23. serverip: play.example.com # <- Put your server IP in here #
  24. discord: example.com # <- Put your discord link in here #
  25. buycraft: store.example.com # <- Put your buycraft link in here #
  26. website: example.com # <- Put your website link in here #
  27.  
  28.  
  29. # Custom Variables #
  30. # Here you can see all the custom variables made by me FrostedWeFall which you can implement into text, all you have to do to implement it is type %{@variablename}%
  31. # Variables are Skript's way to save data. Every variable has a name and a value, i.e. some stored data. You can put variables anywhere in your triggers to replace something,
  32. # e.g. you can replace a location with a variable that holds a location.
  33. # This can for example be used for a /home command: make a variable ‘home’ and a command /home which teleports the player to the location stored in the ‘home’ variable.
  34. # To distinguish variables from the rest of the trigger their name has to be put in curly brackets like this: {variable name}.
  35. # A variable's name can also contain expressions, e.g. to make a ‘home’ variable for every player you can make a variable like {home.%player%}
  36. # where %player% will be replaced by the player's name every time the variable is used, which essentially creates a ‘home’ variable that is different for every player. #
  37. # Here is another example #
  38. # command /sethome:
  39. # permission: skript.home
  40. # description: Set your home
  41. # trigger:
  42. # set {home.%player%} to location of player
  43. # message "Set your home to <grey>%location of player%<reset>"
  44. #
  45. # command /home:
  46. # permission: skript.home
  47. # description: Teleport yourself to your home
  48. # trigger:
  49. # if {home.%player%} is not set:
  50. # message "You have not set your home yet!"
  51. # stop trigger
  52. # teleport player to {home.%player%}
  53.  
  54.  
  55. # Custom Variables List #
  56. # Variable | | Usage | Optional Usage #
  57. # home.%player% - %{home.%player% or {home.%player%}
  58. # _player - {_player} - %player%
  59. # _loc ( Location ) - {_loc}
  60. # Custom Variables Functions #
  61.  
  62. on join:
  63. set {_player} to player
  64.  
  65.  
  66.  
  67.  
  68. command /sethome:
  69. description: Lets the player set a home!
  70. aliases: /shome, /simpleessentials:sethome, /simpleessentials:shome
  71. permission: simpleessentials.sethome
  72. permission message: {@nopermission}
  73. trigger:
  74. set {home.%player%} to location of player
  75. message "%nl%&7You have successfully set your home at {_loc}!%nl%"
  76.  
  77. command /home:
  78. description: Lets the player teleport to their home!
  79. aliases: /sehome, /simpleessentials:home, /simpleessentials:home
  80. permission: simpleessentials.home
  81. permission message: {@nopermission}
  82. trigger:
  83. if {home.%player%} is not set:
  84. message "&7You have not set your home yet! Set one with &9/sethome&7!"
  85. stop
  86. teleport player to {home.%player%}
  87.  
  88.  
  89.  
  90.  
  91. # You may edit the following piece of code if you understand how to use Skript
  92. command /console [<string>]:
  93. description: Lets the player execute console commands ingame!
  94. aliases: /c, /consolecommand, /simpleessentials:console
  95. permission: simpleessentials.console.command
  96. permission message: {@nopermission}
  97. trigger:
  98. if argument 1 is set:
  99. execute console command "%argument 1%"
  100. send "&9Executed command&7!"
  101. else:
  102. send "&7Invalid Usage! Try &9/console {command}&7!"
  103.  
  104. # Information Commands ( Check Options for more info ) #
  105.  
  106. command /serverip:
  107. description: Lets you see the IP for the server!
  108. aliases: /ip, /server, /simpleessentials:serverip
  109. permission: simpleessentials.command.serverip
  110. permission message: {@nopermission}
  111. trigger:
  112. message "%newline%&7The current servers ip address is &9{@serverip}%newline%"
  113. stop
  114. command /discord:
  115. description: Lets you see the discord link for the server!
  116. aliases: /disc, /simpleessentials:discord
  117. permission: simpleessentials.command.discord
  118. permission message: {@nopermission}
  119. trigger:
  120. message "%newline%&7The current discord link is &9{@discord}%newline%"
  121. stop
  122. command /store:
  123. description: Lets you see the discord link for the server!
  124. aliases: /shop, buycraft, /simpleessentials:buycraft, simpleessentials:store, simpleessentials:shop
  125. permission: simpleessentials.command.store
  126. permission message: {@nopermission}
  127. trigger:
  128. message "%newline%&7The current store link is &9&o{@buycraft}&r%newline%"
  129. stop
  130. command /website:
  131. description: Lets you see the website link for the server!
  132. aliases: /site, /serverwebsite, /simpleessentials:website, /simpleessentials:site
  133. permission: simpleessentials.command.website
  134. permission message: {@nopermission}
  135. trigger:
  136. message "%newline%&7The current website link is &9&o{@website}&r%newline%"
  137. stop
  138.  
  139. # Developer Information Commands #
  140.  
  141. command /simpleessentials:
  142. trigger:
  143. send "&7A complex alternative to other Essentials Skripts!"
  144. send "&7Developer / Creator: &9FrostedWeFall"
  145. send "&7Build: &9{@Version}"
  146. command /sereload:
  147. description: Lets you reload the plugin / skript!
  148. aliases: /sreload, /simpleessentialsreload, /simpleessentials:sreload
  149. permission: simpleessentials.admin.reload
  150. permission message: {@nopermission}
  151. trigger:
  152. broadcast "&9Simple Essentials &7{@Version} is reloading.."
  153. make player execute command "/sk reload SimpleEssentialsV0.4"
  154. wait 5 seconds
  155. broadcast "&aSimple Essentials {@Version} has succesfully reloaded!"
  156. broadcast "&7Please report any issues on the &9Github &7page!"
  157.  
  158. # Gamemode Commands #
  159.  
  160. command /gmc [<player>]:
  161. description: Lets you change you or another players gamemode to creative!
  162. aliases: /gamemodecreative, /gm1, /gamemodec, /simpleessentials:gmc
  163. permission: simpleessentials.gamemode.creative
  164. permission message: {@nopermission}
  165. trigger:
  166. set arg 1's gamemode to creative
  167. message "&7You have successfully set &9%arg 1%'s&7 gamemode to &9creative&7!"
  168.  
  169. command /gms [<player>]:
  170. description: Lets you change you or another players gamemode to survival!
  171. aliases: /gamemodesurvival, /gm0, /gamemodes, /simpleessentials:gms
  172. permission: simpleessentials.gamemode.survival
  173. permission message: {@nopermission}
  174. trigger:
  175. set arg 1's gamemode to survival
  176. message "&7You have successfully set &9%arg 1%'s&7 gamemode to &9survival&7!"
  177.  
  178. command /gma [<player>]:
  179. description: Lets you change you or another players gamemode to adventure!
  180. aliases: /gamemodeadventure, /gm2, /gamemodea, /simpleessentials:gma
  181. permission: simpleessentials.gamemode.adventure
  182. permission message: {@nopermission}
  183. trigger:
  184. set arg 1's gamemode to adventure
  185. message "&7You have successfully set &9%arg 1%'s&7 gamemode to &9adventure&7!"
  186.  
  187. command /cmdblock:
  188. description: Gives you a command block!
  189. aliases: /simpleessentials:cmdblock, /commandblock, simpleessentials:commandblock
  190. permission: simpleessentials.admin.commandblock
  191. permission message: {@nopermission}
  192. trigger:
  193. make console execute command "give %player% commandblock 1"
  194. message "&7%player% has successfully been given a &9Command Block&7!"
  195.  
  196.  
  197.  
  198.  
  199. # Other Skripts + Plugin Hooks #
  200.  
  201. every 15 minutes:
  202. make console execute command "Lagg clear" # <- Skript ChatCore or FrostClearLag hook #
  203.  
  204.  
  205. # More hooks coming soon #
  206.  
  207. # Elevator Sign Functions | Added 0.3 Update #
  208.  
  209. on sign change:
  210. line 1 is "[Elevator]":
  211. line 2 is "Up":
  212. player has permission "simpleessentials.elevator.create":
  213. set line 1 to "&7[&cElevator&7]"
  214. set line 2 to "Up"
  215. else:
  216. send "{@elevatornopermission}"
  217. line 2 is "up":
  218. player has permission "simpleessentials.elevator.create":
  219. set line 1 to "&7[&cElevator&7]"
  220. set line 2 to "Up"
  221. else:
  222. send "{@elevatornopermission}"
  223. line 2 is "uP":
  224. player has permission "simpleessentials.elevator.create":
  225. set line 1 to "&7[&cElevator&7]"
  226. set line 2 to "Up"
  227. else:
  228. send "{@elevatornopermission}"
  229. line 2 is "UP":
  230. player has permission "simpleessentials.elevator.create":
  231. set line 1 to "&7[&cElevator&7]"
  232. set line 2 to "Up"
  233. else:
  234. send "{@elevatornopermission}"
  235. on rightclick on sign:
  236. line 1 is "&7[&cElevator&7]":
  237. line 2 is "Up":
  238. player has permission "simpleessentials.elevator.create":
  239. set {_loc} to location of player
  240. set y-coordinate of {_loc} to 257
  241. loop 256 times:
  242. remove 1 from the y-coordinate of {_loc}
  243. if block at {_loc} is not air or torch or sign or water or lava:
  244. teleport player to block above {_loc}
  245. stop loop
  246. send "&7You have been elevated up!"
  247. stop
  248. else:
  249. send "{@elevatornopermission}"
  250.  
  251. # Old elevator signs will still work with the following piece of code #
  252.  
  253. on rightclick on sign:
  254. line 1 is "&1[Elevator]":
  255. line 2 is "Up":
  256. player has permission "simpleessentials.elevator.create":
  257. set {_loc} to location of player
  258. set y-coordinate of {_loc} to 257
  259. loop 256 times:
  260. remove 1 from the y-coordinate of {_loc}
  261. if block at {_loc} is not air or torch or sign or water or lava:
  262. teleport player to block above {_loc}
  263. stop loop
  264. message "&7You have been elevated up!"
  265. stop
  266. else:
  267. send "{@elevatornopermission}"
  268.  
  269.  
  270. # On first join functions #
  271. #on first join:
  272. #teleport player to {spawn}
  273.  
  274.  
  275.  
  276. # On command functions, this blocks the output of a command and replaces it with a message of your choice. #
  277.  
  278. on command:
  279. if command is "pl":
  280. if player doesn't have permission "simpleessentials.bypass":
  281. send "{@nopermission}"
  282. cancel event
  283. if command is "bukkit:pl":
  284. if player doesn't have permission "simpleessentials.bypass":
  285. send "{@nopermission}"
  286. cancel event
  287. if command is "plugins":
  288. if player doesn't have permission "simpleessentials.bypass":
  289. send "{@nopermission}"
  290. cancel event
  291. if command is "version":
  292. if player doesn't have permission "simpleessentials.bypass":
  293. send "{@nopermission}"
  294. cancel event
  295. if command is "icanhasbukkit":
  296. if player doesn't have permission "simpleessentials.bypass":
  297. send "{@nopermission}"
  298. cancel event
  299. if command is "help":
  300. if player doesn't have permission "simpleessentials.bypass":
  301. send "&cYou do not have the permission chatcore.admin and therefore cannot perform this operation. Please contact your server administrator if this is wrong."
  302. cancel event
  303. if command is "bukkit:help":
  304. if player doesn't have permission "simpleessentials.bypass":
  305. send "{@nopermission}"
  306. cancel event
  307. if command is "?":
  308. if player doesn't have permission "simpleessentials.bypass":
  309. send "{@nopermission}"
  310. cancel event
  311. if command is "bukkit:?":
  312. if player doesn't have permission "simpleessentials.bypass":
  313. send "{@nopermission}"
  314. cancel event
  315.  
  316.  
  317.  
  318.  
  319. # Time of day commands #
  320.  
  321. command /night:
  322. description: Sets the ingame server time to night!
  323. aliases: /n, /simpleessentials:night, /simpleessentials:n
  324. permission: simpleessentials.admin.time
  325. permission message: {@nopermission}
  326. trigger:
  327. set time to 23:59
  328. message "&7Ingame server time ( IST ) has successfully been set to &923:59&7!"
  329.  
  330. command /day:
  331. description: Sets the ingame server time to night!
  332. aliases: /d, /simpleessentials:day, /simpleessentials:d
  333. permission: simpleessentials.admin.time
  334. permission message: {@nopermission}
  335. trigger:
  336. set time to 05:59
  337. message "&7Ingame server time ( IST ) has successfully been set to &905:59&7!"
  338.  
  339. # Chat Commands #
  340.  
  341.  
  342. command /clearmychat:
  343. permission: simpleessentials.command.clearmychat
  344. trigger:
  345. message "&7"
  346. loop 150 times:
  347. message ""
  348. message ""
  349. message "&7Your chat has been &9cleared!"
  350. stop
  351.  
  352.  
  353. command /spawn [<player>]:
  354. aliases: /sp, /simpleessentials:spawn, /simpleessentials:sp
  355. description: Teleports you or another player to spawn.
  356. permission: simpleessentials.spawn
  357. permission message: {@nopermission}
  358. trigger:
  359. if {spawn} isn't set:
  360. message "&7You cannot &9teleport &7to spawn as a spawn has not been set&7!"
  361. stop
  362. else:
  363. argument 1 is not set:
  364. teleport player to {spawn}
  365. message "&7Teleporting..."
  366. else:
  367. if sender has permission "simpleessentials.spawn.others":
  368. if argument is online:
  369. teleport argument to {spawn}
  370. if sender is a player:
  371. message "&7You have been teleported to spawn by &9%player%&7." to argument 1
  372. if sender is not a player:
  373. message "&7You have been teleported to spawn by &9Console&7." to argument 1
  374. teleport player to {spawn}
  375.  
  376. command /setspawn:
  377. aliases: spawnset, sethub, hubset, setlobby, lobbyset
  378. description: Set a spawn at your current location!
  379. permission: simpleessentials.admin.setspawn
  380. permission message: {@nopermission}
  381. trigger:
  382. #message "&7You have &9set spawn&7 at your location!"
  383. #set {spawn} to location of player
  384. message "&cThis has been disabled from the config file! You may enable it!"
  385. command /heal:
  386. description: Heals you!
  387. aliases: /h, /simpleessentials:heal, /simpleessentials:h
  388. permission: simpleessentials.command.heal
  389. permission message: {@nopermission}
  390. trigger:
  391. apply Instant Health to the player for 5 seconds
  392. apply Saturation to the player for 5 seconds
  393. command /plugins:
  394. description: A better version of the Minecraft implemented plugin command!
  395. aliases: /pl, /plug, /simpleessentials:plugins, /simpleessentials:pl
  396. permission: simpleessentials.admin.plugins
  397. permission message: {@nopermission}
  398. trigger:
  399. send "&7This command is currently under development and therefore has been disabled"
  400.  
  401. command /sedisable:
  402. description: Shuts down the Simple Essentials Skript!
  403. aliases: /disable, /simpleessentialsdisable, /simpleessentials:sedisable
  404. permission: simpleessentials.admin.sedisable
  405. permission message: {@nopermission}
  406. trigger:
  407. broadcast "&7Unloading functions and files..."
  408. wait 2 seconds
  409. broadcast "&7Checking for new version..."
  410. wait 2 seconds
  411. broadcast "&7Disabling all 24 commands and 75+ aliases..."
  412. wait 1 second
  413. broadcast "&7Disabling Skript SimpleEssentials {@Version}..."
  414. wait 30 tick
  415. broadcast "&7Success!"
  416. broadcast "&7To re-enable Simple Essentials &9{@Version}&7 type /sk enable SimpleEssentialsV0.4 "
  417. make player execute command "sk disable SimpleEssentialsV0.4"
  418.  
  419. # Here is the "Help" command, you can edit the way this looks by using Minecraft Color Codes. Check out the Minecraft Color Codes at http://minecraft.tools/en/color-code.php #
  420.  
  421. command /se [<Text>] [<Integer>]:
  422. description: Shows help for SimpleEssentials and all the commands!
  423. aliases: /sessential, /simpleessentials:help
  424. permission: simpleessentials.command.help
  425. permission message: {@nopermission}
  426. trigger:
  427. if arg 1 is not set:
  428. message "&7 -> &9Invalid command, type &7/se help [<integer>]"
  429. if arg 1 is "help":
  430. if arg 2 is 1:
  431. message "&7&m----------&7[ &9SimpleEssentials Help &7&k|&e Page 1 &7]&m----------"
  432. message "&7 -> &9/se help &7- To See Info About The Plugin"
  433. message "&7 -> &9/console [<command>] &7- Execute commands through the console ingame."
  434. message "&7 -> &9/discord &7- To see the servers Discord link"
  435. message "&7 -> &9/serverip &7- To see the servers Ip adress"
  436. message "&7 -> &9/store &7- To see the servers donation / shop link"
  437. if arg 2 is 2:
  438. message "&7&m----------&7[ &9SimpleEssentials Help &7&k|&e Page 2 &7]&m----------"
  439. message "&7 -> &9/cmdblock &7- To give you or another player a command block"
  440. message "&7 -> &9/gmc [<player>]&7- To give you or another player the creative gamemode"
  441. message "&7 -> &9/gms [<player>]&7- To give you or another player the survival gamemode"
  442. message "&7 -> &9/gma [<player>]&7- To give you or another player the adventure gamemode"
  443. message "&7 -> &9/night &7- To set the ingame server time to night"
  444. if arg 2 is 3:
  445. message "&7&m----------&7[ &9SimpleEssentials Help &7&k|&e Page 3 &7]&m----------"
  446. message "&7 -> &9/day &7- To set the ingame server time to day"
  447. message "&7 -> &9/clearmychat &7- Clears your chat"
  448. message "&7 -> &9/setspawn &7- Lets the player set a server spawnpoint"
  449. message "&7 -> &9/spawn &7- Lets a player teleport to the server spawnpoint"
  450. message "&7 -> &9/plugins &7- Shows you a better / more clear version of /pl"
  451. message "&7 -> &9/heal &7- Heals the player, simple as that"
  452. if arg 2 is 4:
  453. message "&7&m----------&7[ &9SimpleEssentials Help &7&k|&e Page 4 &7]&m----------"
  454. message "&7 -> &9/sreload &7- Reloads the skript, use with caution"
  455. message "&7 -> &9/sedisable &7- Disables the skript, use with caution"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement