Mtihc / TreasureChest

The TreasureChest plugin for CraftBukkit
dev.bukkit.org/server-mods/treasurechest
10 stars 39 forks source link

player Variable #77

Open msilver6677 opened 10 years ago

msilver6677 commented 10 years ago

I want to run command /manuaddsub but what variable can I use to run on the player opening the chest? example: /manuaddsub %p Warrior will add the %p (player opening chest) subgroup of warrior.

please help. I seen in a previous issue resolved that you said you could use %player%... This does not work. :\

Mtihc commented 10 years ago

wtf. It should work.

%player% @p

Those are the 2 options. I looked it up in the code, right here on line 77 https://github.com/Mtihc/TreasureChest/blob/master/src/main/java/com/mtihc/minecraft/treasurechest/v8/rewardfactory/rewards/CommandReward.java#L77

(im not really testing or fixing anything today.... so I will get back to you in a while)