mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Merge pull request #366 from Glitchfinder/master
Fixes the broken /skillreset command.
This commit is contained in:
commit
fcd2fb0f12
@ -27,7 +27,7 @@ public class SkillResetCommand implements CommandExecutor {
|
|||||||
SkillType skillType = null; //simple initialization
|
SkillType skillType = null; //simple initialization
|
||||||
|
|
||||||
//make sure there's only one argument. output at least some kind of error if not
|
//make sure there's only one argument. output at least some kind of error if not
|
||||||
if (args.length != 1 && args[0] != null) {
|
if (args.length == 0 || (args.length != 1 && args[0] != null)) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Skill.Invalid"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Skill.Invalid"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user