mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
PTP now has a 30 second cooldown from when you were last hurt
This commit is contained in:
parent
3eb8f6a1a4
commit
a40d3f5f9c
@ -24,6 +24,7 @@ Version 2.0.00-dev
|
|||||||
= Fixed bug where Green Terra didn't work on Stone Brick
|
= Fixed bug where Green Terra didn't work on Stone Brick
|
||||||
= Fixed bug where Tree Feller could be used without permissions
|
= Fixed bug where Tree Feller could be used without permissions
|
||||||
= Fixed exploit where falling sand & gravel weren't tracked
|
= Fixed exploit where falling sand & gravel weren't tracked
|
||||||
|
! Changed PTP to prevent teleporting if you've been hurt in the last 30 seconds
|
||||||
! Changed Chimera Wing failure check to use the maxWorldHeight.
|
! Changed Chimera Wing failure check to use the maxWorldHeight.
|
||||||
! Changed inspect failed message to say inspect rather than whois
|
! Changed inspect failed message to say inspect rather than whois
|
||||||
! Changed Call of the Wild to activate on left-click rather than right-click
|
! Changed Call of the Wild to activate on left-click rather than right-click
|
||||||
|
@ -42,6 +42,12 @@ public class PtpCommand implements CommandExecutor {
|
|||||||
return true;
|
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) {
|
if (args.length < 1) {
|
||||||
player.sendMessage(ChatColor.RED + "Usage is /ptp <playername>");
|
player.sendMessage(ChatColor.RED + "Usage is /ptp <playername>");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user