Feature Request : onChatboxActivity and GetLastChatboxMessage

Discussion in 'Bukkit Discussion' started by funstein, Sep 8, 2011.

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

    funstein

    Hello guys,
    I had been trying to write a plugin that would react on output from other plugins, then I found out this was not possible without using each plugins API. I would like to request an event, onChatboxActivity(Player) and a method, GetLastChatboxMessage. This way, I can write a plugin like this :

    Code:
    onChatBoxActivity("Funstein") {
           String input = GetLastChatboxMessage("Funstein") ;
           if(input == "You returned home!"){
               // Turn on the lights, etc.
           }
    }
    This may load up servers a bit because of each plugin scanning each output, but it is OK even if you implement a GetLastChatboxMessage("Player", "Sender") ; in which the sender or the sending plugin will be specified so that only the output from that sender is scanned.

    You guys can figure this out, I hope, I need this really.
    funstein
     
  2. Offline

    funstein

    BUMP!
     
Thread Status:
Not open for further replies.

Share This Page