1

Java Plugin Development Help

SirEnderIII 3/23/15 9:40 am
163
3/25/2015 7:18 pm
Hello there, I've been working on my first plugin, and and simple as it seems, I can't process how to get this to work.

World.dropItem(player, Material.SNOW_BALL);

The whole idea is that once a player runs a command (Adding permissions later) it will rain snow balls and be cleared (I didn't add the cleared part, seems easy enough) but I'm stomped. Also, when I get that working I would need to loop it correct (Implying that is the only way to run a set of commands over and over)?

Note: Of course that's not the whole source-file, but to the contrary the statement that's giving me issues.
Posted by
SirEnderIII
Level 3 : Apprentice Explorer
7

  Have something to say?

JoinSign in

3

Samistine
03/24/2015 1:41 pm
Level 24 : Expert System
I don't think your using the correct method. You need to get the players location and get maybe 10-20 blocks above him, and then spawn the snow balls out over maybe a 10 by 10 square.
1
SirEnderIII
03/25/2015 7:18 pm
Level 3 : Apprentice Explorer
Thank you for a reply! Could you perhaps give a skeleton of what this would look like? Thanks.
1
SirEnderIII
03/24/2015 2:43 am
Level 3 : Apprentice Explorer
Bump
1

Welcome