Improve ender elf
This commit is contained in:
@@ -27,7 +27,6 @@ public final class Mineclass extends JavaPlugin implements Listener {
|
||||
pluginCommand.setTabCompleter((sender, command, alias, args) -> arguments);
|
||||
pluginCommand.setExecutor(new CommandClass());
|
||||
}
|
||||
System.out.println(Bukkit.getOnlinePlayers());
|
||||
Bukkit.getOnlinePlayers()
|
||||
.forEach(
|
||||
player ->
|
||||
|
||||
@@ -80,7 +80,7 @@ public class EnderElfClass extends MineClassImpl {
|
||||
@Override
|
||||
public void giveItems(Player player) {
|
||||
if (!player.getInventory().contains(Material.ENDER_PEARL)) {
|
||||
ItemStack itemStack = new ItemStack(Material.ENDER_PEARL, 1);
|
||||
ItemStack itemStack = new ItemStack(Material.ENDER_PEARL, 2);
|
||||
enchantItem(itemStack);
|
||||
player.getInventory().addItem(itemStack);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user