mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-05 12:10:12 +08:00
Add missing methods to Commandexp (#3335)
This commit is contained in:
parent
500dadc760
commit
db410fb3e7
@ -79,6 +79,10 @@ public class Commandexp extends EssentialsCommand {
|
||||
expMatch(server, sender, args[1], args[2], false);
|
||||
} else if (args.length > 2 && args[0].equalsIgnoreCase("give")) {
|
||||
expMatch(server, sender, args[1], args[2], true);
|
||||
} else if (args.length > 2 && args[0].equalsIgnoreCase("take")) {
|
||||
expMatch(server, sender, args[1], "-" + args[2], true);
|
||||
} else if (args.length > 2 && args[0].equalsIgnoreCase("reset")) {
|
||||
expMatch(server, sender, args[1], "0", false);
|
||||
} else {
|
||||
String match = args[0].trim();
|
||||
if (args.length >= 2 && NumberUtil.isInt(args[0].toLowerCase(Locale.ENGLISH).replace("l", ""))) {
|
||||
|
Loading…
Reference in New Issue
Block a user