Crazy-Crew / BlockParticles

Sick of boring blocks? Well not any more with BlockParticles, Add particles to your blocks now!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the API

smiggle0404 opened this issue · comments

Hey i'm trying to use the API you provided but I can't seem to get it working.
Here's my section of code below, all i'm trying to do at the moment is have a certain command create a block particle.
http://pastebin.com/RCLBi4Wv

When I type the command in-game, the console is spammed with errors until I restart the server.
Each error is the same one spamming:

http://pastebin.com/aZ9bfT7i

Hello it seems the problem is your not giving a world name.
World world = Bukkit.getServer().getWorld(getName());
getName() needs to be a string if your using getWorld.
So do like this
World world = Bukkit.getServer().getWorld("world");
or a better way is this
World world = player.getWorld();

Thanks alot ^_^