Local Chat + OOC + Shout
Sorry about not updating this in a while, ive been busy. I have remade Local Chat, it is now more flexible, easier to update and offers more options
Features
- Economy support with vault (not required)
- Ability to add as many chat modes as you want
- More options for a chat mode
- Global config options
- Permissions support
- Formatting options
Usage
To add a chat mode to a world, create a config file in your plugins/localchat directory (if this directory doesnt exist, start the server and the plugin should create the folder). The file name has to match the name of the world you want the modes to be active on. So if you had a world called localchat_world, you would call the config file localchat_world.yml
The file must end in yml!
You now need to add each mode you want to the world configs, like this:
1 2 3 4 5 6 7 8 9 | local: default: true radius: 20 tag: "[Local]" format: "&4<tag> &2<name>:&f <text>" pay: 10 commands: - "local" - "l" |
Available Chat Mode Options
| option | description | default |
|---|---|---|
| default | This will mark this chatmode as the default chat. You can only have own default per world | false |
| radius | The distance in which other players can hear each other | 0 |
| tag | The tag to insert into the message, if no tag is provided it will not insert one. | |
| format | The format of the message, if this is provided it may override other plugins. Options include: <tag>, <name>, <text>, <suffix>, <prefix> and &1-9/a-f for colour | |
| pay | How much it costs to use this chat mode, requires VAULT | |
| commands | A list of commands to use this chatmode with | |
| global | If set to true everyone in the server can hear you when using this mode | false |
| read_permission | The permission to read messages from this chatmode, no permission is required by default. | |
| write_permission | The permission to write messages to a chatmode, no permission is required by default. | |
| suffix | Used with format to add a suffix to the message | |
| prefix | Used with format to add a prefix to the message |
Commands
Default commands that are included are:
- /lc reload - reloads the config files; require permission node localchat.admin.reload
- /lc spy - allows you to see anything that is said, even if outside the radius; requires permission node localchat.admin.spy
- /toggle <chatmode> - toggles a chatmode so that everything you say is in that mode (ie /toggle shout will always make you shouting if you have a shout mode)
- /toggle - clears your toggle
- /c - toggle alias
- /chat - toggle alias
- /tg - toggle alias
- /to - toggle alias
-
View User Profile
-
Send Message
Posted May 7, 2012Also, does this support multiple worlds? I created two world configs and it only loaded the config for one of my worlds
-
View User Profile
-
Send Message
Posted May 7, 2012I have a request. Add the no one can hear you and also please make it so you can toggle a chat channel so when you disconnect and reconnect you stay in that channel.
-
View User Profile
-
Send Message
Posted Apr 29, 2012This! @MisterBlackBart @gustebeast Having the server tell you when "Your shouts echo far, but no one can hear you" would be an amazing feature to have.
Also, as per @docdeniz Please add support for Citizens, these two plugins work exceptionally well together.
-
View User Profile
-
Send Message
Posted Apr 28, 2012Two Requests: 1) Configurable "No one can hear you" message 2) Option for "cooldown" for chat formats. (E.G. must wait 30 seconds between each /shout)
-
View User Profile
-
Send Message
Posted Apr 23, 2012Feature request: If there's no one in your radius for local chat, it should tell you that no one can hear you
-
View User Profile
-
Send Message
Posted Apr 15, 2012Hi. First off, thank you for making this plug-in. This is exactly what i need. I love it but it has a problem with Citizens. When i write something, i take this error on console
2012-04-15 22:45:46 [SEVERE] Could not pass event PlayerChatEvent to LocalChat org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:786) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at com.gc13.localchat.LocalChatListener.localChat(LocalChatListener.java:152) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 11 more
-
View User Profile
-
Send Message
Posted Apr 15, 2012@bootfighter
Ah, the format option is probably poorly explained. You only provided a format if you want to override the servers format (so that's its compatible with chat formatting plugins), if there is no format provided and a tag provided; the tag is inserted before the all ready formatted chat (that's why tag has its own option). But i ill look into the suffix/prefix thing anyway.
-
View User Profile
-
Send Message
Posted Apr 15, 2012hey,
i think you have misunderstood me on the prefix/suffix part. I'll try to explain it as good as I can: So I guess you know at least one Permissions Plugin. In every of these you can set a prefix/suffix for a specific group or player. As far as i know, every PermPlugin has an API. With the API you can gather the information about the suffix/prefix for every player which were defined by the admin in the permission.yml. So that I, as an Admin, have the [Adm] prefix, my Team has the [Team] prefix, normal players the [Player] prefix and so on and so forth. Same for the suffix.
• Next thing are some small bugs.: (config-file at the end of the post)
when I'm typing: "/toggle <insert some random invalid words>" I'm getting the message "Valid Channels: default, local, l, local, team, t ,team"
It should look like: "Valid Channels: global, local, team"
• Bug No2: (same config) When I'm in the local chat (not default, not global, radius 100) and writing some messages, everyone in the 100 block radius can hear me…. except myself.
• The thing with the write/read permissions I think should not be configurable. It just confuses if too much is configurable. keep it simple. :)
-localchat.<chatname>.write/read
• And some suggestions:
- One global config file for the global chat which should be in every world the same
- The other configs in a "worlds"-folder for world specific chats.
- colored chat
- for what do you have a "tag" property? if i'd like to have a tag in front of the names i'd just write in the "format" property. easier. Same thing for the prefix/suffix.
greets boot
-
View User Profile
-
Send Message
Posted Apr 14, 2012@bootfighter
done! i haven't tested the perms though; so if you could tell me if they are working or not would be great
-
View User Profile
-
Send Message
Posted Apr 14, 2012Hey, can you add <prefix> and <suffix> from the permissions files for the 'format:' option?
example:
Permissionsfile:
in the configfile form this plugin:
and this would be displayed as:
[Local] [Adm]NameOfTheAdmin the legendary: message
are the permissions to write in a chat the same as the permission for reading it? like this?
- localchat.<chatname>.write
- localchat.<chatname>.read
because i'd like to make a TeamChannel as well, and only team members should be able to read it. or a Alert Channel where only Admins can write but everyone can read.
last but not least: some aliases for the toggle command?
- /chat <cahnnel>
- /c <channel>
- /to <channel>
or whatever. for faster typing :) and is it possible to take here all the 'command'-names as target?
- /toggle l
- /toggle local
so that you will end up with both commands in the local chat?
fast typing method where all target the local channel:
- /c l
- /to l
- /chat l
hope i could explain everything clearly what i mean. (bad english and so :) ) greets bootfighter
-
View User Profile
-
Send Message
Posted Apr 12, 2012fixed and done! enjoy
-
View User Profile
-
Send Message
Posted Apr 12, 2012Thanks for updating and putting the spy system, but /lc spy don't work it says Chat Spy enabled but doesn't do anything, and can you make color support in the tag? without using format because when I use the format overrides Essentials Chat
Thank you
And nice plugin, this is the best local chat plugin
-
View User Profile
-
Send Message
Posted Apr 12, 2012Nice, I love the new configuration now I can use local chat and use /shout command for global message !! yeah, great
Thank you Grover13
-
View User Profile
-
Send Message
Posted Apr 9, 2012@JohnKapsis
Yes, if a world doesn't have a config file; it wont have the set chat modes
-
View User Profile
-
Send Message
Posted Apr 9, 2012@ray73864
Are we looking at the same stuff? hehe. Indeed looks nice but can you force a per world system?
-
View User Profile
-
Send Message
Posted Apr 9, 2012I thinks this plugin is similar to Realistic chat.
-
View User Profile
-
Send Message
Posted Mar 17, 2012Looks like a pretty decent chat system, hopefully it gets updated for 1.2.3.
Would it be possible to get SQL support? such as MySQL, it isn't an important thing, but it would be nice to be able to manage it via SQL instead of the annoying yml files.
-
View User Profile
-
Send Message
Posted Mar 17, 2012Can you update to CB 1.2.3 R2?
-
View User Profile
-
Send Message
Posted Mar 8, 2012Can you make economy support? I want to make OOC to cost money.
-
View User Profile
-
Send Message
Posted Feb 18, 2012This is a nice plugin, you can give the moderator/admin a chance to read all posts, even those limited to a certain number of blocks? Edit: is possible to add some permissions?