fix(command): oob
This commit is contained in:
parent
ee8fc04d4a
commit
3f2473aac5
1 changed files with 3 additions and 3 deletions
|
@ -17,16 +17,16 @@ public class NickoDebugSubCmd {
|
||||||
name = args[1];
|
name = args[1];
|
||||||
skin = args[2];
|
skin = args[2];
|
||||||
} else {
|
} else {
|
||||||
final String playerName = args[1];
|
|
||||||
target = Bukkit.getPlayer(playerName);
|
|
||||||
|
|
||||||
if (args.length < 3) {
|
if (args.length < 3) {
|
||||||
sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cMissing argument.");
|
sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cMissing argument.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final String playerName = args[1];
|
||||||
name = args[2];
|
name = args[2];
|
||||||
skin = args[3];
|
skin = args[3];
|
||||||
|
|
||||||
|
target = Bukkit.getPlayer(playerName);
|
||||||
if (target == null) {
|
if (target == null) {
|
||||||
sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cSpecified player is offline.");
|
sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cSpecified player is offline.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue