Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Version: 2.0 #
- # Author: HerrosPL #
- variables:
- {admin.%player%} = false
- command /admin:
- description: Tryb Administratora daje najpotrzebniejsze przedmioty do sprawdzania.
- permission: skript.admin
- permission message: &cNie posiadasz uprawnien do trybu administratora! &8(&6skript.admin&8)
- trigger:
- if {admin.%player%} is false:
- set {admin.%player%} to true
- set player's fly mode to true
- hide player from all players
- add wood sword of knockback 2 named "&3&lKNOCKBACK II" with lore "&2TRYB ADMINISTRATORA" to player
- stop
- else:
- set {admin.%player%} to false
- set player's fly mode to false
- reveal player from all players
- remove wood sword of knockback 2 named "&3&lKNOCKBACK II" with lore "&2TRYB ADMINISTRATORA" from player
- stop
- on drop:
- if {admin.%player%} is true:
- cancel event
- on pick up:
- if {admin.%player%} is true:
- cancel event
- on damage:
- if {admin.%victim%} is true:
- cancel event
- on quit:
- if {admin.%player%} is true:
- execute player command "admin"
- on join:
- loop all players:
- if {admin.%loop-player%} is true:
- hide loop-player from all players
Advertisement
Add Comment
Please, Sign In to add comment