06f8082599
New conf.json option claimsRequireMinFactionMembers (defaults to 1, effectively disabled) which can be increased to prevent small (potentially one player) factions from claiming land until they have more members
Brettflan
2011-07-25 13:16:32 -05:00
080ea3363b
New command /f power [player name] to check either your own power (if no name is specified) or another player's power (if a player name is specified). The ability for a player to view their own power is based on the standard factions.participate permission, but to check the power of other players, the new permission node factions.viewAnyPower needs to be granted. If you aren't using a Permissions plugin (instead defaulting to the built-in Bukkit permission system), the factions.viewAnyPower permission is granted by default. Otherwise, you'll need to configure your Permissions plugin to grant the new permission as needed.
Brettflan
2011-07-25 13:16:14 -05:00
b97eaf175e
When adding relational colored faction tags to chat, Factions now pays better attention to whether the recipient list has been altered by another plugin
Brettflan
2011-07-24 17:38:58 -05:00
066415e752
"claimsMustBeConnected" land claim requirement is now ignored for players who have enabled bypass mode
Brettflan
2011-07-24 06:12:01 -05:00
bc56ff6651
new conf.json option "powerFactionMax" (default 0) for maximum power limit for all factions. If set to anything above 0, factions will have their power capped at this amount. As a result, any players adding power beyond the faction's limit will effectively just be adding a buffer of sorts. (feature added thanks to donation from Magesblood)
Brettflan
2011-07-24 06:10:48 -05:00
c3f57d5105
added a secondary low priority event listener for chat events, to try and make sure Factions is able to handle slashless commands and faction chat before other plugins do anything
Brettflan
2011-07-24 06:09:58 -05:00
c818ddff99
New command /f config [setting] [value] which can be used to change any conf.json setting. This is mainly for people who have trouble editing the file manually, for whatever reason. It even fixes any capitalization errors, and saves the conf.json file immediately after an option is changed. Can be run by player or from server console. Uses new permission node "factions.config".
Brettflan
2011-07-22 07:25:12 -05:00
bd5d7e185e
Well, this is an odd and kludgy fix... only thing I can find that allows the integration to work correctly and not give an error whether EssentialsChat is present or not
Brettflan
2011-07-20 19:31:28 -05:00
1e9c83decc
New permission nodes to disable any command, factions.disableCommand.<command>, along with factions.disableCommand.none node which forcibly makes none disabled (for * permission users or similar); for <command>, you must use the first command alias given in the /f help information (for example, "show" instead of "who" for that particular command)
Brettflan
2011-07-20 16:22:54 -05:00
5b73ebc456
New conf.json option "homesTeleportIgnoreEnemiesIfInOwnTerritory" (default true). If disabled, players will no longer be able to teleport to their faction home while close to an enemy even if they are in their own territory
Brettflan
2011-07-20 15:45:36 -05:00
66bc427454
Added optional faction tag entry to /f sethome command to set the home of any faction, which is only allowed if the user has adminBypass permission
Brettflan
2011-07-20 15:42:51 -05:00
0b8a33e44a
Added diodes to the default "territoryProtectedMaterials" and "territoryProtectedMaterialsWhenOffline" lists.
Brettflan
2011-07-20 14:59:10 -05:00
16053d0008
New conf.json option "claimsCanBeUnconnectedIfOwnedByOtherFaction" (default true) which, will allow claims to bypass the "claimsMustBeConnected" option if the attempted claim is vulnerable land controlled by another faction
Brettflan
2011-07-20 14:45:18 -05:00
5686c4db9d
Piston movement is now prevented if it encroaches across into territories which have the relevant DenyBuild option set (whether faction territory, safe zone, or war zone). This covers piston extension if it pushes across unacceptable borders or even if the piston head itself would cross over, and also prevents sticky pistons from pulling blocks back across such borders. There is also a new conf.json option "pistonProtectionThroughDenyBuild" (default true) which can be disabled to turn off piston protection. This option is available due to the (untested) potential that a world with many pistons constantly repeatedly firing could result in additional lag from these piston protection events
Brettflan
2011-07-20 12:22:03 -05:00
c79692940e
Update to new integration method for EssentialsChat; needs up-to-date Essentials (2.5.1 or newer) NOTE: if Essentials is too old, this error will occur at server startup (sadly impossible to catch or otherwise handle due to how Bukkit loads plugins): java.lang.NoClassDefFoundError: com/earth2me/essentials/chat/IEssentialsChatListener
Brettflan
2011-07-20 08:48:14 -05:00
fb3021800d
Releases should be in download section only. Not version controlled :)
Olof Larsson
2011-07-18 22:40:15 +02:00
10e79ede5a
Removed old files and updated a readme link
Olof Larsson
2011-07-18 21:15:15 +02:00
19176ada2f
Update to support newly available built-in Bukkit "superperms" permission system, though it will still use the Permissions plugin instead if that's available Updated Bukkit JAR Added LocalAreaChat plugin to the softdepend list so it's loaded first
Brettflan
2011-07-18 11:46:14 -05:00
14145f1782
New conf.json option "homesTeleportAllowedFromDifferentWorld" (defaults to true) which can be used to prevent people from teleporting to their faction home if in a different world from it
Brettflan
2011-07-09 07:21:47 -05:00
d69b278728
New options in conf.json which will now treat enemy factions differently: "territoryEnemyDenyBuild", "territoryEnemyDenyBuildWhenOffline","territoryEnemyDenyUseage", and "territoryEnemyProtectMaterials" (all default to true). If someone in an enemy faction tries any of those (builsing/destroying, using certain inventory items, or interacting with certain blocks such as doors), these new values will be checked; otherwise, for neutral and allied factions the existing values will be used. Also slightly simplified the code used for checking relations.
Brettflan
2011-07-09 01:36:18 -05:00
787e6b867a
Made /f kick command work on any player in any faction, if the person using the command has the admin-level "disband" permission
Brettflan
2011-07-08 22:06:55 -05:00
232ae5dce1
Added "BURNING_FURNACE" to default "territoryProtectedMaterials" and "territoryProtectedMaterialsWhenOffline" lists, since lit furnaces otherwise are not protected
Brettflan
2011-07-08 21:28:53 -05:00
839a03d8d1
Fix for /f autosafe and /f autowar commands not working properly if the user was not in a faction
Brettflan
2011-07-04 08:36:30 -05:00
bfcfbe4cc8
Update for new Bukkit version; fix for movement between different territory claims not always reporting the correct territory owner, which appears to be caused by event.getTo() for PlayerMoveEvent currently (as of RB 953) not always giving the correct location
Brettflan
2011-07-03 15:25:50 -05:00
94d1dc210c
When you have the "claimsMustBeConnected" option enabled, it now works on a world-by-world basis, so if you have claims in one world you can still make claims in other worlds
Brettflan
2011-06-30 06:13:47 -05:00
8f1606beba
/f disband, /f list, and /f who <tag> commands can now be used from the server console; /f list now shows "Factionless" instead of "Wilderness" for factioness players; fix for some potential NPEs
Brettflan
2011-06-30 05:56:02 -05:00
24e85e0e77
Faction homes are now un-set if the territory they are set in is lost (unclaimed, or claimed by another faction), but only when someone tries to /f home or dies and would normally respawn there
Brettflan
2011-06-30 05:17:34 -05:00
8f9de1d2d5
New conf.json option "homesRespawnFromNoPowerLossWorlds" (defaults to true) to go with Oli's recent commit, so server owners have an option whether or not players should respawn to faction homes when they die in "worldsNoPowerLoss" worlds
Brettflan
2011-06-30 05:15:16 -05:00
86112380da
fix for StringIndexOutOfBoundsException caused by overlong string passed to titleize(String str)
Brettflan
2011-06-30 01:46:12 -05:00
8ff84019ee
Made faction home respawning obey the 'worldsNoPowerLoss' config
Oli
2011-06-29 14:45:51 +01:00
69d1427552
after testing, found that these changes cause encoding problems on some setups when the JSON files are read; tried for a bit to find a solution, but gave up since I was having to test on my live server (test VM server was working fine) so, reverting for now
Brettflan
2011-06-28 22:43:28 -05:00
a8c84c5d6d
tweaked hook functions a bit more, de-crapped server log messages for faction chat
Brettflan
2011-06-28 20:00:08 -05:00
24362d38e9
moving additional JAR contents into src folder, adding my complete NetBeans project files so others have an easier time working with the source
Brettflan
2011-06-28 18:49:42 -05:00
b66b102333
New conf.json option "homesTeleportCommandEnabled" which can be used to disable the /f home command, while possibly leaving faction homes enabled for the "homesTeleportToOnDeath" functionality
Brettflan
2011-06-28 18:29:14 -05:00
a9619a73c0
some changes to the file reading routine, to speed it up and also to hopefully be more tolerant of user changes to file encoding (intentional or more likely unintentional) from the default UTF-8 encoding
Brettflan
2011-06-28 18:27:35 -05:00
c80f6d803c
one more hookable utility function for other plugins to use, to determine the support version for the hook functions (will increment whenever new hooks are added)
Brettflan
2011-06-28 18:25:00 -05:00
f79831d3d6
added another simplified function for chat plugins to hook, ShouldLetFactionsHandleThisChat(PlayerChatEvent event) to see if chat event is a special case which should be left alone for Factions to handle (Faction Chat enabled player, or factions f command without slash used)
Brettflan
2011-06-27 12:25:02 -05:00
a7676429fe
removed "preloadChatPlugins" option and related code, since that method could cause problems and since we've switched to using softdepend in the plugin.yml for preloading plugins
Brettflan
2011-06-27 03:06:09 -05:00
071e8b7b6b
further improved hookable functions for use by other plugins, added softdepends for appropriate chat plugins
Brettflan
2011-06-22 20:12:37 -05:00
094486676a
Added conf.json option "noPVPDamageToOthersForXSecondsAfterLogin" (defaults to 3 seconds) which keeps players from being able to do PvP damage for a few seconds after logging in (to counteract the exploitable 3-second PvP protection given to players when they log in); Fix for "claimsMustBeConnected" bug which prevented factions from making their initial first claim
Brettflan
2011-06-22 20:10:42 -05:00
55dd858be9
A bit of cleanup and odds and ends, adding missing @Override annotations and such
Brettflan
2011-06-21 00:38:31 -05:00
60227b6dc4
Added option "considerFactionsReallyOfflineAfterXMinutes" (default 0.0, immediately) which makes all "Offline" options still consider the faction as having members online until X minutes after the last one logs off
Brettflan
2011-06-21 00:20:36 -05:00
8880d503e2
added option "claimsMustBeConnected" (defaults to false) which requires all faction claims beyond the first to be connected to each other; support for "{FACTION_TITLE}" in chat messages
Brettflan
2011-06-20 21:15:41 -05:00
56cbf54c98
Added options to require faction homes to be set only inside the faction's own territory ("homesMustBeInClaimedTerritory", default is true) and to optionally prevent teleporting to the faction home if the player is in enemy territory ("homesTeleportAllowedFromEnemyTerritory", default is true thus not prevented) Made commands which reference player names (like /f admin <name>) allow for partial name matches Optimized a couple of things, and updated help text to indicate /f unclaim works for safe/war zones
Brettflan
2011-06-19 03:56:21 -05:00
768f96bf9b
added option "disablePVPForFactionlessPlayers" to disable PvP damage to/from players who are not in a faction
Brettflan
2011-06-19 03:49:46 -05:00
e886cef9aa
Fix for DenyUsage checks in safe zones and war zones not being handled properly
Brettflan
2011-06-16 02:37:05 -05:00
db0e89fb11
Disband command got missed for being added to help pages
Brettflan
2011-06-16 02:34:56 -05:00
4da15abb06
fix for "No Faction" player count always returning 0
Brettflan
2011-06-16 02:33:41 -05:00
cddaa73948
Added another hook, handleFactionTagExternally, for chat plugins to indicate they're handling faction tag insertion into chat
Brettflan
2011-06-11 19:02:57 -05:00
6c37f4cbe1
added functions to main class for other plugins to potentially hook into, targeted at chat plugins at the moment: isPlayerFactionChatting to see if player has faction chat enabled, and getPlayerFactionTag and getPlayerFactionTagRelation to get the player's uncolored or relation-colored faction tag
Brettflan
2011-06-11 17:29:24 -05:00
3f0d330d6e
fix for /f disband causing NPE if you provided a bad (nonexistent) faction tag
Brettflan
2011-06-11 17:01:06 -05:00
4cc13707cc
Added further "offline" options for preventing the 3 explosion types in faction territory; also fix for safe zone and war zone autoclaim bug
Brettflan
2011-06-10 18:47:39 -05:00
e023e9de91
a few minor speed enhancements
Brettflan
2011-06-10 18:45:11 -05:00
1af166b1c2
fix for /f save causing NPE when run from console
Brettflan
2011-06-10 14:26:30 -05:00
097b555466
new autoclaim commands for faction claims, safe zone claims, and war zone claims, which claim land as you walk around
Brettflan
2011-06-10 14:26:12 -05:00
2e1d7da50f
/f lock command can now be used through console; fix for /f reload command causing NPE if run from console
Brettflan
2011-06-10 14:22:29 -05:00
f9de4171d4
special case added to block placement check, so flint&steel isn't prevented due to placing fire (as Bukkit sees it)
Brettflan
2011-06-10 14:16:14 -05:00
7ab0d700cc
Added new "territoryDenyBuildWhenOffline" option to go with other two new offline prevention options by thomastanck; slight speed improvement for offline check
Brettflan
2011-06-10 14:14:02 -05:00
cbd0ee42ba
New conf.json option "warZoneFriendlyFire", defaults to disabled; if enabled, allies and fellow faction members can hurt each other in war zones
Brettflan
2011-06-10 07:38:14 -05:00
19b1ceabdd
changed /f home enemy distance check to use simpler box shaped detection area instead of diamond shaped
Brettflan
2011-06-08 20:33:12 -05:00
85fd5eb04d
Fix for options which disable wilderness explosions (TNT, creepers, fireballs) not actually disabling them; player->player damage is now also prevented if attacker is in a safe zone and defender is not (attacking from safety that way was exploity)
Brettflan
2011-06-08 16:22:19 -05:00
d0a405ff95
reload and save commands now don't require it to be a player executing them
Brettflan
2011-06-08 16:19:02 -05:00
a1e89457ff
Change-Id: Ibaa6d8c7eba4fe616faa5e78d946c9495d252fde
Thomas Tan
2011-06-04 18:14:39 +08:00
999be49f5c
Forgot offline block protection. Added now.
Thomas Tan
2011-06-04 17:59:35 +08:00
5ddc24f855
Added offline protection using the new configs
Thomas Tan
2011-06-04 17:36:28 +08:00
24a4da6d2e
Added configs for protection for offline factions
Thomas Tan
2011-06-04 17:36:03 +08:00
d793b718aa
Removed unused import and unused private variable "lock"
Thomas Tan
2011-06-04 16:59:11 +08:00
b1b96a4c1b
Bugfix release 1.2.2: Preload of EssentialsChat had problems if Essentials core wasn't loaded yet; added Essentials to preload list
Brettflan
2011-06-03 19:17:34 -05:00
0859854af0
New chat tag placement options to have it replace a specified string (such as the default "{FACTION}"), put the tag before or after a specified string (such as "<" or ">"), and whether to pad the front or back of the tag with an extra " ".
Brettflan
2011-06-03 13:06:41 -05:00
be177902fd
People hit in a safe zone no longer get spammed with "PlayerX tried to hurt you" messages; only the idiot trying to hit someone else in a safe zone gets spammed.
Brettflan
2011-06-03 13:02:24 -05:00
35e17f3ec5
ability to specify a single file with /f reload (i.e. /f reload conf), so you don't have to reload all 4 of them also a trivial typo fix
Brettflan
2011-06-03 13:00:16 -05:00
6f0dcf4b29
people with bypass permission can build in wilderness regardless of wilderness settings
Brettflan
2011-06-01 23:01:51 -05:00
85d055739d
Added in options to protect all wilderness (unclaimed) areas, in case that's your sort of thing. Also lowered default "territoryShieldFactor" from 0.5 to 0.3, since it seemed a bit overpowered at 0.5.
Brettflan
2011-06-01 18:32:09 -05:00
3a3b09da61
New "territoryDenyBuild" and "territoryDenyUseage" options, so block protection and interaction prevention can be disabled on faction claimed land. Also added trap doors to the default "territoryProtectedMaterials" list.
Brettflan
2011-06-01 18:13:56 -05:00