mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-24 20:07:34 +01:00
commit
5d18d8c391
@ -40,8 +40,10 @@ public class CommandRandomenchant extends Subcommand {
|
|||||||
|
|
||||||
if ((args.isEmpty() && sender instanceof Player) || !sender.hasPermission("ecoenchants.command.randomenchant.others")) {
|
if ((args.isEmpty() && sender instanceof Player) || !sender.hasPermission("ecoenchants.command.randomenchant.others")) {
|
||||||
player = (Player) sender;
|
player = (Player) sender;
|
||||||
} else {
|
} else if (!args.isEmpty()) {
|
||||||
player = Bukkit.getServer().getPlayer(args.get(0));
|
player = Bukkit.getServer().getPlayer(args.get(0));
|
||||||
|
} else {
|
||||||
|
player = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user