It was a pleasure working with you, and I wish you good luck in any future endeavors. Godspeed!
Yeah, I mean it's your choice.
hankered Well, that gets a random material from a group of every material and a random amount between 1 and 64.
hankered Material material = Material.values()[new Random().nextInt(Material.values().length)]; int amount = new Random().nextInt(63)+1; ItemStack...
Beekie In your code, cs is the same as p.
All programmatic access to Bukkit assets is currently blocked by Cloudflare's DDoS countermeasures. EDIT: Things should be back to normal.
TECGaming360 if(e.getItemDrop().getItemStack().getType() == Material.COMPASS) { e.setCancelled(true); }
Connor2weirdness That would not work.
I've heard lambdas are a popular new feature in SE 8, but SE 7 will not become obsolete.
Stupeflip What do you need a delay for?
GeorgeeeHD My method would only replace the first forward-slash, in case of there being forward-slashes later in the command arguments. EDIT:...
GeorgeeeHD Try using: e.getMessage().substring(1);
CoderRevolq for(PotionEffect pe : p.getActivePotionEffects()) { p.removePotionEffect(pe.getType()); }
garbagemule
MrLizardDogMan ItemStack[] armor = {}; armor[0] = null; armor[1] = null; armor[2] = null; armor[3] = new ItemStack(Material.LEATHER_HELMET, 1);...
I use ungodly amounts of line breaks in my code, so any number I throw out, divide it in half. :P
MrLizardDogMan You can set each armor piece individually or add all armor pieces as an array. Array index Armor piece 0...
Mother__ This thread has some valuable information on the topic.
swampshark19 That actually gets the block at the lower half of the player.
LoveMST Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
Separate names with a comma.