mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
PTP now has a 30 second cooldown from when you were last hurt
This commit is contained in:
@ -42,6 +42,12 @@ public class PtpCommand implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(PP.getRecentlyHurt()+30*1000 > System.currentTimeMillis())
|
||||
{
|
||||
player.sendMessage("You've been hurt in the last 30 seconds and cannnot teleport.");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (args.length < 1) {
|
||||
player.sendMessage(ChatColor.RED + "Usage is /ptp <playername>");
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user