Use %player's name% instead of %player%
This commit is contained in:
@@ -30,7 +30,7 @@ on click:
|
||||
make player execute command "/mirricraft gui admin"
|
||||
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
|
||||
@@ -44,7 +44,7 @@ on pickup:
|
||||
delete event-entity
|
||||
if event-item is diamond named "&5Ylläpito":
|
||||
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:
|
||||
@@ -119,12 +119,12 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
|
||||
set slot 0 of player's inventory to 1 of compass named "&2Mene"
|
||||
set slot 4 of player's inventory to 1 of diamond named "&bVIP"
|
||||
set slot 6 of player's inventory to 1 of diamond axe named "&5Ylläpito"
|
||||
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%"
|
||||
stop
|
||||
else:
|
||||
set slot 0 of player's inventory to 1 of compass named "&2Mene"
|
||||
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%"
|
||||
stop
|
||||
else:
|
||||
set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft"
|
||||
@@ -147,12 +147,12 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
|
||||
format slot 10 of player with compass named "&2Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
|
||||
format slot 12 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
|
||||
format slot 14 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"]
|
||||
format slot 16 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 16 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"]
|
||||
stop
|
||||
else:
|
||||
format slot 10 of player with compass named "&2Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
|
||||
format slot 13 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
|
||||
format slot 16 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 16 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"]
|
||||
stop
|
||||
if arg-2 is set:
|
||||
if arg-2 is "visit":
|
||||
@@ -190,7 +190,7 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
|
||||
stop
|
||||
if arg-2 is "player":
|
||||
wait 2 tick
|
||||
open chest inventory with 4 row named "MirriCraft - %player%" to player
|
||||
open chest inventory with 4 row named "MirriCraft - %player's name%" to player
|
||||
wait 2 tick
|
||||
|
||||
loop integers between 0 and 35:
|
||||
|
||||
Reference in New Issue
Block a user