Change formatting of treasure announcements
This commit is contained in:
parent
90e402bf69
commit
da680359d0
@ -16,6 +16,7 @@ import org.bukkit.craftbukkit.v1_7_R4.util.CraftMagicNumbers;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import net.minecraft.server.v1_7_R4.PacketPlayOutBlockAction;
|
import net.minecraft.server.v1_7_R4.PacketPlayOutBlockAction;
|
||||||
|
|
||||||
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.common.util.F;
|
import mineplex.core.common.util.F;
|
||||||
import mineplex.core.common.util.UtilParticle;
|
import mineplex.core.common.util.UtilParticle;
|
||||||
import mineplex.core.treasure.animation.Animation;
|
import mineplex.core.treasure.animation.Animation;
|
||||||
@ -264,12 +265,12 @@ public class Treasure
|
|||||||
else if (data.getReward().getRarity() == RewardRarity.RARE)
|
else if (data.getReward().getRarity() == RewardRarity.RARE)
|
||||||
{
|
{
|
||||||
_animations.add(new CircleAnimation(this, data.getBlock().getLocation().add(0.5, 1.5, 0.5)));
|
_animations.add(new CircleAnimation(this, data.getBlock().getLocation().add(0.5, 1.5, 0.5)));
|
||||||
Bukkit.broadcastMessage(F.main("Treasure", F.name(_player.getName()) + " opened the Rare treasure " + text));
|
Bukkit.broadcastMessage(F.main("Treasure", F.name(_player.getName()) + " opened the " + F.item(C.cGold + "Rare") + " treasure " + text));
|
||||||
}
|
}
|
||||||
else if (data.getReward().getRarity() == RewardRarity.VERY_RARE)
|
else if (data.getReward().getRarity() == RewardRarity.VERY_RARE)
|
||||||
{
|
{
|
||||||
_animations.add(new ChestExplodeAnimation(this, data.getBlock()));
|
_animations.add(new ChestExplodeAnimation(this, data.getBlock()));
|
||||||
Bukkit.broadcastMessage(F.main("Treasure", F.name(_player.getName()) + " opened the Legendary treasure " + text));
|
Bukkit.broadcastMessage(F.main("Treasure", F.name(_player.getName()) + " opened the " + F.item(C.cRed + "Legendary") + " treasure " + text));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isFinished())
|
if (isFinished())
|
||||||
|
Loading…
Reference in New Issue
Block a user