Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # CONFIG
- PermissionActivated: true #Do you want to use a permission? So set it to true or to false if you don't want it
- Permission: coloredsignssk.use # Here you can set the permission when this PermissionActivated is set to tru
- ColorReplacer: "&"
- on sign change:
- if {@PermissionActivated} is true:
- if player has permission "{@Permission}":
- replace all {@ColorReplacer} with "§" in line 1 of event-block
- replace all {@ColorReplacer} with "§" in line 2 of event-block
- replace all {@ColorReplacer} with "§" in line 3 of event-block
- replace all {@ColorReplacer} with "§" in line 4 of event-block
- else:
- replace all {@ColorReplacer} with "§" in line 1 of event-block
- replace all {@ColorReplacer} with "§" in line 2 of event-block
- replace all {@ColorReplacer} with "§" in line 3 of event-block
- replace all {@ColorReplacer} with "§" in line 4 of event-block
- variables:
- {kills::%player%} = 0
- {deaths::%player%} = 0
- on death:
- if victim is a player:
- if attacker is a player:
- broadcast "&e(Kill) &f%victim% &7has been killed by &f%attacker%"
- add 1 to {kills::%attacker%}
- add 1 to {deaths::%victim%}
- if victim is a player:
- if damage was caused by fall:
- broadcast "&e(Kill) &f%victim% &7has died from fall damage"
- add 1 to {deaths::%victim%}
- on rightclick on sign:
- if line 2 of event-block is "&a&LDisposal":
- set line 2 of event-block to "&a&lDisposal"
- set line 3 of event-block to "&8(Right-Click)"
- open chest with 6 row named "&eTrash &7(Drop items in this box)" to player
- on break:
- if "%region at player%" contains "survivalsafezone":
- cancel event
- send "&e(Anti-Grief) &7You cannot break in the safezone"
- on place:
- if "%region at player%" contains "survivalsafezone":
- cancel event
- send "&e(Anti-Grief) &7You cannot place in the safezone"
- on damage:
- if "%region at victim%" contains "survivalsafezone":
- cancel event
- send "&e(Anti-Grief) &7You cannot pvp in the safezone" to attacker
Advertisement
Add Comment
Please, Sign In to add comment