mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Implement clear confirmation (#1623)
Introduces: - `clearinventoryconfirmtoggle` command with shorter aliases - `confirmClear` boolean in UserData
This commit is contained in:
parent
73457453bb
commit
be076509f2
30 changed files with 147 additions and 6 deletions
|
@ -61,6 +61,7 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
|||
private String afkMessage;
|
||||
private long afkSince;
|
||||
private Map<User, BigDecimal> confirmingPayments = new WeakHashMap<>();
|
||||
private String confirmingClearCommand;
|
||||
private long lastNotifiedAboutMailsMs;
|
||||
|
||||
public User(final Player base, final IEssentials ess) {
|
||||
|
@ -846,6 +847,14 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
|||
return confirmingPayments;
|
||||
}
|
||||
|
||||
public String getConfirmingClearCommand() {
|
||||
return confirmingClearCommand;
|
||||
}
|
||||
|
||||
public void setConfirmingClearCommand(String command) {
|
||||
this.confirmingClearCommand = command;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link ItemStack} in the main hand or off-hand. If the main hand is empty then the offhand item is returned - also nullable.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue