mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
*Actually* fixed exploit with PTP on yourself
This commit is contained in:
parent
8dec24693c
commit
ac35f002f1
@ -13,6 +13,7 @@ Version 1.3.06-dev
|
||||
+ Added API functions for admin & party chat
|
||||
+ Added Iron Grip skill to Unarmed which gives players an chance to keep from being disarmed.
|
||||
+ Added some new languages to the locale files.
|
||||
= Fixed exploit where you could teleport to yourself with PTP to prevent things like fall damage
|
||||
= Fixed NPE error with Metrics on startup
|
||||
= Fixed bug where Herbalism required double drops permission to give XP
|
||||
= Fixed bug where {0} would be displayed in front of your power level in mcstats
|
||||
|
@ -53,6 +53,7 @@ public class PtpCommand implements CommandExecutor {
|
||||
|
||||
if (player.equals(target)) {
|
||||
player.sendMessage("You can't teleport to yourself!"); //TODO: Use locale
|
||||
return true;
|
||||
}
|
||||
|
||||
if (target == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user