Best Way To Clear Chat | SpigotMC - High Performance Minecraft
Maybe your like
- Home
- Recent Posts
- Recent Activity
- Forums
- Search Forums
- Recent Posts
- Resources
- Search Resources
- Most Resources
- Latest Reviews
- Wiki
- Wiki Index
- Page List
- Recent Activity
- Team
- Administrator
- Moderator
- Sponsor
- Developer
- Wiki Team
- Services Moderator
- Junior Moderator
- Resources Moderator
- Downloads
- Spigot / BuildTools
- BungeeCord
- Discord
- Hub
- Issues
- Members
- Notable Members
- Current Visitors
- Recent Activity
- New Profile Posts
- Donate
Discussion in 'Spigot Plugin Development' started by nayongbin108, Jun 11, 2018.
-
nayongbin108
I don't know if this the best way but I am doing Code (Java): for(int i=0; i<200; i++) { Bukkit.broadcastMessage(""); } Is there a better way to do this?
#1 nayongbin108, Jun 11, 2018 -
JustDJplease
Simple answer: That is the best way. Although, you don't need 200 lines.
#2 JustDJplease, Jun 11, 2018-
Agree x 4
-
-
MSWS
There's literally no point in clearing chat as logs exist. Logically speaking, you'd want to spam the player's chat with random words so that it'd be near impossible to find it within the logs. But if you don't want to do that then spamming blank lines also works just fine. Alternatively you could require everyone to install your own client, and from there you could link the server and client to send an order to the client to cler the chat. This'd be completely unnecessary but it would work /shrug
#3 MSWS, Jun 11, 2018-
Agree x 1
-
-
DavidDevelops Supporter
nayongbin108 said: ↑
#4 DavidDevelops, Jun 11, 2018I don't know if this the best way but I am doing Code (Java): for(int i=0; i<200; i++) { Bukkit.broadcastMessage(""); } Is there a better way to do this?Click to expand...
That's the best way, But if you're going to be doing it often create a method, (Or even if you use it twice) -
FrostedSnowman Retired
Code (Java): Bukkit.broadcastMessage(StringUtils.repeat(" \n", 100));
#5 FrostedSnowman, Jun 11, 2018-
Like x 4 -
Winner x 3 -
Agree x 1
-
-
Optic_Fusion1 Resources Mod
MSWS said: ↑
#6 Optic_Fusion1, Jun 12, 2018There's literally no point in clearing chat as logs exist. Logically speaking, you'd want to spam the player's chat with random words so that it'd be near impossible to find it within the logs. But if you don't want to do that then spamming blank lines also works just fine. Alternatively you could require everyone to install your own client, and from there you could link the server and client to send an order to the client to cler the chat. This'd be completely unnecessary but it would work /shrugClick to expand...
There's definitely reasons you'd want to clear the chat, like if someone spams racial slurs, advertising, breaking certain rules you might have, spamming in general, stuff like that -
MSWS
Optic_Fusion1 said: ↑
#7 MSWS, Jun 12, 2018There's definitely reasons you'd want to clear the chat, like if someone spams racial slurs, advertising, breaking certain rules you might have, spamming in general, stuff like thatClick to expand...
If people don't want to see stuff that was said in chat then they can do F3+D. Otherwise if they do want to see it then they can just look in chat logs. But sure, can be useful. -
OscarDali
Optic_Fusion1 said: ↑
#8 OscarDali, Jun 12, 2018There's definitely reasons you'd want to clear the chat, like if someone spams racial slurs, advertising, breaking certain rules you might have, spamming in general, stuff like thatClick to expand...
I think a good way to avoid that would be to detect the words, the problem is that there are different ways of seeing it Example:- Easy
- Ez
- izi
- etc...
-
PhaxyWende
Well, since there are hack clients which stack messages if they are equal to each other, maybe you could also print something like this before: Code (Java): for (int i = 0; i < 100; i++) { Bukkit.broadcastMessage("§0" + ThreadLocalRandom.current().nextDouble()); }
#9 PhaxyWende, Jun 12, 2018-
Like x 1
-
-
Syanko
o
#10 Syanko, Jun 12, 2018-
Optimistic x 2 -
Informative x 1 -
Creative x 1
-
-
MSWS
OscarDali said: ↑
#11 MSWS, Jun 12, 2018I think a good way to avoid that would be to detect the words, the problem is that there are different ways of seeing it Example:
Server management shouldn't use clear chat as a filter, it should be a final last minute emergency fix. There's a major difference between clear chat and a full on filter. I wish everyone the best of luck in making a filter that's as good as a regular human. But good luck. PhaxyWende said: ↑- Easy
- Ez
- izi
- etc...
Well, since there are hack clients which stack messages if they are equal to each other, maybe you could also print something like this before: Code (Java): for (int i = 0; i < 100; i++) { Bukkit.broadcastMessage("§0" + ThreadLocalRandom.current().nextDouble()); } Click to expand...
There isn't really a point in doing, if anything it'd just make the clear chat super ugly. -
OscarDali
MSWS said: ↑
#12 OscarDali, Jun 12, 2018Server management shouldn't use clear chat as a filter, it should be a final last minute emergency fix. There's a major difference between clear chat and a full on filter. I wish everyone the best of luck in making a filter that's as good as a regular human. But good luck. There isn't really a point in doing, if anything it'd just make the clear chat super ugly.Click to expand...
Well clear chat would be avoided, and if it is very difficult, but for servers ip is very useful, you can block all domains, .com, .org, .net ... can detect the message, and cancel the event so that it is not sent to the chat, and tell the staff that someone has said a bad word or mention of another server. -
Jonnyo101
Guy asks "Whats the best way to clear chat".. We tell him how to run his/a server
#13 Jonnyo101, Jun 12, 2018
OP: I would say the way your doing it.. If players did you a hacked client to bypass let that hackers leave haha -
PhaxyWende
MSWS said: ↑
#14 PhaxyWende, Jun 13, 2018There isn't really a point in doing, if anything it'd just make the clear chat super ugly.Click to expand...
Since you can also clear the chat with normal spaces AFTER (as I wrote), I don't know whats wrong with it
-
Useful x 1
-
-
Strahan Benefactor
Jonnyo101 said: ↑
#15 Strahan, Jun 13, 2018OP: I would say the way your doing it.. If players did you a hacked client to bypass let that hackers leave hahaClick to expand...
FrostedSnowman's method is more efficient. PhaxyWende said: ↑Since you can also clear the chat with normal spaces AFTER (as I wrote), I don't know whats wrong with it
If you clear with spaces after using the random crap, then what's the point of the random crap? lol
Click to expand... -
PhaxyWende
Strahan said: ↑
#16 PhaxyWende, Jun 13, 2018FrostedSnowman's method is more efficient. If you clear with spaces after using the random crap, then what's the point of the random crap? lolClick to expand...
I already explained this in my post before. Players with clients that stack equal messages get a "cleared" chat aswell. -
Strahan Benefactor
PhaxyWende said: ↑
#17 Strahan, Jun 13, 2018I already explained this in my post before. Players with clients that stack equal messages get a "cleared" chat aswell.Click to expand...
Ahh, I missed that one heh. -
Choco Moderator
PhaxyWende said: ↑
#18 Choco, Jun 13, 2018I already explained this in my post before. Players with clients that stack equal messages get a "cleared" chat aswell.Click to expand...
Those are people running modified clients. If they want to run something other than vanilla, what they see is at their discretion. -
PhaxyWende
2008Choco said: ↑
#19 PhaxyWende, Jun 13, 2018Those are people running modified clients. If they want to run something other than vanilla, what they see is at their discretion.Click to expand...
Yes, and thats why they have some "ugly" random numbers on their screen. There are things you want to hide as server admin (server ips, links...) -
solo
Best way to clear the chat is by making the player press 'F3+D', Thank me later ;P
#20 solo, Jun 13, 2018 Last edited: Jun 14, 2018
- No, create an account now.
- Yes, my password is:
- Forgot your password?
Tag » How To Clear Chat In Minecraft
-
How Do I Clear Chat In Minecraft Java Edition? - Howchoo
-
Clearchat Command - Minecraft Feedback
-
Can I Clear Chat Using A Command Block? - Arqade - Stack Exchange
-
MINECRAFT | How To Remove Or Delete Chat History In Game!
-
[Suggestion] /clearchat Command : R/Minecraft - Reddit
-
How To Clear The Chat In Minecraft - Mining Cubes
-
Clear Chat Command - Suggestions - Minecraft: Java Edition
-
How To Clear Your Chat In Minecraft - Cyber X Gaming
-
How To Clear Chat Using Command Blocks! - Minecraft - Dailymotion
-
How To Clear Chat In Minecraft - Askingames
-
Don't Clear Chat History - Mods - Minecraft - CurseForge
-
Clear Chat | Minecraft PE Texture Packs - MCPEDL
-
MarvinKlar/ClearChat: A Simple Minecraft Plugin Which Can ... - GitHub
-
Minecraft Clear Chat Command Code Example - Grepper