ChatClear V1.1.0 For SpongeAPI 4.1.0 & 5.0.0

Re-posting as it was removed from Ore-Staging during a reset.

ChatClear V1.1.0 SpongeAPI 4.1.0 & 5.0.0

###Features

  • New! - Now reloads configs and re-registers commands on /sponge plugins reload
  • Incredibly configurable.
  • Commands:
    /chatclear Clear chat for the user typing the command.
    /chatclearglobal Clear the chat for everyone on the server.
  • OnJoin:
    Clear the chat of users when they join the server.

###Permissions
“chatclear.clear” - Needed to clear the chat of yourself, recommended for all users.
“chatclear.join” - Needed to have your chat cleared on join. - recommended for all users.
“chatclear.global” - Needed to run the command to clear the chat of the whole server, - recommended admins or moderators only.
“chatclear.immunity” - Prevents chat clears from happening, - recommended for moderators, admins, or anyone that hates having their chat cleared by others.

###Config

Fully configurable!

aliases: [ “cc”, “chatclear” ]
permission: “chatclear.clear”
description: “A command to clear chat, use F3+D instead if you rather”
lines: 20
clearOnJoin: false
clearOnJoinPermission: “chatclear.join”
globalClearPermission: “chatclear.global”
immunityPermissionGlobal: “chatclear.immunity”
globalClearDescription: “Clears the chat for everyone without immunity”
immunityMessage: “Your chat would have been cleared if not for immunity”
globalClearAliases: [“ccg”, “clearchatglobal”]


#Download

Releases on Releases · RTLSponge/chatclear · GitHub

#Issues

Report issues & feature requests here or on the github tracker.

#Changelog:
v1.1.0 for SpongeAPI 4.1.0 Adds Reload support.
v1.0.1 for SpongeAPI 4.0.0 First stable version.

it doesn’t work. Can only clear chat for yourself not the server.

/clearchatglobal does it for the server.

/clearchat is self

1 Like

It’s likely a permission error. if you have granted yourself all permissions then you would have granted yourself the immunity permission for global chat clear, so you probably arn’t seeing it being cleared.