can't spawnout particles for players without permission: essentials.*

Discussion in 'Plugin Development' started by Mauzuk, Jul 20, 2020.

  1. Offline

    Mauzuk

    Hello.
    I can't spawnout particles after connecting for players without permission: essentials.*.
    Code:
    public void onJoin (PlayerJoinEvent e) {
    Player p = e.getPlayer ();
    if (plugin.getConfig (). getBoolean ("Particles.enable") == true) {
    p.spawnParticle (org.bukkit.Particle.valueOf (plugin.getConfig (). getString ("Particle_Type")), p.getLocation (),
    plugin.getConfig (). getInt ("Particle_Amount"), 1.2F, 1.2F, 1.2F);
    }
    
    For players with permission, particles work normally, but without permission they do not work.
     

Share This Page