Use UtilPlayer and F.main for messaging

This commit is contained in:
Shaun Bennett 2014-08-01 01:43:50 -05:00
parent 15d48d2867
commit 95a45409a9

View File

@ -149,7 +149,7 @@ public class ServerManager extends MiniPlugin
if (timeUntilPortal > 0)
{
player.playSound(player.getEyeLocation(), Sound.CHICKEN_EGG_POP, 2, 2);
player.sendMessage("You cannot join a server for " + C.cGreen + UtilTime.convertString(timeUntilPortal, 0, TimeUnit.SECONDS) + ChatColor.RESET + ".");
UtilPlayer.message(player, F.main("Server Portal", "You cannot join a server for " + C.cGreen + UtilTime.convertString(timeUntilPortal, 0, TimeUnit.SECONDS)));
}
UtilAction.velocity(player, UtilAlg.getTrajectory(player.getLocation(), _hubManager.GetSpawn()), 1.5, true, 0.8, 0, 1.0, true);
@ -209,7 +209,7 @@ public class ServerManager extends MiniPlugin
exception.printStackTrace();
}
player.sendMessage(F.main("Server Portal", "There are currently no joinable servers!"));
UtilPlayer.message(player, F.main("Server Portal", "There are currently no joinable servers!"));
}
}