How do i make it so my OnJoin code runs after the MOTD? Code (Text): public void onJoin(PlayerJoinEvent e) { Player p = e.getPlayer(); if (p.hasPermission("Quantum.newsletter")) { System.out.println("event fired"); p.sendMessage("§8» &fThe &aApril &fnewletter is available to read. Use the command &a//newsletter&f to read!"); } }
Ohhh I see, You're wanting the essentials MOTD to display after yours? Set the priority of the event to highest. Code (Text): @EventHandler (priority = EventPriority.HIGHEST)
Schedule a delayed task to have the message sent 50 ticks after they join? You could always tweak the time shorter or longer to make it appear when you want it to Sent from my iPhone using Tapatalk
new BukkitRunnable{ public void run(){ //send message } }.runTaskLater(yourMainInstance, timeInSecs*20); Guys are going to kill me for spoonfeeding