Remove "Titles are not avaiable in 1.8.x" message

This commit is contained in:
Sam 2017-10-26 17:20:51 +01:00 committed by Alexander Meech
parent 912c95fa78
commit cd85f4434a

View File

@ -188,25 +188,11 @@ public class Titles extends MiniDbClientPlugin<TitleData> implements IPacketHand
{
if (!_twofactor.isAuthenticating(event.getPlayer()) && event.getItem() != null && UtilEvent.isAction(event, UtilEvent.ActionType.R))
{
boolean cancel = false;
if (event.getItem().getType() == Material.WRITTEN_BOOK)
{
cancel = true;
event.setCancelled(true);
giveBook(event.getPlayer(), true);
}
else if (event.getItem().getType() == Material.BOOK)
{
if (UtilPlayer.getVersion(event.getPlayer()) == MinecraftVersion.Version1_8)
{
UtilPlayer.message(event.getPlayer(), F.main("Track", "Titles are not available for 1.8.x!"));
event.getPlayer().playSound(event.getPlayer().getLocation(), Sound.ANVIL_LAND, 1f, 1f);
cancel = true;
}
}
if (cancel)
event.setCancelled(true);
}
}