Hello can somebody explain to me how i can clear the chat sorry for bad english what i have tried: Code: else if (args.length == 1) { if(args[0].equalsIgnoreCase("clearchat")) { for(int i=0; i < 100; i ++) { p.sendMessage(""); } } }