mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-17 21:01:27 +01:00
Update Portal.java
Add ''to enter this portal'' instead of ''to teleport to (loc)"
This commit is contained in:
parent
16fcc5dccc
commit
4d816cbd46
@ -382,7 +382,7 @@ 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) {
|
||||||
player.sendMessage(ChatColor.RED + "Please wait " + ChatColor.YELLOW + (cooldelay - diff) + ChatColor.RED + " seconds until attempting to teleport again.");
|
player.sendMessage(ChatColor.RED + "Please wait " + ChatColor.YELLOW + (cooldelay - diff) + ChatColor.RED + " second(s) 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