This requires Iweb but its cool to use.
Simply Create a .jsp file in your iweb folder with the following contents:
Then Create a cron directing to your .jsp to tick whenever you want it to.Code:<%@page contentType="text/html; charset=GBK"%> <%@page import="java.lang.*"%> <%@page import="java.util.*"%> <%@page import="java.text.*"%> <%@page import="org.apache.commons.lang.StringEscapeUtils"%> <%@page import="protocol.*"%> <%@page import="com.goldhuman.auth.*"%> <%@page import="com.goldhuman.util.*"%> <%@page import="org.apache.commons.logging.Log"%> <%@page import="org.apache.commons.logging.LogFactory"%> <%@page import="java.io.*"%> <%@page import="java.sql.*"%> <% // // Coded by [B]aSH from Vendetta Gaming Network. // String msg = "PUT ANNOUNCEMENT HERE"; try { protocol.DeliveryDB.broadcast((byte)9,-1,msg); } catch (Exception e) { out.println("<font color=red>Error Attempting to Broadcast Message!</font>"); } %> <% out.println("<font color=green>Successfully Sent Broadcast Message!</font>"); %>
Restart your Java service so it works and there you go :)


Reply With Quote


