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 Feb 14, 2012@Luan5006 Commandhelper is the best plugin any server admin could ask for, when it comes to command aliases. You can make alias commands, as well as custom "macro" commands. A simple example would be (we use this on our server):
/w $player $ = /msg $player $
when a person typed ./w player message, it would change it to ./msg player message
You could use this plugin to do things like:
/o $ = /ooc $
I'm recommending this solution as we've used it to make a lot of custom commands, it helps integrate plugins for our users. (also makes some admin commands you have to type on an average basis a lot, lot shorter). The best part is you don't have to setup permissions for the new commands, it's done with the original plugin.
Hope this helps! :)
-
View User Profile
-
Send Message
Posted Feb 13, 2012Any plans for color support for prefixes? It'd be awesome to be able to color-code chat.
-
View User Profile
-
Send Message
Posted Jan 27, 2012Nice chat! Im using it and its going perfect! Good work.
-
View User Profile
-
Send Message
Posted Jan 22, 2012@Luan5006
ill add support for alias's aswell
-
View User Profile
-
Send Message
Posted Jan 21, 2012Oh, great!
Could you also make /ooc something like /o if possible?
-
View User Profile
-
Send Message
Posted Jan 20, 2012@Luan5006
Sorry the toggle commands were not built like that, its there for people who want to continuously chat over ooc for a while (So using /tooc will turn off local chat for them and make their normal chat OOC).
ill add some admin commands for disable and enabling features ingame next version.
-
View User Profile
-
Send Message
Posted Jan 20, 2012It's working now, but /tooc and /tshout have no effect.
They simply say "OOC Chat Enabled" "Shout Enabled".
Even when it says "OOC Chat Disabled", it's still possible for others to use /ooc.
-
View User Profile
-
Send Message
Posted Jan 19, 2012@BioRage
ill add it in the next version
-
View User Profile
-
Send Message
Posted Jan 19, 2012@Grover13
Can you add a prefix for OOC?
[OOC]
-
View User Profile
-
Send Message
Posted Jan 19, 2012@Luan5006
ah Ive seen what you've done here, the way its built is to support multiple worlds at once. So what you want is:
where nameofworld is actually the name of the world, sorry about the misunderstanding.
-
View User Profile
-
Send Message
Posted Jan 19, 2012http://pastebin.com/29kgU3ca
I hadn't written anything at all in nameofworld and commands simply didn't work.
I wrote "world" (name of my world) after it and got those errors.
-
View User Profile
-
Send Message
Posted Jan 18, 2012@Luan5006
could you show me your config file as well as the name of the world you're trying to get it working on
-
View User Profile
-
Send Message
Posted Jan 18, 2012Nothing happens at all in this version :/
I type in a command such as /tooc, /ooc or /shout and nothing pops up, not even in server log.
-
View User Profile
-
Send Message
Posted Jan 15, 2012Tested on dev of SpoutPlugin and Bukkit, works great.
Can you add a reload command for config, and [OOC] ?
Perhaps a color changer for text
[GREY][OOC]<MSG>
-
View User Profile
-
Send Message
Posted Jan 14, 2012@Luan5006
over-sight on my part, should be fixed in the latest version.
Thanks
-
View User Profile
-
Send Message
Posted Jan 13, 2012Got the following errors when trying to perform any command in the current version
http://pastebin.com/7gFJ1mhR
-
View User Profile
-
Send Message
Posted Jan 11, 2012I can still see other world's chat when in a different world :/
I have all the worlds in the config correctly.
-
View User Profile
-
Send Message
Posted Jan 8, 2012It's fixed with this new version. But /shout doesn't do anything and when I type /tooc or /tshout it only says Toggle OOC enabled. and that's it.
I'm using:
Boatmod
Botulism
FLTDetector
Lockette
LoginMessages
SimpleHome
WorldEdit
SLAMP
Questioner
Bookworm
Towny
-
View User Profile
-
Send Message
Posted Jan 4, 2012@Luan5006
i am unable to recreate this; can you give me more details? whats plugins, your craftbukkit version etc. Thanks
-
View User Profile
-
Send Message
Posted Jan 4, 2012I'm getting an error when I start the server:
http://pastebin.com/SSfT0PMj
I'm using Towny, but even when I turned it off, I still got the error.