Brettflan
30d9bbf138
Performance overhaul sponsored by rockxz3, using his large server's data for reference to help with testing and tuning. Timing numbers below are based on this data set.
...
* PlayerMoveEvent performance boost (from 0.047ms to 0.015ms in testing, ~313% as fast): now more thrifty in determining whether player has actually moved between chunks before doing anything else; important since this event triggers extremely quickly
* PlayerInteractEvent performance boost (from 0.068ms to 0.034ms in testing, ~200% as fast): now ignores left-clicks for interaction checks, since in CraftBukkit 1.4 left-clicks no longer open doors or activate buttons/levers/etc.; not as important as above, but still triggers quite often as people are digging or interacting with blocks
* "/f list" command performance boost (from 234ms to 30ms in testing, ~780% as fast): code was getting information for all factions, narrowed it down to only getting info for displayed page range
* "/f show" command performance boost (from 132ms to 28ms in testing, ~470% as fast): tweaked the ally & enemy listing code used
2012-11-06 09:43:30 -06:00
Brettflan
ea2da7ea9f
Fix for crash on startup if Worldguard integration is enabled ("worldGuardChecking" or the new "worldGuardBuildPriority") but Worldguard plugin isn't loaded on server
...
Also updated SpoutPlugin lib
2012-10-09 17:36:59 -05:00
flatbmx
909f605343
fixed default build if there was no region at location.
2012-09-08 11:22:18 -05:00
flatbmx
774d013cd0
Added WorldGuard region building overriding safezone build rules if enabled.
2012-09-08 11:02:36 -05:00
Brettflan
6059ee0b0b
Update for remaining old PlayerChatEvents, update EssentialsChat libs and integration accordingly
2012-08-07 21:51:31 -05:00
Brettflan
2dbaee836b
Ability to pay for commands (through economy) is now checked before firing events which can be canceled, and actual payment made after making sure the event isn't canceled.
...
Added Econ.hasAtLeast(EconomyParticipator ep, double delta, String toDoThis) method to check if an account has at least a specified amount of money in it. Also added related FCommand.canAffordCommand(double cost, String toDoThis).
2012-03-13 09:48:31 -05:00
Brettflan
30c2eaeac3
(donington) Fixes for compiler warnings & minor .gitignore enhancement, completed the last of the creatureType/entityType renaming (a few imports and functions)
2012-03-13 08:43:55 -05:00
Brettflan
e1a3d8bffb
Final attempt to fix rare non-fatal NPE from Player ending up returning null while updating Spout appearance features
2012-03-01 09:38:46 -06:00
Brettflan
503233b916
UNTESTED: fix for chatspy not working with CAPI chat integration
...
If it's still not working correctly, let me know
2012-02-25 04:44:26 -06:00
Brettflan
02fa6ab2c1
(Olof) (backported from 1.7 branch) New setting "homesTeleportCommandEssentialsIntegration" (default true) which, if enabled, will integrate /f home teleports with the Essentials plugin's teleport handler if Essentials is on the server. This provides teleport cooldown and/or delay to /f home based on your Essentials configuration.
2012-02-22 13:41:47 -06:00
Brettflan
5452a7cf91
Clean up integration methods with other plugins a bit
2012-02-22 11:43:56 -06:00
Brettflan
11a4162981
Updated SpoutAPI, handled deprecated Spout AppearanceManager code, updated Spout event listener to new Bukkit event system
2012-02-20 17:03:43 -06:00
Brettflan
af85f0f503
(Olof) Using latest CAPI for integration
2012-02-20 16:53:10 -06:00
Brettflan
03d32ec5b0
Fix for potential NPE in CraftBukkit caused by LWC location world returning null
2012-02-19 08:23:09 -06:00
Brettflan
32da53f459
Preemptive EssentialsChat 3.x support, since they'll be removing the old local chat integration method; new implementation will need improvement to support relation coloring, but for now it otherwise works.
...
When chat event hits an UnknownFormatConversionException which requires better chat configuration, the quick dirty fix of setting chatTagInsertIndex to 0 is now automatically applied.
2012-02-02 19:31:34 -06:00
Brettflan
784895c779
Workaround fix for EssentialsChat integration not working on Essentials 2.8+. "chatTagReplaceString" setting now defaults to "[FACTION]" instead of "{FACTION}" since Essentials now converts curly-braces to square-braces for any tags specified in their chat format setting which Essentials doesn't recognize.
...
For those using Essentials 2.8.x, this should hopefully be handled automatically.
2012-02-02 07:28:56 -06:00
Brettflan
7a38ee42a7
zero-value economy gains/losses are now skipped over ("X gained 0.0 for claiming this land" and similar is a bit odd)
...
CLeaned up warning given for UnknownFormatConversionException chat exception; the debug info is no longer useful for us, and a distraction for users.
2012-01-31 11:07:48 -06:00
Brettflan
3d8f4419ed
Delayed Vault economy integration not necessary after all; reverting added delay
2012-01-29 23:11:40 -06:00
Brettflan
7c8e25fb8f
Fix for Vault economy integration bugging out if the target economy plugin loaded after Factions (really seems like a Vault issue, but we'll work around it)
...
Fix for users who have Vault but don't use economy getting an NPE
2012-01-28 05:24:36 -06:00
Brettflan
5c986109f8
(patrickfreed) Fixed NPE in LWCFeatures
...
Fixed problem described here: http://forums.bukkit.org/threads/sec-fun-factions-1-6-3-guilds-war-and-user-controlled-antigrief-1-1-r1.19063/page-83#post-928744
2012-01-26 22:19:12 -06:00
Brettflan
a5e2a62eac
Economy integration is now handled through Vault instead of Register. You will need to download and install the Vault plugin now if you want to use any Economy-related features. If you're not using the Register plugin for anything other than Factions, it should be safe to remove it from your server.
...
Vault: http://dev.bukkit.org/server-mods/vault/
Note: for proper faction bank support in iCo5 and EssentialsEco, I recommend waiting for Vault 1.2.5 to be released which addresses faction account creation issues.
2012-01-16 19:36:32 -06:00
Brettflan
f5d2ac5aec
minor changes to LWC integration
2012-01-15 12:17:21 -06:00
Patrick
c2f0f5ad51
Added unclaim and disband chest resets to LWC
2012-01-10 19:09:15 -05:00
Patrick
1d0ba04336
LWC integration
2012-01-07 18:27:03 -05:00
Brettflan
5dc332691b
Hopefully fix a couple of economy integration problems
2011-12-18 01:36:36 -06:00
Brettflan
a7aa0d1aea
fix for Spout's questionable new "no default height" warning for variable-sized text labels
2011-12-16 00:31:59 -06:00
Brettflan
22fe84f32c
Fix for rare SpoutPlayer exception when player logs off while spout features related to them are updating
2011-12-16 00:29:53 -06:00
Brettflan
e0aaa395a7
1.6.1 stuff
2011-12-16 00:19:41 -06:00
Brettflan
f8f3704cd4
Additional logging, with new conf.json settings to enable/disable logging of specific events:
...
"logFactionCreate": true, - log faction creation
"logFactionDisband": true, - log factions being disbanded, by command or by circumstance
"logFactionJoin": true, - log player joining a faction
"logFactionKick": true, - log player being kicked from a faction
"logFactionLeave": true, - log player leaving a faction
"logLandClaims": true, - log land being claimed (including safe zone and war zone)
"logLandUnclaims": true, - log land being unclaimed (including safe zone and war zone)
"logMoneyTransactions": true, - log money being deposited, withdrawn, and otherwise transferred in relation to faction banks
Also a fix for a potential NPE from players logging out and Spout appearance handler referencing them afterwards
2011-10-23 12:50:02 -05:00
Brettflan
83f690c9c5
Fix for unclaimall command not working if Economy was disabled
2011-10-23 10:04:36 -05:00
Brettflan
3e8faad156
Updated Spout features to improve consistency (of code, and of displayed information)
2011-10-23 09:03:28 -05:00
Olof Larsson
32624e0339
Fixing a string format error and possibly solving a money rights issue
2011-10-23 02:43:25 +02:00
Olof Larsson
e6d45a6aa2
Spout overlay support is missing for the new relation coloring. Otherwise done.
2011-10-21 20:08:54 +02:00
Brettflan
38e128010c
Fix for /f permanent and /f peaceful commands giving an NPE if run from console
...
Fix for rare NPE when Spout territory info update is run and affected player disconnects at precisely that moment
Clarified "cannot attack neutral faction" messages to indicate enemy status is needed
Updated Bukkit lib to correspond with CB 1337
2011-10-20 18:08:55 -05:00
Brettflan
e3284a5ee1
Fix for /f money command not being shown in help, and some other minor cleanup
2011-10-16 09:11:29 -05:00
Brettflan
61bd37c99b
A bit of command help menu cleanup
2011-10-15 12:46:44 -05:00
Olof Larsson
00f6f4ab05
Support for the CAPI plugin.
2011-10-14 15:03:23 +02:00
Olof Larsson
3967579884
Merge branch 'master' of github.com:MassiveCraft/Factions
2011-10-13 22:49:52 +02:00
Olof Larsson
618c5fceed
Fixed a bug with the smoke effect for the faction home and one NPE.
2011-10-13 22:49:41 +02:00
Brettflan
358186764d
Territory owner list was not being shown to people who aren't running the Spoutcraft client, when Spout was hooked... fixed
2011-10-13 14:30:47 -05:00
Brettflan
d7a2a88f95
Merge branch 'master' of github.com:MassiveCraft/Factions
2011-10-13 14:10:04 -05:00
Brettflan
1a38007d64
With Spout, the territory indicator now also has an ownership indicator below it (but only if the current territory has any owners set), and a larger centered territory notice below which goes away after a couple of seconds.
...
These effectively replace the related chat notices if enabled.
Also, updated libs.
2011-10-13 14:09:47 -05:00
Olof Larsson
98260c75de
Bugfixes and awesome probably complete money commands.
2011-10-13 16:07:07 +02:00
Olof Larsson
0888e027ad
Econ messages improved. All money commands is now under the money parent command.
2011-10-13 14:41:07 +02:00
Brettflan
73ea2b75e0
Spout name-over-head modification seems to bug out for players viewing themselves, their name ends up over the head of some other mob in the world... so, it now skips doing that when viewer = viewed. Capes thankfully don't have the same problem, though a caped creeper might actually look pretty cool.
2011-10-13 04:23:00 -05:00
Brettflan
4ec086e4fa
Fix for faction creation sometimes causing an NPE; hopefully a fix for the cause of the null value as well, from an ID clash in the entity collection of factions
...
Fix for disband command causing an NPE if run from the console
Additionally, disband command use is now logged
2011-10-13 04:10:29 -05:00
Brettflan
cace4aa955
Fix for faction not being disbanded properly when last player leaves
...
Fix for some NoClassDefFoundErrors when Register plugin isn't present and certain economy functions are used
2011-10-12 23:44:59 -05:00
Olof Larsson
f25daa228a
Some of the bugs are fixed.
2011-10-12 18:48:47 +02:00
Olof Larsson
b202acb685
Almost finished money refactoring
2011-10-12 17:25:01 +02:00
Brettflan
f5190db257
Moved some Spout code out to a separate listener, for slightly better organization and more importantly to prevent NoClassDefFoundErrors on servers not running Spout
...
The text scale (size) can now be set for the territory display using conf.json setting "spoutTerritoryDisplaySize" (default 1.0), and "spoutTerritoryDisplayShowDescription" (default true) can be disabled to have only the faction tag/name displayed and not the description as well
2011-10-10 21:09:58 -05:00