3rd time's the charm?

This commit is contained in:
GJ 2013-02-13 19:43:26 -05:00
parent 25a54ea802
commit ec6fc30f47

View File

@ -84,7 +84,7 @@ public class PtpCommand implements CommandExecutor {
}
if (!mcMMOTarget.getPtpConfirmRequired()) {
return handlePartyTeleportEvent();
return handlePartyTeleportEvent(player, target);
}
mcMMOTarget.setPtpRequest(player);
@ -132,7 +132,7 @@ public class PtpCommand implements CommandExecutor {
}
}
return handlePartyTeleportEvent();
return handlePartyTeleportEvent(target, player);
}
private boolean acceptAnyTeleportRequest() {
@ -197,7 +197,7 @@ public class PtpCommand implements CommandExecutor {
return true;
}
private boolean handlePartyTeleportEvent() {
private boolean handlePartyTeleportEvent(Player player, Player target) {
McMMOPlayer mcMMOPlayer= Users.getPlayer(player);
McMMOPartyTeleportEvent event = new McMMOPartyTeleportEvent(player, target, mcMMOPlayer.getParty().getName());