mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
3rd time's the charm?
This commit is contained in:
parent
25a54ea802
commit
ec6fc30f47
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user