SHARE
TWEET

Untitled

a guest Jul 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on first join:
  2.     set {level::%player's uuid%} to 0
  3.     set {cost1::%player's uuid%} to 99
  4.     set {cost2::%player's uuid%} to 100
  5. on join:
  6.     if {level::%player's uuid%} is not set:
  7.         set {level::%player's uuid%} to 0
  8.     if {cost1::%player's uuid%} is not set:
  9.         set {cost1::%player's uuid%} to 99
  10.     if {cost2::%player's uuid%} is not set:
  11.         set {cost2::%player's uuid%} to 100
  12.        
  13.  
  14. on mine:
  15.     add 1 to {blocks::%player's uuid%}
  16.  
  17.  
  18. command /blocks2 [<text>]:
  19.     permission: skript.mine.blocks
  20.     usage: "/blocks help"
  21.     trigger:
  22.         if arg-1 is not set:
  23.             send "--------------------Blocks Help-----------------"
  24.             send "-1. Info - shows how many blocks you have broken"
  25.             send "-2. Upgrade - upgrades your level"
  26.             send "--------------------Blocks Help-----------------"
  27.         if arg-1 is "info":
  28.             send "&7------------&eBlocks&7-----------"
  29.             send "&c-Points &e%{blocks::%player's uuid%}%"
  30.             send "&7------------&eBlocks&7-----------"
  31.         if arg-1 is "help":
  32.             send "--------------------Blocks Help-----------------"
  33.             send "-1. Info - shows how many blocks you have broken"
  34.             send "-2. Upgrade - upgrades your level"
  35.             send "--------------------Blocks Help-----------------"
  36.         if arg-1 is "upgrade":
  37.             if {blocks::%player's uuid%} >= {cost2::%player's uuid%}:
  38.                 add 1 to {level::%player's uuid%}
  39.                 execute console command "lp user %player% meta removesuffix 100"
  40.                 execute console command "lp user %player% meta addsuffix 100 &e[&cLv.%{level::%player's uuid%}%&e]"
  41.                 remove {cost2::%player's uuid%} from {blocks::%player's uuid%}
  42.                 add 50 to {cost1::%player's uuid%}
  43.                 add 50 to {cost2::%player's uuid%}
  44.             else:
  45.                 send "&cYou need %{cost2::%player's uuid%}% points to level up!"
  46.                 broadcast "%{cost2::%player's uuid%}% and %{blocks::%player's uuid%}%"
  47. command /sv:
  48.     trigger:
  49.         send "%{blocks::%player's uuid%}% to player"
  50.         send "%{cost1::%player's uuid%}% to player"
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top