This commit is contained in:
Christer Warén 2020-10-24 07:33:04 +03:00
parent 2eafcebbc3
commit e418ee9fb4
4 changed files with 24 additions and 6 deletions

View File

@ -13,3 +13,9 @@ command /fly [<text>]:
set player's flight mode to false set player's flight mode to false
delete {fly.%player%} delete {fly.%player%}
stop stop
on join:
if {fly.%player%} is set:
if player has the permission "mirricraft.vip":
set player's flight mode to true
stop

View File

@ -1,6 +1,7 @@
# --- KitPVP --- # --- KitPVP ---
on join: on join:
if player's world is "minigames": if player's world is "minigames":
remove all items from player
set slot 1 of player's inventory to 1 of chest named "&fKitPVP" set slot 1 of player's inventory to 1 of chest named "&fKitPVP"
stop stop
@ -9,6 +10,11 @@ on respawn:
set slot 1 of player's inventory to 1 of chest named "&fKitPVP" set slot 1 of player's inventory to 1 of chest named "&fKitPVP"
stop stop
on quit:
if player's world is "minigames":
remove all items from player
stop
on leftclick: on leftclick:
if player's world is "minigames": if player's world is "minigames":
if event-item is chest named "&fKitPVP": if event-item is chest named "&fKitPVP":

View File

@ -251,10 +251,6 @@ command /visit [<text>]:
# --- MirriCraft Item --- # --- MirriCraft Item ---
on join: on join:
make player execute command "/mirricraft item" 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 stop
on respawn: on respawn:

View File

@ -18,3 +18,13 @@ on load:
#wf "#" to "mirricraft.yml" #wf "#" to "mirricraft.yml"
#wf "#--------------------------------------------------" to "mirricraft.yml" #wf "#--------------------------------------------------" to "mirricraft.yml"
stop 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