I assume you already have a eventhandler for clicking that block, so here goes; for (Entity e : event.getPlayer().getNearbyEntities(7, 7, 7)) {...
I would love some help with this.
No, there's just two arguments, one is Location - the other is EntityType...
When I use spawnEntity() the SpawnReason is always NATURAL, I thought it would be CUSTOM when spawned by plugin?
http://wiki.bukkit.org/Plugin_Tutorial Read this once and come back! :)
public void onEnable() { PluginManager pm = this.getServer().getPluginManager(); pm.registerEvents(this, this); }
@EventHandler public void onPlayerRespawn(PlayerRespawnEvent event) { event.setRespawnLocation(juglocation); }
Anyone?
State cannot be cast to Door... Also, is there a way to check "instance not of"? @EventHandler public void...
Random spawn locations... At the moment, I have people staring into walls when they respawn. :( Are Jaw and Pitch just additional arguments?
How do I change the direction of Locations? Are there additional arguments? Thanks by the way, ArrayList worked great!
I'm trying to make an array of locations, but I'm receiving a null pointer exception. Location[] spawn; spawn[0] = new Location(world, x, y, z);
I'd like to change or completely remove the over-head names of players. Got any pointers on how to do this? I can only do simple things as of yet,...
^ Please respond...
HashMap<String, String> test = new HashMap<String, String>(); // ... for(String key :...
Is there a way to make a String array of keys from a hashmap? That would help me a lot.
The server/plugin I run is about roleplaying as either Vampire or Human. This would be a lot more fun if you could disguise players as mobs. I've...
Thanks, I'll use PlayerInventory next time around! :)
Also, I know how to spawn entities, but how do you spawn items? Edit: found it!
Thanks a lot, that works! :)
Separate names with a comma.