Skript Version: latest stable version
Skript Author: Bensku
Minecraft Version: 1.8.8
Hello there,
As I described in the title, I am attempting to use a variable inside another variable.
I know about {variable.%player%}, but here I think I need something more specific.
Anyway, here's my code:
What did I expect?
Let's say I have Notch and Dinnerbone on my server.
> somecommand say Hello, %{somevariable.player}%
< [Server] Hello, Notch
< [Server] Hello, Dinnerbone
What actually happened?
The replication of the command was
< [Server] Hello, %{somevariable.player}%
< [Server] Hello, %{somevariable.player}%
Any tip/suggestion/advice is going to be highly welcomed!
Appreciations in advance!
Skript Author: Bensku
Minecraft Version: 1.8.8
Hello there,
As I described in the title, I am attempting to use a variable inside another variable.
I know about {variable.%player%}, but here I think I need something more specific.
Anyway, here's my code:
code_language.skript:
command /somecommand [<text>]:
trigger:
loop all players:
set {somevariable.player} to loop-player
make console execute command "/%arg 1%"
Let's say I have Notch and Dinnerbone on my server.
> somecommand say Hello, %{somevariable.player}%
< [Server] Hello, Notch
< [Server] Hello, Dinnerbone
What actually happened?
The replication of the command was
< [Server] Hello, %{somevariable.player}%
< [Server] Hello, %{somevariable.player}%
Any tip/suggestion/advice is going to be highly welcomed!
Appreciations in advance!