Use UtilPlayer and F.main for messaging
This commit is contained in:
parent
15d48d2867
commit
95a45409a9
@ -149,7 +149,7 @@ public class ServerManager extends MiniPlugin
|
|||||||
if (timeUntilPortal > 0)
|
if (timeUntilPortal > 0)
|
||||||
{
|
{
|
||||||
player.playSound(player.getEyeLocation(), Sound.CHICKEN_EGG_POP, 2, 2);
|
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);
|
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();
|
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!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user