FactionsChat
Basic information
Current version is v1.4.
This plugin works like ChatManager, with Factions and PEX.
Supported plugins
- Factions (Required!)
- PermissionsEx
- Multiverse-Core
- Jobs
- TagAPI
- GeoIPTools
Configuration
Configuration file config.yml
Plugin will create config.yml file on first server launch.
Then you can set:
enable: false time-format: 'yyyy/MM/dd HH:mm:ss' format: '{W} {F} {T} <{P}{N}{S}> {M}' allow-colorcodes: false range-mode: false range: 100 blocked-words: 'fuck,shit,...' prevent-dots: 0 change-tablist: false tablist-format: '{N}' use-tagapi: false tagapi-format: '{N}'
Explanation
- enable - Enables the plugin, can be true or false
- time-format - Sets the time format used by this plugin
- format - Sets the chat format
- allow-colorcodes - Enables using color codes in chat, can be true or false
- range-mode - Enables/disables message range mode
- range - Sets the length in blocks from message sender, so if you are farther than is this range, you won't see message in chat
- blocked-words - Words in chat which will be hidden by stars
- prevent-dots - Maximum number of dots in one word (set to 0 to disable)
- change-tablist - Enable/disable changing TAB player list with tablist-format
- tablist-format - Tablist format using formatting codes (without {M}) and color codes (Beware of maximum length of format - 16 chars)
- use-tagapi - Enables/disables using of TagAPI plugin - changing name bubble above head
- tagapi-format - Format of name in bubble, max. 16 chars
Configuration file advanced.yml
You should use this, when you don't use PEX and you use other permission plugin.
groups: group1: prefix: '&6[Group 1]&e' suffix: '&2[end]&f'
You can add new groups and set them prefixes and suffixes.
Then you have to add new permission to you permissions plugin, pattern is "factionschat.group.<group name>". E.g. factionschat.group.group1 and every player who has this permission will use prefix and suffix from group "group1".
Important: If you are admin, and you have enabled all server permissions ('*'), you have to disable permission factionschat.group.* and then you have to enable only one specified group, e.g. factionschat.group.admin
Formats, colors
Formatting codes
{W} - World name (if available, it is world alias from MultiVerse plugin)
{T} - Current time using formating time-format
{F} - Faction tag, you don't have to use chatTagReplaceString from Factions conf.json
{+F} - Faction tag with space before
{F+} - Faction tag with space behind
{+F+} - Faction tag with space before and behind
{P} - Prefix from PermissionsEx
{N} - Player's name
{S} - Suffix from PEX
{M} - Message text
{I} - Shows players IP
{:P} - Shows players port of his ip with : before
{C} - Shows ISO2 code of players country (by his IP), e.g. US, UK, CZ, PL,...
{C+} - Shows full name of players country, e.g. Czech Republic, Poland, Slovakia, Australia,...
{J:args} - Shows jobs prefix - args can be full, title, job, shortfull, shottitle and shortjob
Color codes "&"
Time formating
You can find the tutorial here
Commands & Permissions
- factionschat.reload - Allows you to use command /factionschat, which reloads the plugin's config
- factionschat.colorcodes - Allows you to use color codes like &1, &a, &f,... in chat
- factionschat.see - Allows you to see every message posted in chat including out of range messages
- factionschat.bypass - With this permission you will bypass range mode and everyone on the server will see your message in chat
- factionschat.group.<group name> - Use this when you don't use PEX and you use advanced.yml config.
Changelog
Quote from v1.4:
- Updated for newest CB
- Added support for Jobs and for TagAPI
- Fixed issue with geolocation - now you have to have enabled GeoIPTools plugin for this
Quote from v1.3.1:
- Fixed error IllegalArgumentException - Notice that player list names can only be a maximum of 16 characters long, or it will be automatically truncated
Quote from v1.3:
- Fixed bug ClassNotFoundException when player used /factionchat command after /reload command
- Fixed bug NullPointerException when player messaged after /reload command
- Fixed bug of {F} formatting codes, when {F} wasn't used -> Now, you can teoretically use this plugin without Factions!
- Added MultiVerse world aliases support - when is MV enabled, {W} will be world alias
- Added advanced.yml config, you should use this, when you use other permissions plugin -> Added new group permissions.
- Cleaned code
Quote from v1.2:
- Added configurale maximum of dots in one word (prevents advertisements - URLs and IPs)
- Added new color codes for bold, italic, underline, line-through, magic and reset
- Added new formatting codes - {F+}, {+F}, {+F+}, {I}, {:P}, {C} and {C+}
- Added permissions for bypassing range mode (see and write)
- Configurable TAB player list with formatting codes and color codes
- Fixed some bugs
Quote from v1.1:
- Added message range mode.
- Added configurable list of blocked words in chat.
Quote from v1.0:
- First version of FactionsChat plugin.
To do
Add Jobs supportAdd TagAPI support (to change nick bubbles above players head)Add MultiVerse supportAdd PermissionsBukkit support(added advanced.yml config file)Add {C} for showing players country (like CZ, UK, US, FR,...)Add {I} for showing players IPConfigurable (TAB) list of players on serverAdd permission to see every message posted in chat (default for every OP)Add permission for bypassing range mode (you can send message visible for everyone)Add {F+} format code (same as {F} but with space behind)Add new color codes (&w - bold (as wide), &u - underline,...)Hiding IP adresses and URLs in chat (maximum number of dots in one word)Ranged mode for messagesBlocked words in chat

-
View User Profile
-
Send Message
Posted Dec 22, 2012AS this has gone inactive... any chance you can post up the source code. If so I can take a look at fixing the AsyncChat error and continuing this plugin on.
-
View User Profile
-
Send Message
Posted Dec 18, 2012thanks alot for this buddy :D
-
View User Profile
-
Send Message
Posted Dec 13, 2012It would be great if the AsyncPlayerChatEvent error could be fixed with CraftBukkit 1.4.5-R0.2. It's causing severe hickups for us on our server.
-
View User Profile
-
Send Message
Posted Dec 2, 2012I'm having that error sometime that crash my serv :( ...
[SEVERE] Could not pass event AsyncPlayerChatEvent to FactionsChat v1.3.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:24)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:919)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:858)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.NetworkManager.i(NetworkManager.java:208)
at net.minecraft.server.NetworkManager.c(NetworkManager.java:344)
at net.minecraft.server.NetworkReaderThread.run(SourceFile:93)
Caused by: java.lang.NullPointerException
at me.PerwinCZ.FactionsChat.FactionsChatLocator.getSourceCode(FactionsChatLocator.java:34)
at me.PerwinCZ.FactionsChat.FactionsChatLocator.geoIp(FactionsChatLocator.java:42)
at me.PerwinCZ.FactionsChat.FactionsChatListener.reloadGeoIp(FactionsChatListener.java:171)
at me.PerwinCZ.FactionsChat.FactionsChatListener.onAsyncPlayerChat(FactionsChatListener.java:184)
at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
... 10 more
-
View User Profile
-
Send Message
Posted Nov 29, 2012please fix suffix with permissionsex and add jobs.
-
View User Profile
-
Send Message
Posted Nov 26, 2012@Vezos
So am I :( Any fixes?
-
View User Profile
-
Send Message
Posted Nov 26, 2012@runeslave
I am getting this exact same error, I do hope a fix come out soon :c
-
View User Profile
-
Send Message
Posted Nov 26, 2012Getting this error lately making factionschat not working anymore:
-
View User Profile
-
Send Message
Posted Nov 23, 2012@Poxucis
And what update do you want? This version works fine on the newest craftbukkit.
-
View User Profile
-
Send Message
Posted Nov 23, 2012Any updates is coming?
-
View User Profile
-
Send Message
Posted Nov 10, 2012add command for GLOBAL MESSAGE
-
View User Profile
-
Send Message
Posted Nov 4, 2012@toguno
It should.
-
View User Profile
-
Send Message
Posted Oct 25, 2012does it work with hero chat?
-
View User Profile
-
Send Message
Posted Oct 19, 2012lol
http://pastebin.com/twc0D8hf
please fix
-
View User Profile
-
Send Message
Posted Oct 19, 2012Starting to get this error .. and server crash .. any idea ?
2012-10-19 19:16:10 [SEVERE] Could not pass event AsyncPlayerChatEvent to FactionsChat v1.3.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:833) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:810) at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:124) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.i(NetworkManager.java:211) at net.minecraft.server.NetworkManager.c(NetworkManager.java:332) at net.minecraft.server.NetworkReaderThread.run(SourceFile:93) Caused by: java.lang.NullPointerException at me.PerwinCZ.FactionsChat.FactionsChatLocator.getSourceCode(FactionsChatLocator.java:34) at me.PerwinCZ.FactionsChat.FactionsChatLocator.geoIp(FactionsChatLocator.java:42) at me.PerwinCZ.FactionsChat.FactionsChatListener.reloadGeoIp(FactionsChatListener.java:171) at me.PerwinCZ.FactionsChat.FactionsChatListener.onAsyncPlayerChat(FactionsChatListener.java:184) at sun.reflect.GeneratedMethodAccessor310.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:339)
-
View User Profile
-
Send Message
Posted Oct 18, 2012plz notify me right away after you added jobs variable
-
View User Profile
-
Send Message
Posted Oct 15, 2012@DerekZil
I will try fix it.
-
View User Profile
-
Send Message
Posted Oct 15, 2012@scgamer_99
Make sure that you have enabled in config allow-colorcodes.
-
View User Profile
-
Send Message
Posted Oct 15, 2012@babababagagaga
Yes, I could add Jobs prefixes {J}.
-
View User Profile
-
Send Message
Posted Oct 15, 2012@Dinastya
No, I couldn't. There is no good reason.