Right under Block underblock = player.getLocation().getBlock().getRelative(BlockFace.DOWN); in the onPlayerMove method, in your player listener....
if(underblock.getTypeId() != 0) { } If that's not good enough simply make a for-loop that decreases the Y value, checks if that block isn't...
The Block class has (plenty of) built in functions about GETTING the block's redstone state, but how about setting it? I really need to know....
Well, because if you do that, the player gets teleported back. Doing that calls another onPlayerMove event. It's basically an infinite loop of...
Ill try it out right away! EDIT I did this: Position f = Freezes.getPos(user); Location to = new...
Heya all! I've been working on a plugin of mine, and so far everything's been going great! But I've just finished my player freeze function, and...
Damn, Regios! I should've known it.. Anywho, I didn't suspect this to happen, as creepers, zombies, and skeletons díd work. Here's what caused it:...
Nope. They're on. Damn, I wish that was the solution.. :( ~ Raeon
The console reports it spawned 5 CraftSilverfish'es. Wich isn't the case, really :( ~ Raeon
I think it should work, but still, nothing appears. EDIT: Here's the spawning method I have now public void kill(Player p) {...
Heya all. So I've got this code to spawn 5 silverfish to kill a specified Player. But it doesn't work somehow. Here's my code: // Object...
// Declarations public static HashMap<Player, Integer> lastUsed = new Map<Player, Integer>(); // Functions public int...
Same problem here. I sure wish to use Bukkit's built-in permissions, but nothing tells me how to.
String a = "health:15:4:5" String b[] = a.split(":"); String health1 = b[1]; String health2 = b[2]; String health3 = b[3];...
Something like: if(event.getEntity().getCreatureType() == CreatureType.PIG){ // Stuff here } Don't know if there is a function for that though.
This topic totally died, but I still need a plugin API source. Is it done? - Raeon
Whoa. Thats terribly long. I would really really REALLY appreciate it. Thanks. - Raeon
Interesting. Is it a plugin or a (java) framework? EDIT: I need java classloader style.. Like bukkit (back @ ontopic) When are you going to...
Thats exactly what I needed! I looked into the plugin loader myself too, but really didn't understand it. The internet wasn't very helpfull...
This is exacty what I needed. A custom sub-plugin classloader. Could you give us source on how to do so? I mean the loading procedure? I really...
Separate names with a comma.