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.setTabCompleter((sender, command, alias, args) -> arguments);
|
||||||
pluginCommand.setExecutor(new CommandClass());
|
pluginCommand.setExecutor(new CommandClass());
|
||||||
}
|
}
|
||||||
System.out.println(Bukkit.getOnlinePlayers());
|
|
||||||
Bukkit.getOnlinePlayers()
|
Bukkit.getOnlinePlayers()
|
||||||
.forEach(
|
.forEach(
|
||||||
player ->
|
player ->
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public class EnderElfClass extends MineClassImpl {
|
|||||||
@Override
|
@Override
|
||||||
public void giveItems(Player player) {
|
public void giveItems(Player player) {
|
||||||
if (!player.getInventory().contains(Material.ENDER_PEARL)) {
|
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);
|
enchantItem(itemStack);
|
||||||
player.getInventory().addItem(itemStack);
|
player.getInventory().addItem(itemStack);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user