Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- register new shaped recipe for emerald ore named "&aMagiczna stoniarka" using cobblestone, cobblestone, cobblestone, cobblestone, redstone, cobblestone, cobblestone, cobblestone, cobblestone
- on damage:
- if attacker is player:
- if attacker don't have permission "warhc.nodamage":
- if victim is player:
- if {antylogout::%victim%} is not set:
- send "&cJestes podczas walki!" to victim
- set {antylogout::%victim%} to 25
- set {antylogout::%attacker%} to 25
- every 1 seconds:
- loop all players:
- if {antylogout::%loop-player%} is set:
- if {antylogout::%loop-player%} is greater than 0:
- remove 1 from {antylogout::%loop-player%}
- set action bar of loop-player to "&c&lANTYLOGOUT - %{antylogout::%loop-player%}%"
- else:
- clear {antylogout::%loop-player%}
- send "&aSkonczyles walczyc." to loop-player
- set action bar of loop-player to "&2&lANTYLOGOUT"
- command /test:
- trigger:
- set {antylogout::%player%} to 25
- on quit:
- if {antylogout::%player%} is set:
- execute console command "/kill %player%"
- broadcast "&cGracz %player% wylogowal sie podczas walki!"
- stop
- on command:
- if {antylogout::%player%} is set:
- if command is "helpop" or "Msg" :
- cancel event
- send "&4Blad: &c/%command% jest zablokowane podczas walki"
- On place:
- If {antylogout::%player%} is set:
- If guild at location of player is set:
- Cancel event
- Send "&cPodczas walki nie mozesz budowac na terenie gildi"
- on place of emerald ore:
- if name of the player's tool is "&aMagiczna stoniarka":
- set {s.%event-block%} to true
- set event-block to stone
- stop
- on break of stone:
- if {s.%event-block%} is true:
- if player is holding gold pickaxe:
- if player can hold 1 emerald ore named "&aMagiczna stoniarka":
- give 1 emerald ore named "&aMagiczna stoniarka" to the player
- stop
- else:
- drop 1 emerald ore named "&aMagiczna stoniarka"
- stop
- else:
- wait 1 second
- set event-block to stone
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement