mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +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()) {
|
if (!mcMMOTarget.getPtpConfirmRequired()) {
|
||||||
return handlePartyTeleportEvent();
|
return handlePartyTeleportEvent(player, target);
|
||||||
}
|
}
|
||||||
|
|
||||||
mcMMOTarget.setPtpRequest(player);
|
mcMMOTarget.setPtpRequest(player);
|
||||||
@ -132,7 +132,7 @@ public class PtpCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return handlePartyTeleportEvent();
|
return handlePartyTeleportEvent(target, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean acceptAnyTeleportRequest() {
|
private boolean acceptAnyTeleportRequest() {
|
||||||
@ -197,7 +197,7 @@ public class PtpCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean handlePartyTeleportEvent() {
|
private boolean handlePartyTeleportEvent(Player player, Player target) {
|
||||||
McMMOPlayer mcMMOPlayer= Users.getPlayer(player);
|
McMMOPlayer mcMMOPlayer= Users.getPlayer(player);
|
||||||
|
|
||||||
McMMOPartyTeleportEvent event = new McMMOPartyTeleportEvent(player, target, mcMMOPlayer.getParty().getName());
|
McMMOPartyTeleportEvent event = new McMMOPartyTeleportEvent(player, target, mcMMOPlayer.getParty().getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user