Simple admin plugin :D

Discussion in 'Archived: Plugin Requests' started by muhammadtalhas, Sep 27, 2011.

  1. Offline

    muhammadtalhas

    Hi all,
    I want/need a plugin where when a specific person enters, thunder and lightning is heard all around the map.

    sounds like a simple plugin :D

    if its possible, maybe play and scary/creapy sound??

    would really appreciate it!
     
  2. Offline

    boardinggamer

    I can try to make this but I dont think I can make it so everyone hears it but make it that when an admin logs on lightning strikes near the admin
     
  3. Offline

    CainFoool

    public class LightningAdmin extends JavaPlugin {

    Logger log = Loggger.getLogger("Minecraft");

    public void onEnable()
    {
    log.info("LightningAdmin enabled!");
    Bukkit.getServer().getPluginManager().registerEvent(Type.PLAYER_JOIN, new PListener(). Priority.Normal, this);
    }

    public void onDisable()
    {
    log.info("LightningAdmin disabled!");
    }

    class PListener extends PlayerListener {

    public void onPlayerJoin(PlayerJoinEvent e)
    if(e.getPlayer().hasPermission("lightning.admin"))
    {
    e.getPlayer().getWorld().strikeLightningEffect(e.getPlayer().getLocation());
    }
    }
    }

    Yes I did just type that up, I am bored. D:
     
    scrub88 likes this.
  4. Offline

    acuddlyheadcrab

    Wait, you already requested this and it has been answered.

    It feels harsh but, this thread should be reported for deletion. Cause you already posted the same thing.. =/


    What i wrote earlier
    Show Spoiler
    I just made my first plugin that plays a meow.ogg file when someone enters the command /meow :D
    Btw that's using Spout.

    I could possibly look into the code... 0_0 (i'm a plugin dev' noob, so i might not be as fast as ^that guy XD)

    Edit: Lol that code would just kill the player xD. I would see if just the thunder sound can be played. It can in spout at least.
     
  5. Offline

    muhammadtalhas

    Sorry acuddlyheadcrap (love the name :p) i had posted the other one in the wrong section and looks like an admin moved it
     
  6. Offline

    acuddlyheadcrab

    Oooooh okay. Let us let it die down then, lol.
     

Share This Page