On event prompt URL open thingy-me-blob

Discussion in 'Plugin Development' started by ice374, Aug 7, 2013.

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

    ice374

    How would I prompt a URL to be opened on an event, I want to get a popup like you get when you click a link in chat.
     
  2. Offline

    Cirno

    I believe this is client-side; unless if Comphenix knows if there's a packet for it.
     
  3. On any event?
    If on certain ones you can use an EventHandler for that event and send the player a message with the URL.
    Code:
    event.getPlayer().sendMessage("http://" + url);
    If you want it for every player event, I'm not sure if this would work but make an EventHandler for "PlayerEvent". It's not recommended you do EVERY event for everything because there's so many events that are not what you really want. If you want every event for everything, make one for "Event".
     
Thread Status:
Not open for further replies.

Share This Page