Use %player's name% instead of %player%
This commit is contained in:
@@ -32,7 +32,7 @@ command /mirricraft [<string>] [<string>] [<string>]:
|
||||
else:
|
||||
format slot 13 of player with diamond named "&bVIP" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft gui vip"]
|
||||
|
||||
format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player%" to close then run [execute player command "/mirricraft gui player"]
|
||||
format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player's name%" to close then run [execute player command "/mirricraft gui player"]
|
||||
|
||||
#if player have permission "mirricraft.admin":
|
||||
# format slot 16 of player with diamond axe named "&5Ylläpito" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft admin"]
|
||||
@@ -89,7 +89,7 @@ command /mirricraft [<string>] [<string>] [<string>]:
|
||||
stop
|
||||
if arg-2 is "player":
|
||||
wait 2 tick
|
||||
open chest inventory with 5 row named "%player%" to player
|
||||
open chest inventory with 5 row named "%player's name%" to player
|
||||
wait 2 tick
|
||||
|
||||
loop integers between 0 and 44:
|
||||
@@ -153,7 +153,7 @@ command /mirricraft [<string>] [<string>] [<string>]:
|
||||
remove all items from player
|
||||
set slot 0 of player's inventory to 1 of compass named "&4Mene"
|
||||
set slot 4 of player's inventory to 1 of diamond named "&bVIP"
|
||||
set slot 8 of player's inventory to 1 of player's skull named "&6%player%"
|
||||
set slot 8 of player's inventory to 1 of player's skull named "&6%player's name%"
|
||||
else:
|
||||
set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft"
|
||||
stop
|
||||
@@ -186,14 +186,14 @@ command /mirricraft [<string>] [<string>] [<string>]:
|
||||
else if arg-1 is "vip":
|
||||
if player has the permission "mirricraft.vip":
|
||||
if arg-2 is "fly":
|
||||
if {fly.%player%} is not set:
|
||||
if {fly.%player's name%} is not set:
|
||||
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
|
||||
set player's flight mode to true
|
||||
set {fly.%player%} to true
|
||||
set {fly.%player's name%} to true
|
||||
stop
|
||||
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
|
||||
set player's flight mode to false
|
||||
delete {fly.%player%}
|
||||
delete {fly.%player's name%}
|
||||
stop
|
||||
if arg-2 is "bannerbuilder":
|
||||
wait 2 tick
|
||||
@@ -280,7 +280,7 @@ on click:
|
||||
make player execute command "/mirricraft gui vip"
|
||||
cancel the event
|
||||
wait 2 tick
|
||||
if event-item is player's skull named "&6%player%":
|
||||
if event-item is player's skull named "&6%player's name%":
|
||||
make player execute command "/mirricraft gui player"
|
||||
cancel the event
|
||||
wait 2 tick
|
||||
@@ -292,7 +292,7 @@ on click:
|
||||
# cancel the event
|
||||
# if event-item is diamond named "&bVIP":
|
||||
# cancel the event
|
||||
# if event-item is player's skull named "&6%player%":
|
||||
# if event-item is player's skull named "&6%player's name%":
|
||||
# cancel the event
|
||||
|
||||
#on drop:
|
||||
@@ -302,7 +302,7 @@ on click:
|
||||
# cancel the event
|
||||
# if event-item is diamond named "&bVIP":
|
||||
# cancel the event
|
||||
# if event-item is player's skull named "&6%player%":
|
||||
# if event-item is player's skull named "&6%player's name%":
|
||||
# cancel the event
|
||||
|
||||
on pickup:
|
||||
@@ -312,7 +312,7 @@ on pickup:
|
||||
delete event-entity
|
||||
if event-item is diamond named "&bVIP":
|
||||
delete event-entity
|
||||
if event-item is player's skull named "&6%player%":
|
||||
if event-item is player's skull named "&6%player's name%":
|
||||
delete event-entity
|
||||
|
||||
on death:
|
||||
@@ -324,7 +324,7 @@ on death:
|
||||
# --- Welcome Message ---
|
||||
#on join:
|
||||
# send player title "MirriCraft" for 5 seconds
|
||||
# send action bar "Nauti pelihetkestäsi, %player%!" to player
|
||||
# send action bar "Nauti pelihetkestäsi, %player's name%!" to player
|
||||
|
||||
# --- World Title ---
|
||||
on player world change:
|
||||
@@ -397,14 +397,14 @@ on weather change to rain or thunder:
|
||||
# wait 1 tick
|
||||
# if "%event-region%" contains "survival_castle_event_block":
|
||||
# make console execute command "/uf start survival_event_newyear_2019"
|
||||
# make console execute command "/ptime 14000ticks %player%"
|
||||
# make console execute command "/pweather clear %player%"
|
||||
# make console execute command "/ptime 14000ticks %player's name%"
|
||||
# make console execute command "/pweather clear %player's name%"
|
||||
|
||||
#on region exit:
|
||||
# wait 1 tick
|
||||
# if "%event-region%" contains "survival_castle_event_block":
|
||||
# make console execute command "/ptime reset %player%"
|
||||
# make console execute command "/pweather reset %player%"
|
||||
# make console execute command "/ptime reset %player's name%"
|
||||
# make console execute command "/pweather reset %player's name%"
|
||||
# make console execute command "/uf stop survival_event_newyear_2019"
|
||||
|
||||
#on death:
|
||||
|
||||
Reference in New Issue
Block a user