polish polish polish
MAKE IT SHINE!
This commit is contained in:
parent
97c6726d1d
commit
41dcc564c9
@ -11,8 +11,13 @@ import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.reward.Reward;
|
||||
import mineplex.core.reward.RewardData;
|
||||
import mineplex.core.reward.RewardManager;
|
||||
import mineplex.core.reward.RewardRarity;
|
||||
import mineplex.core.reward.RewardType;
|
||||
import mineplex.core.shop.item.ShopItem;
|
||||
import mineplex.core.treasure.animation.LootLegendaryAnimation;
|
||||
import mineplex.core.treasure.animation.LootMythicalAnimation;
|
||||
import mineplex.core.treasure.animation.LootRareAnimation;
|
||||
import mineplex.core.treasure.animation.LootUncommonAnimation;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import mineplex.hub.bonuses.BonusManager;
|
||||
@ -180,7 +185,23 @@ public class SpinGui extends SimpleGui
|
||||
return;
|
||||
|
||||
_manager.addPendingExplosion(getPlayer(), _reward);
|
||||
UtilPlayer.message(getPlayer(), F.main("Carl's Spinner", "You got " + _rewardData.getRarity().getColor() + _rewardData.getFriendlyName() + C.cGray + " From Carl's Spinner."));
|
||||
|
||||
if (_reward.getRarity() == RewardRarity.RARE)
|
||||
{
|
||||
Bukkit.broadcastMessage(F.main("Treasure", F.name(event.getPlayer().getName()) + " won " + C.cPurple + "Rare " + _rewardData.getFriendlyName() + C.cGray + " from Carl's Spinner."));
|
||||
}
|
||||
else if (_reward.getRarity() == RewardRarity.LEGENDARY)
|
||||
{
|
||||
Bukkit.broadcastMessage(F.main("Treasure", F.name(event.getPlayer().getName()) + " won " + C.cGreen + "Legendary " + _rewardData.getFriendlyName() + C.cGray + " from Carl's Spinner."));
|
||||
}
|
||||
else if (_reward.getRarity() == RewardRarity.MYTHICAL)
|
||||
{
|
||||
Bukkit.broadcastMessage(F.main("Treasure", F.name(event.getPlayer().getName()) + " won " + C.cRed + "Mythical " + _rewardData.getFriendlyName() + C.cGray + " from Carl's Spinner."));
|
||||
}
|
||||
else
|
||||
{
|
||||
UtilPlayer.message(getPlayer(), F.main("Carl's Spinner", "You won " + _rewardData.getRarity().getColor() + _rewardData.getFriendlyName() + C.cGray + " from Carl's Spinner."));
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -33,7 +33,16 @@ public class ButtonMPS implements GuiItem
|
||||
@Override
|
||||
public ItemStack getObject()
|
||||
{
|
||||
return ItemStackFactory.Instance.CreateStack(Material.SPECKLED_MELON, (byte)0, 1, C.cGreen + "/hostserver");
|
||||
return ItemStackFactory.Instance.CreateStack(Material.SPECKLED_MELON, (byte)0, 1,
|
||||
ChatColor.RESET + C.cYellow + "Mineplex Player Server",
|
||||
new String[]
|
||||
{
|
||||
"",
|
||||
C.cWhite + "Create a server where you are the Host.",
|
||||
C.cWhite + "You can choose the game, map and much more!",
|
||||
"",
|
||||
C.cWhite + "Type " + C.cGreen + "/mps" + C.cWhite + " to access this anywhere!"
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -33,7 +33,17 @@ public class ButtonPrefs implements GuiItem
|
||||
@Override
|
||||
public ItemStack getObject()
|
||||
{
|
||||
return ItemStackFactory.Instance.CreateStack(Material.REDSTONE_COMPARATOR.getId(), (byte)0, 1, ChatColor.GREEN + "/prefs");
|
||||
return ItemStackFactory.Instance.CreateStack(Material.REDSTONE_COMPARATOR.getId(), (byte)0, 1,
|
||||
ChatColor.RESET + C.cYellow + "Preferences",
|
||||
new String[]
|
||||
{
|
||||
"",
|
||||
C.cWhite + "Set your preferences to your liking",
|
||||
C.cWhite + "so you can enjoy the game more!",
|
||||
|
||||
"",
|
||||
C.cWhite + "Type " + C.cGreen + "/prefs" + C.cWhite + " to access this anywhere!"
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -17,7 +17,7 @@ public class ButtonStats implements GuiItem
|
||||
|
||||
private GUIProfile _profile;
|
||||
private Player _player;
|
||||
|
||||
|
||||
public ButtonStats(GUIProfile profile, Player player)
|
||||
{
|
||||
_profile = profile;
|
||||
@ -33,7 +33,17 @@ public class ButtonStats implements GuiItem
|
||||
@Override
|
||||
public ItemStack getObject()
|
||||
{
|
||||
ItemStack item = ItemStackFactory.Instance.CreateStack(Material.SKULL_ITEM, (byte) 3, 1, ChatColor.RESET + C.cGreen + "/stats");
|
||||
ItemStack item = ItemStackFactory.Instance.CreateStack(Material.SKULL_ITEM, (byte) 3, 1,
|
||||
ChatColor.RESET + C.cYellow + "Stats and Achievements",
|
||||
new String[]
|
||||
{
|
||||
"",
|
||||
C.cWhite + "View your Statistics and Achievements",
|
||||
C.cWhite + "for all of the games on Mineplex!",
|
||||
|
||||
"",
|
||||
C.cWhite + "Type " + C.cGreen + "/stats" + C.cWhite + " to access this anywhere!"
|
||||
});
|
||||
SkullMeta meta = ((SkullMeta) item.getItemMeta());
|
||||
meta.setOwner(_player.getName());
|
||||
item.setItemMeta(meta);
|
||||
@ -43,13 +53,13 @@ public class ButtonStats implements GuiItem
|
||||
@Override
|
||||
public void setup()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ public class GUIProfile extends SimpleGui
|
||||
_personalServerManager = personalServerManager;
|
||||
|
||||
setItem(11, new ButtonStats(this, player));
|
||||
setItem(13, new ButtonMPS(this, player));
|
||||
setItem(15, new ButtonPrefs(this, player));
|
||||
setItem(13, new ButtonPrefs(this, player));
|
||||
setItem(15, new ButtonMPS(this, player));
|
||||
}
|
||||
|
||||
public PreferencesManager getPrefManager()
|
||||
|
Loading…
Reference in New Issue
Block a user