PerRegionChat
Tested versions: 1.14, 1.15
Configure a WorldGuard region to have a separate chat from the rest of the world
- Features:
Choose whether a determined region should have its chat separated
from the rest of the world
Adds a custom WorldGuard region flag ('restric-chat'), to let you choose whether a determined
region should have a restricted chat.
Chat messages send from within such region will only be visible to
players in the same region
That way, you get a localized game chat, instead of a global one! Check the config and
permissions sections for more customization options.
Allows the region restriction of team chat though/teammsg and /tm
commands
Enabling this option will add plugin commands named like the vanilla ones. These will normally
be used instead of the vanilla, but the vanilla ones are still accesible through /minecraft:teamms
and /minecraft:tm. To avoid this, remove the permission node minecraft.command.teammsg
from players.
Compatible with chat formatting plugins
The plugin only changes the list of message recipients, so the format of the message won't be
altered (i.e. If you use Essentials Chat, the messages will still have the format you set with that
plugin).
I've you have any ideas about what to add to this plugin, or how to
enhance it, let me know!
- Note: This plugin uses WorldGuard as a dependency, so you need to install it too in order to use PerRegionChat.
- Config:
Restrict chat by default: false
Send unrestricted chat to restricted regions: false
Override vanilla /teammsg and /tm commands: false
Permissions:
perregionchat.bypass.send
Let's a player bypass chat sending restrictions. Chat send will be received by players
regardless of restrictions.
perregionchat.bypass.receive
Let's a player bypass chat receiving restrictions. The player will be able to receive chat from
all regions, regardless of restrictions.
perregionchat.command.reload
Allows usage of the command '/prc reload', which reloads the config.yml.
perregionchat.command.teammsg
Allows usage of the commands '/teammsg' and '/tm', which overrides the vanilla team chat
commands
- Donations:
This plugin is part of my massive server proyect, Craftec, a MMORPG Minecraft server currently in development. By donating, aside from thanking me, you'll help me finance my proyect.
If you feel like it, you can make a little donation to my PayPal. Thank you so much, I really appreciate it!
please add support for 1.8+ and newer versions :p
There's an error on sending event.
[15:23:51 ERROR]: Could not pass event PlayerChatEvent to PerRegionChat v1.0-SNAPSHOT
java.lang.NullPointerException: null
at com.craftec.perregionchat.perregionchat.PerRegionChat.getChatRegion(PerRegionChat.java:53) ~[?:?]
at com.craftec.perregionchat.perregionchat.PerRegionChat.onPlayerChat(PerRegionChat.java:81) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor234.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.15.2.jar:git-Paper-167]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.15.2.jar:git-Paper-167]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.15.2.jar:git-Paper-167]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.15.2.jar:git-Paper-167]
at net.minecraft.server.v1_15_R1.PlayerConnection$5.evaluate(PlayerConnection.java:1747) ~[patched_1.15.2.jar:git-Paper-167]
at org.bukkit.craftbukkit.v1_15_R1.util.Waitable.run(Waitable.java:25) ~[patched_1.15.2.jar:git-Paper-167]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1213) ~[patched_1.15.2.jar:git-Paper-167]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:430) ~[patched_1.15.2.jar:git-Paper-167]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1127) ~[patched_1.15.2.jar:git-Paper-167]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:935) ~[patched_1.15.2.jar:git-Paper-167]
at java.lang.Thread.run(Thread.java:834) [?:?]
In reply to Forge_User_54665875:
It's fixed now! Thanks for letting me know.