Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.bukkit.Particle;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.java.JavaPlugin;
- /**
- * The MIT License (MIT)
- * Created on 01/03/2016.
- * Copyright (c) 2016 Vinetos
- */
- public class Main extends JavaPlugin {
- @Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
- Player p = (Player) sender;
- if(command.getName().equalsIgnoreCase("p")){
- p.spawnParticle(Particle.NOTE, p.getLocation(), 100, 10, 10, 10);
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment