I'm trying to spawn some mobs at a block and have them fly out in 8 directions. I can accomplish everything except actually getting the block I...
Thanks! :D I feel stupid now, haha!
I'm trying to make a teleportation system via signs like every server on the face of the planet, but I want to write it myself. I have...
you could just store it to a hashmap like ase34 suggested which I think would be the easiest way of doing this
I'm creating this minigame and I would like to create multiple maps for it. I haven't really used HashMaps very much other than to store players...
I am. :P The inventory can't be updated by players (new items added, new items taken out). I also have a PlayerInteractEvent which when they right...
I think you can do if(player.isOnline){ but I'm not sure
if(p.hasPlayedBefore()){ Bukkit.getServer().broadcastMessage(ChatColor.GRAY + "Welcome " + ChatColor.GOLD + p.getName() + ChatColor.GRAY + " to...
@EventHandler public void onInvClick(InventoryClickEvent event){ if(event.getInventory() == beaconinv){ if(event.getCurrentItem().getType() ==...
@EventHandler public void onEDBEE(EntityDamageByEntityEvent event){ if(event.getDamager() instanceof Player){...
if you want it to be a certain item, say a torch, you could pretend it's being thrown by using a different projectile call playerinteractevent get...
listen to the asyncplayerchatevent event if player is in hashmap of the channel set message ChatColor.COLOR + get message
you could just make it /heal if(commandLabel.equalsIgnoreCase("heal"){ for(Player everybody = Bukkit.getServer().getOnlinePlayers()){...
is there an anvil repair event? you could get the item and meta and work from there
Separate names with a comma.