Push String Homepage -> Bukkit MC User

Discussion in 'Plugin Development' started by edocsyl, Apr 28, 2012.

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

    edocsyl

    How i probably best push a string from the homepage to a player in game?
    Any good ideas?
     
  2. Offline

    r0306

    I'm not too sure about this but when the plugin is enabled, you could use a BufferedReader to get a certain text from a URL (http://snippets.dzone.com/posts/show/3553) and then store the string in your config file to be displayed. If you want the message to be updated every x seconds, you can use a scheduled sync repeating task (http://wiki.bukkit.org/Scheduler_Programming#Repeating_Tasks).
     
  3. Offline

    edocsyl

    Yeah i heard from the scheduled variant, but i dont know if this effectively to run every second a Sql Query.

    This with the BufferedReader is new.. Is there no time out. Cuz i need a variant with no time delay.

    I need this to push a recovery password to the player.
     
  4. Offline

    r0306

    Oh. Then in that case, all you need to do is to simply add the BufferedReader to a CommandExecutor so that when they type the command, the server will retrieve the string and display it. No need to store the string. I don't think that there is any delay in a BufferedReader.
     
Thread Status:
Not open for further replies.

Share This Page