mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 02:25:49 +01:00
Merge pull request #161 from project-dreamstation/master
Update Portal.java and make text more clear
This commit is contained in:
commit
c8efcbb801
@ -382,8 +382,8 @@ public class Portal {
|
|||||||
if (cooldown.get(player.getName()) != null) {
|
if (cooldown.get(player.getName()) != null) {
|
||||||
int diff = (int) ((System.currentTimeMillis() - cooldown.get(player.getName())) / 1000);
|
int diff = (int) ((System.currentTimeMillis() - cooldown.get(player.getName())) / 1000);
|
||||||
if (diff < cooldelay) {
|
if (diff < cooldelay) {
|
||||||
int time = (cooldelay - diff);
|
int time = (cooldelay - diff);
|
||||||
player.sendMessage(ChatColor.RED + "Please wait " + ChatColor.YELLOW + time + ChatColor.RED + (time == 1 ? "second" : "seconds") + " until attempting to teleport again.");
|
player.sendMessage(ChatColor.RED + "Please wait " + ChatColor.YELLOW + time + ChatColor.RED + (time == 1 ? "second" : "seconds") + " until attempting to enter this portal again.");
|
||||||
failSound(player, portal);
|
failSound(player, portal);
|
||||||
throwPlayerBack(player);
|
throwPlayerBack(player);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user