Could this be possible?

Discussion in 'Plugin Development' started by iPhysX, Mar 2, 2011.

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

    iPhysX

    import org.bukkit.scheduler.*;
    import org.bukkit.ChatColor;
    import org.bukkit.plugin.Plugin;

    public class Sched {
    void scheduleAsyncRepeatingTask ( Plugin plugin,
    Runnable task,
    long delay,
    long period){
    getServer().broadcastMessage(ChatColor.DARK_AQUA + "Blablai'mbadatthis")




    To make the server send messages every 5 minutes and alternate between two messages?
    this may be stupid.. but i was thinking scheduling 2 tasks, off set, so they happen between each other :/

    EDIT.. Also

    pm.registerEvent(Event.Type.PLAYER_COMMAND, this.playerListener, Event.Priority.Normal, this);

    i heard PLAYER_COMMAND doesnt work anymore?
     
  2. Offline

    Plague

    No it is not, use onCommand() instead.
     
  3. Offline

    iPhysX

    thanks for your reply.
    How exactly would i go about doing that, if i posted my source would you give me some pointers?
     
  4. Offline

    Plague

    Take a look at my plugins it's fairly visible there.
     
Thread Status:
Not open for further replies.

Share This Page