Development Assistance Plugin messaging channel via console

Discussion in 'Plugin Help/Development/Requests' started by Funergy, Oct 11, 2014.

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

    Funergy

    so. I wanna send a plugin message from the console. idk if this works.
    It needs to work even no one is online on that server
    Code
    Code:
    ByteArrayOutputStream b = new ByteArrayOutputStream();
                    DataOutputStream out = new DataOutputStream(b);
                    try {
                        out.writeUTF("Message");
                        out.writeUTF("roblabla");
                        out.writeUTF(ChatColor.RED + "Congrats, you just won 1$!");
                     
                    } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    }
     
Thread Status:
Not open for further replies.

Share This Page