Guest User

Naked Warrior

a guest
Oct 14th, 2014
305
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: /naked
  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.         if arg 1 is "toggle" or "switch":
  35.             if {Naked::Enabled} is true:
  36.                 player command "/naked off"
  37.             else:
  38.                 player command "/naked on"
  39.         if arg 1 is "status":
  40.             if {Naked::Enabled} is true:
  41.                 message "{@Prefix}{@CC} Naked Warrior is currently {@HC}Enabled"
  42.             else:
  43.                 message "{@Prefix}{@CC} Naked Warrior is currently {@HC}Disabled"
  44.         if arg 1 is "info" or "about" or "description":
  45.             message "{@Prefix}{@CC} Naked Warrior is a gamemode where if you are wearing"
  46.             message "{@Prefix}{@CC} no armour, you will receive Strength II and Resistance II."
  47.             message "{@Prefix}{@CC} Gamemode by /u/tagggz, Skript by /u/dragon53170"
  48.         if arg 1 is "help" or "?":
  49.             player command "/naked"
  50.         if arg 1 is not set:
  51.             message "{@Prefix}{@CC} {@Command} {@HC}enable {@CC}- to enable Naked Warrior"
  52.             message "{@Prefix}{@CC} {@Command} {@HC}disable {@CC}- to disable Naked Warrior"
  53.             message "{@Prefix}{@CC} {@Command} {@HC}toggle {@CC}- to toggle Naked Warrior"
  54.             message "{@Prefix}{@CC} {@Command} {@HC}status {@CC}- to find the status of Naked Warrior"
  55.             message "{@Prefix}{@CC} {@Command} {@HC}info {@CC}- to read about the Gamemode"
  56.             message "{@Prefix}{@CC} {@Command} {@HC}help {@CC}- to display this page"
  57.  
  58. command {@SoundCommand}:
  59.     permission: skript.op
  60.     trigger:
  61.         loop all players:
  62.             console command "/playsound {@Sound} %loop-player%"
  63.  
  64. every tick:
  65.     if {Naked::Enabled} is true:
  66.         loop all players:
  67.             loop-player is not wearing helmet or chestplate or leggings or boots:
  68.                 set {Naked::%loop-player%} to true
  69.                 apply strength 2 to loop-player for 999 days
  70.                 apply resistance 2 to loop-player for 999 days
  71.             else:
  72.                 if {Naked::%loop-player%} is true:
  73.                     remove strength from loop-player
  74.                     remove resistance from loop-player
Advertisement
Add Comment
Please, Sign In to add comment