mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
Allow timeout of /tpa /tpahere requests
Adds new config setting tpa-accept-cancellation Test #781
This commit is contained in:
parent
52b1017bda
commit
95d5217f58
15 changed files with 52 additions and 0 deletions
|
@ -31,6 +31,10 @@ public class Commandtpa extends EssentialsCommand
|
|||
player.sendMessage(_("teleportRequest", user.getDisplayName()));
|
||||
player.sendMessage(_("typeTpaccept"));
|
||||
player.sendMessage(_("typeTpdeny"));
|
||||
if (ess.getSettings().getTpaAcceptCancellation() != 0)
|
||||
{
|
||||
player.sendMessage(_("teleportRequestTimeoutInfo", ess.getSettings().getTpaAcceptCancellation()));
|
||||
}
|
||||
}
|
||||
user.sendMessage(_("requestSent", player.getDisplayName()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue