Guest User

Naked Warrior

a guest
Oct 15th, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #If you are not wearing armour you will receive Strength II and Resistance II.
  2.  
  3. #Gamemode by /u/tagggz
  4. #Skript by /u/dragon53170
  5.  
  6. #Edit as you please <3
  7.  
  8. options:
  9.     Prefix: &d[&bNaked&9Warrior&d]
  10.     CC: &f
  11.     HC: &a
  12.    
  13.     Command: /nakedwarrior
  14.     SoundCommand: /naked-sound
  15.     Sound: note.bass
  16.  
  17. command {@Command} [<text>]:
  18.     permission: skript.op
  19.     trigger:
  20.         if arg 1 is "enable" or "true" or "on":
  21.             if {Naked::Enabled} is true:
  22.                 message "{@Prefix}{@CC} Naked Warrior is already {@HC}Enabled"
  23.             else:
  24.                 set {Naked::Enabled} to true
  25.                 broadcast "{@Prefix}{@CC} Naked Warrior has been {@HC}Enabled {@CC}by {@HC}%command sender%"
  26.                 console command "{@SoundCommand}"
  27.         if arg 1 is "disable" or "false" or "off":
  28.             if {Naked::Enabled} is false:
  29.                 message "{@Prefix}{@CC} Naked Warrior is already {@HC}Disabled"
  30.             else:
  31.                 set {Naked::Enabled} to false
  32.                 broadcast "{@Prefix}{@CC} Naked Warrior has been {@HC}Disabled {@CC}by {@HC}%command sender%"
  33.                 console command "{@SoundCommand}"
  34.                 loop all players:
  35.                     remove strength from loop-player
  36.                     remove resistance from loop-player
  37.         if arg 1 is "toggle" or "switch":
  38.             if {Naked::Enabled} is true:
  39.                 player command "/naked off"
  40.             else:
  41.                 player command "/naked on"
  42.         if arg 1 is "status":
  43.             if {Naked::Enabled} is true:
  44.                 message "{@Prefix}{@CC} Naked Warrior is currently {@HC}Enabled"
  45.             else:
  46.                 message "{@Prefix}{@CC} Naked Warrior is currently {@HC}Disabled"
  47.         if arg 1 is "info" or "about" or "description":
  48.             message "{@Prefix}{@CC} Naked Warrior is a gamemode where if you are wearing"
  49.             message "{@Prefix}{@CC} no armour, you will receive Strength II and Resistance II."
  50.             message "{@Prefix}{@CC} Gamemode by /u/tagggz, Skript by /u/dragon53170"
  51.         if arg 1 is "help" or "?":
  52.             player command "/naked"
  53.         if arg 1 is not set:
  54.             message "{@Prefix}{@CC} {@Command} {@HC}enable {@CC}- to enable Naked Warrior"
  55.             message "{@Prefix}{@CC} {@Command} {@HC}disable {@CC}- to disable Naked Warrior"
  56.             message "{@Prefix}{@CC} {@Command} {@HC}toggle {@CC}- to toggle Naked Warrior"
  57.             message "{@Prefix}{@CC} {@Command} {@HC}status {@CC}- to find the status of Naked Warrior"
  58.             message "{@Prefix}{@CC} {@Command} {@HC}info {@CC}- to read about the Gamemode"
  59.             message "{@Prefix}{@CC} {@Command} {@HC}help {@CC}- to display this page"
  60.  
  61. command {@SoundCommand}:
  62.     permission: skript.op
  63.     trigger:
  64.         loop all players:
  65.             console command "/playsound {@Sound} %loop-player%"
  66.  
  67. every tick:
  68.     if {Naked::Enabled} is true:
  69.         loop all players:
  70.             loop-player is not wearing helmet or chestplate or leggings or boots:
  71.                 set {Naked::%loop-player%} to true
  72.                 apply strength 2 to loop-player for 999 days
  73.                 apply resistance 2 to loop-player for 999 days
  74.             else:
  75.                 if {Naked::%loop-player%} is true:
  76.                     remove strength from loop-player
  77.                     remove resistance from loop-player
Advertisement
Add Comment
Please, Sign In to add comment