Brettflan
03fe63cda0
Cleaning sweep, mainly for various stray "4 spaces" indentions to tabs
2012-03-13 08:26:54 -05:00
Brettflan
554a7a42c6
(patrickfreed) (bladedpenguin) (donington) Custom Event System - custom events are provided for other developers to hook into to create their own plugins based around Factions! Check the factions/event folder for the currently implemented events.
2012-03-13 07:58:51 -05:00
Brettflan
47756a9216
Remake of radius claim method. It now starts in the current chunk and spirals outward, in a repeating task designed to keep from overloading the server. The old method tried to put together a list of chunks, and then tried to claim them immediately starting from one corner of the overall area.
...
New setting "radiusClaimFailureLimit" (default 9). If claims are unsuccessful that many times in a row during a radius claim, the task will cancel out. There is no longer a limit to the specified radius since the process should no longer cause major server stress, and due to the process canceling out after several failures as just described.
Added some new methods to FLocation to quickly convert between block/chunk/region positions, and rewrote the FLocation hashCode() method to make it faster.
2012-03-13 05:54:51 -05:00
Brettflan
90e9f35fea
Fix for "econClaimUnconnectedFee" not working correctly
2012-03-11 22:44:39 -05:00
Brettflan
4db904182e
New setting "playersWhoBypassAllProtection" (default empty), which is a list of player names that should always bypass normal faction protections such as block destruction and placement. This is primarily for use with other plugins/mods which use a fake player to take action, which shouldn't necessarily be subject to protections provided by Factions. Note that case is important; you must preserve the exact capitalization of the name.
...
As with every other setting, you are advised to use /f config to modify it. Example: /f config playersWhoBypassAllProtection fakePluginPlayerName - add/remove the specified player name
Also switched several HashSets in Conf.java to LinkedHashSets. LinkedHashSets do have slower insertion and deletion than HashSets, but importantly they have faster lookup speed (at least until you get up to several hundred entries).
2012-03-11 13:36:07 -05:00
Brettflan
6931b3e204
Connected standard command handler getCommand("f"), for it to work with other plugins which directly execute commands using that interface.
2012-03-11 11:41:56 -05:00
Brettflan
b51ea3020d
Removed dependence on external GSON lib in lib/gson.jar, since GSON 2.1 is now embedded in CraftBukkit itself, used by their auto-updater added shortly before 1.1-R5 was released:
...
0ed1d1fdbb
2012-03-11 07:39:31 -05:00
Brettflan
fbfdf8fe23
(donington) Consolidated chat event listeners into a single chat listener class.
...
(Brettflan) Fixed slashless commands not being logged if player was in faction chat or alliance chat mode. Also cleaned up chat code a bit, nothing major.
2012-03-09 21:24:58 -06:00
Brettflan
d7f5ee581e
New setting "logPlayerCommands" (default true) which can be disabled to prevent player commands from being logged.
2012-03-09 19:26:42 -06:00
Brettflan
a999f50966
Replaced deprecated CreatureType references with EntityType
2012-03-09 14:46:46 -06:00
Brettflan
2aca034c8c
If plugin failed to load correctly for various reasons, it could end up wiping the board or faction list. This should now be prevented.
...
An example: if you loaded 1.6.6 (not 1.6.6b) on CB 1.1-R6 or newer, it would trigger an exception at startup and cause this problem.
2012-03-09 14:44:18 -06:00
Brettflan
460c382699
Fix for fatal error at startup in CraftBukkit 1.1-R5 and above
...
Updated Bukkit lib
2012-03-01 09:40:29 -06: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
a4ee13ebbe
Release 1.6.6
...
Also I'm sneaking in another minor fix for the coloring of the faction limit error message
2012-02-26 21:34:56 -06:00
Brettflan
e86b436c60
fix for faction limit error message
2012-02-26 20:49:50 -06:00
Brettflan
84ee922ac1
"autoLeaveAfterDaysOfInactivity" routine now runs only once every few minutes instead of running every time a player logs in. New setting "autoLeaveRoutineRunsEveryXMinutes" (default 5 minutes) to determine just how often the routine is run.
...
The routine is also slightly more careful about how it calculates how long a player has been offline.
2012-02-26 16:55:57 -06:00
Brettflan
cbd2507676
(Olof) Added command logging for commands used by players
2012-02-26 16:42:12 -06:00
Brettflan
7138e8d5f8
Added possibility to specify a player in the /f join command (/f join <faction> [player=you]), to make a player other than yourself join the specified faction. The new permission factions.join.others (added to factions.kit.mod and above) is required to be able to specify a different player.
...
Note that the player cannot currently already be in another faction; if they are, you'll need to /f kick them first. Also note that if the faction isn't open (with no invitation required), the player isn't invited, and you don't have the factions.join.any permission or have admin bypass mode on, the attempt will also fail.
Also, added new log method which accepts arguments (like the msg method) and cleaned up /f permanent text a little.
2012-02-26 12:29: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
c1f5475d0c
New setting factionMemberLimit (default 0, no limit), which will prevent players from joining any faction that has reached this membership limit.
2012-02-24 06:30:18 -06:00
Brettflan
967870a582
Damage protection is now extended to being set on fire (by flaming arrows, for instance) and receiving harmful splash potion effects. Beneficial splash potion effects are unaffected, and prevention of harmful splash potion effects is handled on a player-by-player basis, so you can still be harmed if you're not careful where you throw them.
2012-02-23 00:09:19 -06:00
Brettflan
3ff3e61dd9
Hopeful fix for rare errors where location world somehow changes in the middle of trying to show a smoke effect
2012-02-22 23:52:38 -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
639dc16bf5
Compatibility with upcoming CB 1.1-R5 and above: updated Enderman block monitors to use EntityChangeBlockEvent, removed register event convenience methods from MPlugin (no longer working or needed)
...
Updated Bukkit lib to newest dev version
2012-02-20 16:59:18 -06:00
Brettflan
af85f0f503
(Olof) Using latest CAPI for integration
2012-02-20 16:53:10 -06:00
Brettflan
56de98f049
update default GSON jar version to 2.1
2012-02-19 08:32:47 -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
ff56162c12
fix for command prevention routine (used by territoryEnemyDenyCommands and such) not properly covering commands with uppercase letters in them
2012-02-19 08:21:03 -06:00
Brettflan
f182f70371
Update our MCore event handlers to use the newer Bukkit event system
2012-02-07 17:02:53 -06:00
Brettflan
3ed879ca18
"worldsIgnorePvP" setting no longer ignores PvP damage in SafeZones and PvP damage done by players who just logged in, no matter the world it happens in
2012-02-07 15:04:20 -06:00
Brettflan
225471e530
Fix for error when disbanding faction from server console with economy enabled
2012-02-07 14:57:03 -06:00
Brettflan
5ef1c1a15e
Release 1.6.5c: Most TNT explosions were being prevented due to a mistake on my part when I re-implemented our TNT+redstone exploit workaround fix, sorry about that. That's fixed, and the X/Z coordinates for such prevented attempts are no longer sent to players, only sent to the server console/log.
2012-02-04 16:22:55 -06:00
Brettflan
eec60b2d5c
Release 1.6.5b - re-enabled WorldGuard support. It actually was working, who knew? I don't use WorldGuard, and I'd only seen multiple failure reports lately and not a single indication from anyone that the integration was actually working for them, so...
2012-02-03 00:15:35 -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
5e14a4b1c7
WorldGuard integration is now disabled, since it has been broken for quite some time now and nobody who used it has been interested enough to actually fix it.
...
The code is left in though, just in case somebody finally decides to fix it. We'll probably strip the code out eventually if it remains unfixed.
2012-02-02 15:20:40 -06:00
Brettflan
487a3457f2
Adding TNT exploit workaround fix back; they finally fixed the exploit in CraftBukkit 1.1-RC1, but broke it again in 1.1-RC3. :(
2012-02-02 15:13:53 -06:00
Brettflan
a124ac6e35
(by first4ever) Added a "claimedLandsMax" option (default 0, no limit), which prevents normal factions from being able to claim more land once they've reached this limit.
2012-02-02 13:12:54 -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
b41b3c8d2c
Protection against radius claim attempts which might overload the server
2012-01-31 10:58:25 -06:00
Brettflan
700f244304
Removed direct Permissions and PermissionsEx plugin support. Problems with PermissionsEx integration had been reported.
...
Now permissions are solely handled directly through Bukkit's built-in "superperms" permission system, since all modern permission plugins should be interfacing through that at this point.
2012-01-31 10:52:32 -06:00
Brettflan
3d8f4419ed
Delayed Vault economy integration not necessary after all; reverting added delay
2012-01-29 23:11:40 -06:00
Brettflan
e4a58c12f4
Fix for storing player data in factions.json unnecessarily, and FPlayer add/remove methods are now marked as protected
2012-01-28 12:11:29 -06:00
Brettflan
58e7e5e3f1
New command /f powerboost <p|f|player|faction> <name> <#>, which will apply a permanent power bonus/penalty to a specified player or faction. When applied to a player, it will affect their max power and min power. When applied to a faction, it will be applied to current and max power levels. Whether it is a bonus or a penalty depends on whether the number you specify is positive or negative.
...
New permission factions.powerboost which is required to use the above command. This permission is added to the factions.kit.mod permission kit.
example usage:
/f powerboost p Player1 1.5 (give player "Player1" a bonus of 1.5 power)
/f powerboost f SomeFaction -6 (give faction "SomeFaction" a penalty of -6 power)
2012-01-28 11:58:18 -06:00
Brettflan
ff91cdfed7
Players no longer regain power while dead; no more waiting to respawn in order to regain power
...
Also added AuthDB to softdepend list, so it has first shot at Factions commands in case it needs to cancel one
2012-01-28 05:59:10 -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
fc04e0a446
Update to new Bukkit Event system
...
Also remove leftover TNT exploit prevention code which I missed earlier
2012-01-28 04:37:55 -06:00
Brettflan
84e137049e
removed TNT exploit handling code, since they did finally fix the bug in the CraftBukkit 1.1-RC1 release
2012-01-28 04:07:23 -06:00
Brettflan
84b6278529
Workaround fix for half-step placement on existing half-steps not being prevented; it's caused by a CraftBukkit bug:
...
https://bukkit.atlassian.net/browse/BUKKIT-646
Fix for a potential NPE in FPlayer autoLeaveOnInactivityRoutine.
Added CaptureThePoints and CombatTag to our softdepend list so they can potentially cancel Factions commands.
2012-01-28 03:16:28 -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
da1fb45ea0
Fix for error when deleting a faction if Vault wasn't present;
...
Fix for slashless Factions commands not working for player in faction chat or alliance chat modes
2012-01-20 11:19:35 -06:00
Brettflan
5fd5be6bf5
Release 1.6.3
...
Also, removed extra /f claim alias ("claim" was in there twice)
2012-01-19 00:59:46 -06:00
Brettflan
03b368e9c4
New conf.json setting "permanentFactionMemberDenyCommands" (list, default empty), which can be used to prevent members of permanent factions from using specific commands.
...
Also, a minor fix for the help page regarding faction banks being shown if "bankEnabled" setting was enabled but "econEnabled" setting was false (economy as a whole disabled).
2012-01-18 23:31:37 -06:00
Brettflan
90d91180af
fix for factions-specific commands not being prevented properly if they were in "territoryNeutralDenyCommands" or "territoryEnemyDenyCommands"
...
also got rid of a command preprocess listener which is now unnecessary
2012-01-18 22:42:56 -06:00
Brettflan
2d83f6f764
fix for /f config not accepting values with spaces in them (i.e. "/f config territoryEnemyDenyCommands f home")
2012-01-18 22:24:09 -06:00
Brettflan
db382acc17
New conf.json setting "permanentFactionsDisableLeaderPromotion" (default false) which, if enabled, will circumvent the promotion routine for permanent factions so that they can exist without a faction admin, only regular members and/or moderators.
2012-01-18 21:21:30 -06:00
Brettflan
dde10168ae
New conf.json setting "econClaimUnconnectedFee" (default 0.0), which can be set as an additional economic cost for claiming land which is not connected to existing claims. This additional cost is only added if the faction has at least 1 existing claim somewhere in the current world, and is added to the cost after all other calculations are done.
...
This fee is not refunded from unclaiming land or even considered in actual land values.
2012-01-18 21:10:40 -06:00
Brettflan
edcb681210
Server admins can now promote or demote any member of any faction to/from faction admin or moderator using the existing /f admin and /f mod commands, which can now also be used from the server console. Two new permissions are added to allow that. A third permission is also added to allow server admins or moderators to join any faction without the need of /f bypass mode.
...
Also, a couple more minor bugfixes are included for /f home payment giving the wrong message, player/faction descriptions being wrong for console messages, and potential NPE in new faction admin promotion routine if faction was permanent with no current admin.
New permissions:
factions.admin.any - allows use of /f admin on any player in any faction
factions mod.any - allows use of /f mod on any player in any faction
factions.join.any - allows player to join any faction, bypassing invitation process for closed factions (the same as players with /f bypass enabled can do)
2012-01-18 06:01:29 -06:00
Brettflan
a44336ff04
self-inflicted damage (such as ender pearl usage) is no longer prevented with a message like "you cannot hurt you"
2012-01-17 02:56:22 -06:00
Brettflan
9534a72d44
improved TNT exploit prevention
...
Now, canceled exploit attempts don't injure players or mobs as if the TNT had successfully exploded, and if it's the case of an existing TNT block which a redstone torch is attempted to be placed next to, it no longer drops a free TNT item. In that case, the existing TNT block is still destroyed itself, but... oh well, it's close enough to perfect.
2012-01-17 01:57:25 -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
1a4dfd8409
(oloflarsson) Added radius claim
...
backported from 1.7 branch
2012-01-15 12:50:13 -06:00
Brettflan
f5d2ac5aec
minor changes to LWC integration
2012-01-15 12:17:21 -06:00
Brett Flannigan
8321a3ec70
Merge pull request #77 from patrickfreed/1.6.x
...
LWC Chest Protection Integration
When a claimed territory is captured by another Faction, all LWC chests that are not occupied by members of the person who is claiming the territory's faction lose their protection.
2012-01-15 10:07:54 -08:00
Patrick
44266f14bf
Updated config usage, added Faction.isNormal()
2012-01-15 12:53:00 -05:00
Brettflan
336edd85be
when redstone torches or TNT were attempted to be placed in protected territory but prevented, it could previously still trigger a TNT explosion due to a longstanding unfixed CraftBukkit exploit. A workaround is now in place to prevent this, and any such attempts are logged and announced to everyone on the server.
...
For reference: https://bukkit.atlassian.net/browse/BUKKIT-89
also, added missed new java file for chat spy
2012-01-15 11:41:13 -06:00
Brettflan
fb32fc7f51
(courtesy of eXeC64) Added chat spy feature for admins
2012-01-15 01:42:56 -06:00
Brettflan
64f47b01fb
Errors loading conf.json are handled better now, allowing Factions to continue loading the board instead of losing it
...
Also, the bad conf.json file is backed up to conf.json_bad so it can potentially be recovered
2012-01-13 05:47:14 -06:00
Brettflan
8b5a724c03
Optimization: Factions (as objects) now maintain a list of FPlayers in the faction for faster lookup
2012-01-13 03:38:25 -06:00
Brettflan
22e1b6d225
updated the map orientation to match the new compass north orientation
2012-01-13 03:19:14 -06:00
Brettflan
3e7d1d028b
/f list sorting method performance boost
2012-01-11 19:11:31 -06:00
Brettflan
bf69f6fd01
Updated /f map compass to use new official north
2012-01-11 18:18:41 -06:00
Patrick
c2f0f5ad51
Added unclaim and disband chest resets to LWC
2012-01-10 19:09:15 -05:00
Brettflan
bb8ae0a99c
Merge branch '1.6.x' of github.com:MassiveCraft/Factions into 1.6.x
2012-01-09 21:38:57 -06:00
Brettflan
aa88c974fd
Players auto-removed due to inactivity or due to being banned now have their data deleted immediately; this should fix the log spam of the same players repeatedly being marked for deletion
2012-01-09 21:38:00 -06:00
Patrick
1d0ba04336
LWC integration
2012-01-07 18:27:03 -05:00
Brettflan
c91703ac68
fix for potential infinite loop when cleaning data
...
As reported:
at com.massivecraft.factions.Factions.get(Factions.java:99)
at com.massivecraft.factions.FPlayer.getFaction(FPlayer.java:43)
at com.massivecraft.factions.integration.SpoutFeatures.updateSingle(SpoutFeatures.java:218)
at com.massivecraft.factions.integration.SpoutFeatures.updateAppearances(SpoutFeatures.java:154)
at com.massivecraft.factions.FPlayer.resetFactionData(FPlayer.java:188)
at com.massivecraft.factions.FPlayer.resetFactionData(FPlayer.java:194)
at com.massivecraft.factions.FPlayers.clean(FPlayers.java:45)
<repeat>
2012-01-07 15:56:34 -06:00
Brettflan
b3796c31f2
Added soil to the default "territoryProtectedMaterials" and "territoryProtectedMaterialsWhenOffline" settings, so people who aren't in your faction won't be able to trample crops in your territory (soil trampling is handled as an Interact event, for whatever reason)
...
For servers updating from older versions of Factions, you should use these commands to update your configuration:
f config territoryProtectedMaterials SOIL
f config territoryProtectedMaterialsWhenOffline SOIL
2011-12-18 08:39:52 -06:00
Brettflan
281021ce46
When a faction admin is kicked from his faction for whatever reason (not logging in for too long, a server admin running the /f kick command on him, the player being banned from server), another player will now be promoted to faction admin in his place. If the faction has at least one moderator, one of them will be chosen. Otherwise, a normal member will be promoted. If the faction admin was the last/only member, the faction will of course be disbanded.
2011-12-18 07:47:15 -06:00
Brettflan
e32660c188
New conf.json setting "powerPlayerStarting" (default 0.0) for the power level which new players will now start at; previously new players would start with max power, now it's configurable
2011-12-18 07:26:10 -06:00
Brettflan
fc5d45d8c4
New conf.json setting "removePlayerDataWhenBanned" (default true), which can be disabled to prevent Factions from deleting player data for players when they are banned from the server
2011-12-18 02:47:56 -06:00
Brettflan
7539d3f9a4
Added jukebox, brewing stand, enchantment table, and cauldron to default territoryProtectedMaterials and territoryProtectedMaterialsWhenOffline settings
2011-12-18 01:45:10 -06:00
Brettflan
5dc332691b
Hopefully fix a couple of economy integration problems
2011-12-18 01:36:36 -06:00
Brettflan
54ba4473a2
Fix for disabled "bankEnabled" setting being ignored in some cases
...
Data is no longer stored for players with full power but not in a faction
2011-12-18 01:33:34 -06:00
Brettflan
a9146ac27f
Improved fix for players being able to inject colors into faction descriptions, usable to spoof server messages and such
2011-12-18 01:25:42 -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
e66e71f36b
fix for Spout faction labels not updating for players who have /f map on
2011-12-16 00:31:23 -06:00
Brettflan
8ec0173eae
Added Blaze, EnderDragon, and MagmaCube to safeZoneNerfedCreatureTypes list
2011-12-16 00:30:43 -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
86f80f0421
Economy payments for command usage no longer ignores "bankEnabled" setting
2011-12-16 00:24:55 -06:00
Brettflan
5ca330ad11
Wilderness, SafeZone, and WarZone can no longer be disbanded
2011-12-16 00:22:36 -06:00
Brettflan
ac34c535b3
When Faction descriptions are being set, they no longer display in purple like server messages
2011-12-16 00:21:16 -06:00
Brettflan
e0aaa395a7
1.6.1 stuff
2011-12-16 00:19:41 -06:00
Brettflan
d44ccda211
autoclaim will now cancel beforehand if player isn't able to claim land for the specified faction
2011-10-25 01:27:58 -05:00
Brettflan
136b69b07f
Swapping money commands back to using EconomyParticipator instead of Faction/FPlayer
2011-10-23 13:14:51 -05: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
46cae5a664
Updating help info a bit
2011-10-23 10:41:47 -05:00
Brettflan
83f690c9c5
Fix for unclaimall command not working if Economy was disabled
2011-10-23 10:04:36 -05:00