mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
Redundant tpaccept cost check.
This commit is contained in:
@@ -52,14 +52,6 @@ public class Commandtpaccept extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Trade charge = new Trade(this.getName(), ess);
|
final Trade charge = new Trade(this.getName(), ess);
|
||||||
if (user.isTpRequestHere())
|
|
||||||
{
|
|
||||||
charge.isAffordableFor(user);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
charge.isAffordableFor(target);
|
|
||||||
}
|
|
||||||
user.sendMessage(_("requestAccepted"));
|
user.sendMessage(_("requestAccepted"));
|
||||||
target.sendMessage(_("requestAcceptedFrom", user.getDisplayName()));
|
target.sendMessage(_("requestAcceptedFrom", user.getDisplayName()));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user