Minecraft PC IP: play.cubecraft.net

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
Hello, this will be a group of medium level bukkit/spigot tutorials (no video). This is for broadcasts:

I assume you have alredy created the onCommand method
Code:
 public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
And created your player
Code:
        Player player = (Player)sender;

Now we need to create two ints and a string
Code:
int laengeArray = args.length;
            int indexArray = 0;
            String text = "";

Now we need to get the lenght and use the String that we named "text":
Code:
            for (int i = 0; i < args.length; i++) {
                text = text + args[i] + " ";
            }

Now the message. Here we will use bukkit one.
Code:
        Bukkit.broadcastMessage(ChatColor.DARK_RED + "[Alert] " + ChatColor.RED + text);


I'm noob explaining in text. I know
 
  • Like
Reactions: Buuuddy
Members Online

Team online

Latest profile posts

Anyway...I have a hunch as to what their next update may be. On one hand, they may straight up scrap EggWars because BedWars brings in more players and revenue. On the other hand, or if enough players backlash similarly to 10v10, they will most likely go the Hive route - delete the existing BedWars and rebrand EggWars to BedWars to bring in the BedWars players. Either option kills the EggWars name forever...
Every year this server just gets worse and worse...subscriptions on a children's server. Great use of mom's credit card.
Pluisje wrote on Eliza's profile.
no way eliza/????????
llvqs wrote on Thijs's profile.
nice pfp
Top Bottom