spigot broadcast message

Java
Bukkit.getServer().broadcastMessage("Your message");
Source

Also in Java: