Perform Action Randomly

Discussion in 'Plugin Development' started by desup, Jan 22, 2012.

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

    desup

    Hello, please, can somebody give me an example how to perform action randomly?
    For example, Send a message to a player in random interval.
    Thank your really much.

    If you can help me, I will be very grateful.
    [NoOb]
     
  2. 1. use the bukkit scheduler for delays
    2. use java.util.Random to generate a random delay (google for a tutorial if you never used it, it's quite simple)
     
  3. Offline

    desup

    Yes, thak you really much man ! ;)
     
Thread Status:
Not open for further replies.

Share This Page