From e418ee9fb4018b4020de55f8cc83371aed6bc4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 24 Oct 2020 07:33:04 +0300 Subject: [PATCH] Update --- mirricraft-fly.sk | 8 +++++++- mirricraft-kitpvp.sk | 6 ++++++ mirricraft-old.sk | 4 ---- mirricraft.sk | 12 +++++++++++- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/mirricraft-fly.sk b/mirricraft-fly.sk index dab9451..5110ffa 100644 --- a/mirricraft-fly.sk +++ b/mirricraft-fly.sk @@ -12,4 +12,10 @@ command /fly []: message "&7[&2MirriCraft&7]&r Lento on pois käytöstä" set player's flight mode to false delete {fly.%player%} - stop \ No newline at end of file + stop + +on join: + if {fly.%player%} is set: + if player has the permission "mirricraft.vip": + set player's flight mode to true + stop \ No newline at end of file diff --git a/mirricraft-kitpvp.sk b/mirricraft-kitpvp.sk index 1904996..41107e1 100644 --- a/mirricraft-kitpvp.sk +++ b/mirricraft-kitpvp.sk @@ -1,6 +1,7 @@ # --- KitPVP --- on join: if player's world is "minigames": + remove all items from player set slot 1 of player's inventory to 1 of chest named "&fKitPVP" stop @@ -9,6 +10,11 @@ on respawn: set slot 1 of player's inventory to 1 of chest named "&fKitPVP" stop +on quit: + if player's world is "minigames": + remove all items from player + stop + on leftclick: if player's world is "minigames": if event-item is chest named "&fKitPVP": diff --git a/mirricraft-old.sk b/mirricraft-old.sk index 3dc2352..a2c6b97 100644 --- a/mirricraft-old.sk +++ b/mirricraft-old.sk @@ -251,10 +251,6 @@ command /visit []: # --- MirriCraft Item --- on join: make player execute command "/mirricraft item" - create bossbar titled "&f&lMirriCraft" and id "bossbar.%player's uuid%" for player with progress 100 with colors white - if {fly.%player%} is set: - if player has the permission "mirricraft.vip": - set player's flight mode to true stop on respawn: diff --git a/mirricraft.sk b/mirricraft.sk index f9ba947..76e0fc1 100644 --- a/mirricraft.sk +++ b/mirricraft.sk @@ -17,4 +17,14 @@ on load: #wf "# by Christer Warén / Warén Group" to "mirricraft.yml" #wf "#" to "mirricraft.yml" #wf "#--------------------------------------------------" to "mirricraft.yml" - stop \ No newline at end of file + stop + +# --- Bossbar --- +on join: + create bossbar titled "&f&lMirriCraft" and id "bossbar.%player's uuid%" for player with progress 100 with colors white + stop + +# --- Welcome Message --- +on join: + send player title "MirriCraft" for 5 seconds + send action bar "Nauti pelihetkestäsi, %player%!" to player \ No newline at end of file