Facebook
From Tish, 2 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 187
  1. on damage of player:
  2.     if attacker is player:
  3.         if attacker don't have permission "kithc.nodamage.xdxd":
  4.            if {blokada::%victim%} is not set:
  5.                send "&8┬╗ &cJestes podczas pvp nie logaj!" to victim
  6.            set {blokada::%victim%} to 25
  7.  
  8. every 1 second:
  9.    loop {blokada::*}:        
  10.        If {blokada::%loop-index%} is 0:  
  11.            clear {blokada::%loop-index%}
  12.            set {_player} to "%loop-index%"
  13.            set {_player} to {_player} parsed as player
  14.            send "&8┬╗ &aNie jestes juz podczas walki mozesz logac." to {_player}      
  15.            stop
  16.        remove 1 from {blokada::%loop-index%}
  17.      
  18. command /logout:
  19.    trigger:
  20.        If {blokada::%player%} is not set:
  21.            send "&8┬╗ &aNie jestes podczas pvp." to player
  22.            stop
  23.        If {blokada::%player%} is set:
  24.            If {blokada::%player%} is 0:
  25.                clear {blokada::%player%}
  26.                send "&8┬╗ &aNie jestes juz podczas walki mozesz logac." to player
  27.                stop
  28.            else:
  29.                send "&8┬╗ &cJestes podczas pvp %{blokada::%player%}% sek!!" to player
  30.                stop          
  31.          
  32.          
  33. on command:
  34.    If {blokada::%player%} is set:
  35.        if command is "hdom" or "spawn" or "sethome" or "home" or "tpa" or "tpaccept" or "tpyes" or "unregister" or "repair" or "feed" or "kit":
  36.            cancel event
  37.            send "&8┬╗ &c/%command% jest zablokowane podczas pvp." to player
  38.      
  39.  
  40. on rightclick on ender chest:
  41.    if {blokada::%player%} is set:        
  42.        cancel event        
  43.        send "&8┬╗ &cEnderchesta nie mozna otwierac podczas pvp." to player
  44.      
  45. on command:    
  46.    if {blokada::%player%} is set:    
  47.        if command is "enderchest" or "ec":
  48.            cancel event        
  49.            send "&8┬╗ &cEnderchesta nie mozna otwierac podczas pvp." to player
  50.      
  51. on place:
  52.    if {blokada::%player%} is set:  
  53.        cancel event        
  54.        send "&8┬╗ &cNie mozna stawiac blokow podczas pvp." to player
  55.      
  56. on quit:
  57.    if {blokada::%player%} is set:
  58.        execute console command "/slay %player%"
  59.        broadcast "&8┬╗ &eGracz %player% wylogowal sie podczas pvp."
  60.        teleport player to {spawn.spawn.spawn}
  61.        clear {blokada::%player%}
  62.      
  63. on death of player:
  64.    wait 2 ticks
  65.    clear {blokada::%player%}