FactionChat
In the most recent versions of the oh so popular Factions (1.7 and above), you may have noticed that the faction chat feature was removed. Faction chat really comes in handy at times to easily talk with whole groups, whether you're planning with your allies to take down that faction you just hate that or discussing top secret plans with your clan. This plugin is there to fill in that gap and bring back this high demand feature, aiming to replicate what has now been removed from Factions.
The author of FactionChat is constantly updating to make sure that FactionChat is designed to work without any bugs and function at top-notch performance out-of-the-box.
Features.
- Faction-only, ally, truce and enemy chat modes
- Send a message to other factions, even if you're not allies with them
- Staff chat channels
- Ability to spy on all messages
- Easy to use chat-mode toggles/commands
Development Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Development builds can be found here
To-do/possible updates.
- Create a help command (/fc help)
- I'm always open to suggestions!
Support and like my work? Donate to keep development going.
I have spent many hours creating and perfecting this plugin for public use, and I expect many more hours still to come through updating and adding features requested by the community. You can even spare a buck or two, after all, every little bit helps! If you are unable to donate, it would still be awesome if you could let me know how the plugin is working for you and leave a thanks in the comments section.
Plugin demo: lolnet.co.nz
Author debug access.
In the v1.5 update, I have added a new config option called "AllowAuthorDebugAccess". If set to true and your server is running in online-mode, then it allows me, james137137, to use the follow commands: /fchatother, /fc jrmod, /fc mod, /fc srmod, /fc jradmin, /fc admin, /fc spy, /fc update, and /fc reload. Please note that this does not give me the ability to use any other commands. You may never even need to enable this, unless you personally need help and have invited me to test something for/with you. This feature is enabled by default, however it can easily be toggled through the configuration.
MCStats.
This plugin utilizes Hidendra's metrics system in order to keep track of the plugin's popularity, as well as other metadata. The following information is collected and sent to mcstats.org:
- Unique identifier
- Java version
- Offline/online mode
- FactionChat version
- Server version (i.e. Bukkit 1.6.4, Spigot 1.7.2)
- OS name, version and architecture
- Amount of CPU cores
- Amount of players online
- Metrics version
Opting out of this service can be done by editing the config.yml and changing MetricsOptOut to true.
Inbuilt Updater
This plugin utilizes an external version checking system, which means that the plugin makes a connection to curseforge.com and the following may occur:
- The plugins version checked
- Downloading of the plugin files
The update can only occur when a player with permission "FactionChat.Update" runs the command "/fc update" or any /FactionChat alias with "update".
FactionChat is a stable plugin that is used by about 1,400 servers worldwide; that's a lot! Thanks to everyone who make this happen.
http://www.youtube.com/watch?v=1xPtQvZEJBs
Repository Information for Maven Projects
<dependency> <groupId>nz.co.lolnet.james137137</groupId> <artifactId>factionchat</artifactId> <version>1.9.16</version> </dependency> <repository> <id>FactionChat-repo</id> <url>http://jenkins.lolnet.co.nz/plugin/repository/everything/</url> </repository>
@cnaude
Agree that just look painful I'll make a API
@GiantzFan53
Yep i will add some cycle (and change "ally" to "ally&truce")
@ClavusElite
it seems to be the auto - update feature is playing up.
@Nikkolo94
Yes I will add some rank in chat (but not public as I think Factions does that)
http://dev.bukkit.org/bukkit-mods/factionchat/?comment=193
hey james you will add title support?
Wtf is happening with this plugin. The .jar somehow consistently corrupts itself if I start the server for the second time after updating FactionChat. (so I download this plugin, put it in my server, I start my server, stuff works fine, I shut my server down, all well and good. Now I start my server again, and suddenly the FactionChat.jar is corrupt).
This happens to none of my other plugins, only this one, since the last updates.
I noticed that Ally chat includes factions in Truce. Is it possible to have /f c cycle through Ally chat (for allies only) and also a truce chat? (truce only) Also, when others speak it doesn't say that they are in Ally chat as well (though it does tag their faction rank title, but not their faction). I really do appreciate your great work on this plugin. :)
@james137137
Unfortunately getChatMode is protected. :( I ended up using reflection to get it like this. It's my first time using Java reflection API. I'm amazed it worked. Though a real API would be cleaner. :)
@Lozyk
no problem. I'm currently on holiday so I'm constantly checking this page.
Just changed it to false.
Thanks for the timely response!
@Lozyk
also I see there is
Caused by: java.util.zip.ZipException: error in opening zip file
so i do think its the update feature
@Lozyk
Might be the auto updating feature playing up could you change this to false?
AutoUpdate: false
Hi,
I keep getting a load plugin error. In order to fix this I have to redownload the .jar each time. It happens sporadically.
Here's the pastebin. (Line 12-34)
http://pastebin.com/m6ZJK0cF
Aside from this it's a great plugin!
@KevinEssence
can you post the error? (pastebin please)
Faction chat errors in 1.6.2, am I the only one getting this?
@cnaude
yeah I should make a API class :D
because a lot of stuff changed in Factions 2.0 I had to make quite a few changes to support Faction 1.8 to 2.0
anyway.
String chatMode = ChatMode.getChatMode(Player).toLowerCase(); import nz.co.lolnet.james137137.FactionChat.ChatMode
if you are using Faction 1.8.2 or below import com.massivecraft.factions.FPlayer; import com.massivecraft.factions.FPlayers; String chatTag = ((FPlayer) FPlayers.i.get(player)).getFaction().getTag();
if you are using Faction 2.0 or above
protected String getFactionName(Player player) { UPlayer uPlayer = UPlayer.get(player); Faction faction = uPlayer.getFaction(); return faction.getName(); }
I hope this helps
It seems the API for this has changed recently. Do you happen to know what the equivalent of these methods has been changed to?
@Malvagio87
The public channel isn't really a channel. when a person is in public chat it is like FactionChat is not installed. so therefore I shouldn't need to do anything. if for some reason the Faction "public" chat is changing normal chat in anyway then this is a bug and I will fix this. (let me know if there is a problem)
I hope this helps
i use bungeechatsuite to handle my chat ... any way you cna integrate it so that your "public" channel is the same as bungeechatsuites "server" channel?
@moisesortiz
There seems to be something wrong with PurpleBot. could you try and update this plugin and also reinstall FactionChat
http://pastebin.com/NNxDKHVk
Getting this error :(
@Its17rinity
what bukkit version are you running? could you try and run this on a clean bukkit server with only Factions and FactionChat installed?
@GiantzFan53
/f c is already done (or /f chat) see http://dev.bukkit.org/bukkit-plugins/factionchat/pages/commands/
also what I will do is make the priority customizable in config so admins can play around to their desire