A little Question

Discussion in 'Plugin Development' started by Nokturn, Jan 24, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    How can i send text to all my Administrators, if a player toggles an event???

    I am sorry for my english.

    Thx Noki
  2. Offline


    Depends on what you have set as an admin. if you are using ops.txt then you will have to read names from the file into something like an array, then run through the array sending a message to each of the players. If using another plugin for user levels, I cannot help you.
  3. Offline


    Sorry for the missunderstanding I didn't mean to read the names of an file I just want to send a player a message like player.sendMessage() just for an spessific player like sendMessageToNokturn or so
  4. Offline


    for (Player player : plugin.getServer().getOnlinePlayers())
        if (player.isOp())
            player.sendMessage("Hello, world!");
  5. Offline


    I was saying that was necessary to get the administrators names, but if you hard code them in then fifteen's method is the way to go.
Thread Status:
Not open for further replies.

Share This Page