Commit Graph

305 Commits

Author SHA1 Message Date
SvenjaReißaus 786d6be217
Added some translation for more frecuent messages. Fixes #124 2019-03-19 09:56:49 -05:00
SvenjaReißaus ba5ee1ae48
Resorted plates to see if they match on lookup 2019-03-19 00:53:05 -05:00
SvenjaReißaus 29640925eb
Added pressure plates to permission items, moved version forward 2019-03-19 00:45:42 -05:00
SvenjaReißaus 6a24b34a70
This should fix last issue 2019-03-19 00:21:11 -05:00
SvenjaReißaus c02af9207b
Using clicked material 2019-03-19 00:13:25 -05:00
SvenjaReißaus 63d3a0af76
Minor improvements 2019-03-19 00:09:49 -05:00
SvenjaReißaus 92e9ceb5de
Method to get the permission from material 2019-03-18 23:54:43 -05:00
SvenjaReißaus 7b0c4fe130
Using isSolid as the before method was not available widely 2019-03-18 23:31:42 -05:00
SvenjaReißaus 90a5f53e21
Let's try something else, to finish it up 2019-03-18 23:17:29 -05:00
SvenjaReißaus f658a6de74
Let's just use interactable items onPlayerInteract 2019-03-18 22:47:57 -05:00
SvenjaReißaus d9a8de33eb
Let's try building perms one more time 2019-03-18 22:35:15 -05:00
SvenjaReißaus 11b2eff79c
Default permission check for build on interact 2019-03-18 22:20:51 -05:00
SvenjaReißaus 4608f26975
Checking if player can build in location at interaction 2019-03-18 22:09:03 -05:00
SvenjaReißaus 62d37c061a
Canceling the useage event 2019-03-18 21:56:20 -05:00
SvenjaReißaus 2437e206b7
Catching right clicks instead of lefts 2019-03-18 21:49:37 -05:00
SvenjaReißaus 35b5724da5
Cancels the event of the interacted block 2019-03-18 21:42:42 -05:00
SvenjaReißaus ff9b125426
Not checking for physical stuff 2019-03-18 21:34:13 -05:00
SvenjaReißaus 99f4815fa8
Action non physicals 2019-03-18 21:29:11 -05:00
SvenjaReißaus 8834371931
Minor debug logs 2019-03-18 21:26:44 -05:00
SvenjaReißaus 97f63e9bc0
Scoped left click to be catched in PlayerInteract 2019-03-18 21:14:23 -05:00
SvenjaReißaus af210f706b
Attempting to fix item useage 2019-03-18 20:59:32 -05:00
SvenjaReißaus 3c109bfb0c
Deny build perms by default 2019-03-18 19:30:29 -05:00
SvenjaReißaus a7b824e964
Attempts to fix permissions 2019-03-18 19:05:30 -05:00
SvenjaReißaus 3c10b8276c
Allow the use of certain block materials, regardless of permissions. HCF feature. 2019-03-14 12:26:56 -05:00
SvenjaReißaus 0af0416235
Custom faction starting balance config in JSON 2019-03-14 08:56:09 -05:00
SvenjaReißaus 8a3198fa7e
This fixes the Permissions being bypassed. Tested and successfully passed 2019-03-13 18:11:39 -05:00
SvenjaReißaus 66fba62b0f
WIP: Not reviewed, but should fix Ownerships and Items useage bypass 2019-03-12 23:06:11 -05:00
Liz3 c6512bf316 Fixed Indents on all files using the reformat option and optimized imports 2019-03-03 04:51:21 +01:00
Drc-DEV 96fe8d059e
Fix HomeCheck (no essentials) + BONE_MEAL Material
Bypass the PlayerHomeCheck if Essentials is not installed (causes exceptions)
Fix BONE_MEAL multi-version support
2019-02-18 15:21:17 +01:00
Drc-DEV 16081752ad
Do not check for NPC Teleportation
Fixes this error: https://pastebin.com/GC2tVctc
2019-02-18 05:56:56 +01:00
David e0c3ce1094 Fix No Such Field Error 2019-02-17 21:28:07 +01:00
Driftay 5a37320397 Code Cleanup/Added Configurable option to deny and remove homes in ANY factions land.
More Soon..
2019-02-10 23:57:45 -05:00
GenialJerome 69207ac898 Protection, Placeholder and fix
Add :
- PlaceHolder %faction_name_at_location%
- Add protection with farm land
- Add protection to shulkers, to beacon, cauldron and brewing stand
- Add protection with bone meal
- Convert permission for the command

Fix :
- Console /f list
- Console /f show
- Claim with Wilderness is unclaim the land
- Dynmap players.admins and players.admins.count is for co-leader. The leader already have players.leader and a faction have one leader only

Optimization
2019-01-27 03:41:25 +01:00
ProSavage e1a1c630ad Fixed the elusive interact bug 2019-01-18 18:38:46 -06:00
Vankka 55b0e4264a Fix chat 2018-11-22 19:36:00 +02:00
Joshua Murphy a0e2149956 Multiple NullPointer Fixes With Container Permissions and Chat Fixed 2018-11-21 05:31:41 -05:00
Joshua Murphy 8af272cfdf Multiple NullPointer Fixes With Container Permissions and Chat Fixed 2018-11-21 05:25:45 -05:00
GenialJerome a59e3d9a82 Merge remote-tracking branch 'upstream/1.6.x' into 1.6.x
Merge commit writed after the fork
2018-11-21 02:28:38 +01:00
GenialJerome 5f8ea0bd19 PowerRegenEvent and optimization
- Add power regeneration event
- Change getNone(), a deprecated method, to getWilderness()
- Optimization
2018-11-20 21:01:04 +01:00
Joshua Murphy 139a28de8a Multiple Typos/Fixes From https://github.com/ProSavage/SavageFactions/issues 2018-11-20 07:37:45 -05:00
ProSavage 7a59ad4a66 Fixed all javadoc errors and regenerated them. 2018-11-19 01:34:31 -06:00
Vankka 36f7552aab Clear recipient list instead of canceling the chat message 2018-11-18 16:46:06 +02:00
ProSavage 84f1d354eb Fixed spacing in code around ! operator. 2018-11-07 10:14:42 -06:00
ProSavage b1b9bd1b73 Reformatted Code 2018-11-06 23:38:44 -06:00
ProSavage ebe80a0749 Made banner locations public 2018-10-24 10:46:31 -05:00
ProSavage 9689e79d86 Added ability to configure where warbanners are placed.
Basically now you can disable the warbanner placement in enemy territory or vice versa.
2018-10-24 10:30:29 -05:00
ProSavage 18140eee75 Moved banners to FactionsBlockListener 2018-10-24 10:25:05 -05:00
ProSavage 9aeb70404d Renamed Main Class of plugin from 'P' to 'SavageFactions', along with the plugin field from 'p' to 'plugin' 2018-10-22 18:43:02 -05:00
ProSavage 80e66d7d6c Changed the enum for Leader to actually be leader and not admin. 2018-10-18 19:39:48 -05:00
ProSavage 4c89fff7de Version change 2018-10-17 16:32:47 -05:00
ProSavage f8c52285c1 Door permission fixed ( relationally ) 2018-10-17 16:16:49 -05:00
ProSavage 705a370d31 Build/Destroy permission fixed ( relationally ) 2018-10-17 16:05:26 -05:00
ProSavage 38db648044 Container permission fixed ( relationally ) 2018-10-17 15:53:10 -05:00
Naman 496ac17d39
Merge pull request #41 from utarwyn/1.6.x
Bug fix: item frame/armor stand protection #2  (again)
2018-09-11 12:57:30 -05:00
ProSavage 4ad062dddb Fixed all issues with F chest, and a massive increase in performance due to /f chest only serializing / deserializing on startup/shutdown instead of realtime. 2018-09-09 12:40:45 -05:00
ProSavage 99a747adcb Revert "Access check updated"
This reverts commit 6eccfa84f1.
2018-09-04 18:13:50 -05:00
Svenja Reissaus 6eccfa84f1 Access check updated 2018-09-03 12:11:03 -03:00
utarwyn 4399a76089
Bug fix: item frame/armor stand protection 2018-08-30 01:36:56 +02:00
ProSavage 8fc9ed7395 Fixed all cross version material issues. 2018-08-13 00:33:40 -05:00
ProSavage de3f0c4c87 Removed all 1.13 materials 2018-08-08 23:18:38 -05:00
ProSavage d0cf88c9c6 Fixed all errors with Sevenja's new commits 2018-08-04 20:32:36 -05:00
Svenja Reissaus 5fe55afc68 Explicit permission checks and more admin bypasses 2018-08-02 14:55:21 -03:00
Svenja Reissaus d6d8031804 Only mods and higher should use Mod Chat Channel 2018-08-02 11:54:39 -03:00
ProSavage 51f157931f Fixed all compile errors ( Took forever ) 2018-07-28 00:31:58 -05:00
ProSavage d11a529704 Vault now checks for hoppers & chests nearby even if you're holding multiple vaults. 2018-07-26 13:22:16 -05:00
ProSavage e6559a439a Added protection to the vault where hoppers cannot be placed to use the vault as infinite storage. 2018-07-26 12:16:28 -05:00
ProSavage c368e19e17 Moved the vault place method to correct class 2018-07-26 10:35:56 -05:00
ProSavage f3d6669310 Placeholderapi placeholder parsing for Titles when moving between land 2018-07-25 15:10:37 -05:00
ProSavage cb6f0a8104 Fix claiming check bug caused by Sevenja's Pull Request 2018-07-25 15:09:55 -05:00
ProSavage 2320fe2586 If player is owner of a claim, all permissions are bypassed The order is OP -> Ownership -> Permission 2018-07-18 09:48:25 -05:00
ProSavage cfb64ea316 Mod chat issue fix. 2018-07-17 09:36:46 -05:00
ProSavage 07d8d95969 Containers can now be accessed by default if undefined & the player is in the same faction as the container being accessed. 2018-07-17 09:03:01 -05:00
ProSavage b0d41c032a Fixed issue with ownerclaims, players with permission can now build/destroy. 2018-07-12 11:21:53 -05:00
ProSavage 143daad9e6 F map autoupdate during flying fixed. 2018-07-12 11:11:07 -05:00
Naman fded071136 Changed for loop to foreach / enhanced for loop 2018-07-11 10:19:22 -05:00
Naman f70cc119df 1.7 spectator bug fixed.
Placeholderapi is no longer a requirement.
/f showclaims lag fixed
Scoreboard is now off by default, can be turned on in config.
Issue with Flight AutoEnabling when disabled has been fixed.
1.7 itemflag bug fixed
2018-06-21 14:16:55 -05:00
Naman d20ef372fa
Revert "Bug fix: item frame/armor stand protection" 2018-05-30 19:52:16 -05:00
utarwyn 5fecc4979c Reformat code for item frames/armor stands protection 2018-05-17 18:01:05 +02:00
utarwyn 4a8721e453 Prevent usage of armor stands by default — Prevent item frames from being shot 2018-05-17 17:50:07 +02:00
utarwyn e1f0938f59 Fix item frame/armor stand protection 2018-05-17 01:38:59 +02:00
ProSavage 1df8faf488 Spawner Perm issue fix, and Warbanners now functional again ( was broken in 1.4-BETA-1 ) 2018-05-14 10:59:23 -05:00
ProSavage cb947404f6 Finished up some issues with inventory saving, using string builder for serialzation to improve performance. 2018-05-12 11:29:38 -05:00
ProSavage 3ce14d2085 Finished up setbanner command and colored the meta and display name for the serialized banners 2018-05-11 18:11:02 -05:00
ProSavage 243c2d19bd 1.4-STABLE
------------------------------------------------------------------
No Enderpearls in fly fixed - The option was bugged, so if it was true it would do the opposite.
Improved /f map visuals and title!
Title fadeout time, showtime, and fadeintime options added for 1.9+ servers
Fixed Bug in /f upgrades where the slots option for exp would move the spawner instead.
Added Faction chest, an upgradable shared "enderchest" for factions to share!
Added some more entries into /f help in config.
Added Upgrade for faction chest
Banner pattern storage
------------------------------------------------------------------
2018-05-11 17:49:50 -05:00
ProSavage de728ed55c Merge remote-tracking branch 'origin/1.6.x' into 1.6.x
# Conflicts:
#	src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java
2018-05-11 17:48:51 -05:00
ProSavage d95c80ae5b 1.4-STABLE
------------------------------------------------------------------
No Enderpearls in fly fixed - The option was bugged, so if it was true it would do the opposite.
Improved /f map visuals and title!
Title fadeout time, showtime, and fadeintime options added for 1.9+ servers
Fixed Bug in /f upgrades where the slots option for exp would move the spawner instead.
Added Faction chest, an upgradable shared "enderchest" for factions to share!
Added some more entries into /f help in config.
Added Upgrade for faction chest
Banner pattern storage
------------------------------------------------------------------
2018-05-11 17:47:58 -05:00
utarwyn 8e20b66307 Fix TNT explosions: refactoring 2018-05-11 19:27:21 +02:00
utarwyn 055ab7dd90 Fix TNT explosions between territories 2018-05-11 18:09:11 +02:00
ProSavage f30cd44b54 1.3-STABLE
------------------------------------------------------------------
1.7 Support Added
- Titles disabled in 1.7
- Banners disabled in 1.7
- Itemflags disabled in 1.7 for /f warp, /f perms, and /f upgrades
/f perms GUI has been redesigned ( Reset your config.yml or Change it from the config differences )

Reset conf.json for the following.
Default color for members set to light green ( &a )
Default color for wilderness set to gray ( &7 )
------------------------------------------------------------------
2018-05-03 09:03:16 -05:00
Naman 175a4a6a12 1.1-RELEASECANDIDATE-2
Scoreboard bug fixed
inspect message disable fixed
2018-04-13 21:31:37 -05:00
Naman e36927db9f 1.1-RELEASECANDIDATE-1
Made the particles in /f fly more cloud like
Changed wilderness color to Darkgreen
Added a factionless check to inspect, so itll now disable the when you try to check with no faction.
Inspect will disable upon entering combat
You cannot claim outside the worldborder anymore, the chunkbuffer is taken into account.
Particles WILL NOT appear in /vanish and in spectator mode
2018-04-13 21:05:43 -05:00
Naman efee66071b 1.0.23
configurable enemy check radius for fly, option added in conf.json
Added a system faction check to neutral
Added a enderpearl disable while flying option to conf.json
Added my own repository to maven along with coreprotect for shading.
--Factions Inspect Added--
2018-04-08 22:13:41 -05:00
Naman f1bfe2e8c4 SavageFactions 1.0.21-BETA-3
Tweaked fly disabler, hitting mobs wont disable it.
Fly bypass permisssions logic redone
issues with safezone fly and warzone fly fixed
Fixed click to claim in f map
Changed tooltips ot one line in map because of heavy load in areas with lots of claims
option to disable banners
Kicking throwing error cause of typo in lang file.
Tnt Bank limit added.
2018-04-03 22:20:30 -05:00
Naman 009e3e715c SavageFactions 1.0.21-BETA-2
Fixed tnt message
New message for fly disable to show cooldown
Started on remaking lang file
fly will not disable when an ally, truce, or faction member hits you.
Role prefix value added to placeholderapli class
changed identifier for placeholderapi
Made 1.7 detection
Placing blocks wont throw errors anymore in 1.7.
2018-04-03 09:38:11 -05:00
Naman 12b9f94fe4 removed the iterator in fly checks.
...
2018-04-01 09:13:23 -05:00
Naman 21587db74d Iterator Fix in Fly to avoid concurrent exceptions
1.12 particle support
2018-03-31 11:46:37 -05:00
Naman e14af238bf SavageFactions 1.0.21
fixed this error (https://pastebin.com/4gtiQPYX)
 fixed damage bug (https://pastebin.com/56JHiPYt)
 fixed (https://prnt.sc/iy4l7q) (( I think I did, I could not replicate it ))
 Added methods to check if players can fly in claim types e.g.
 "if (fplayer.canflyinsafezone()){
 //do stuff
 }"
 Autofly now enables if you have bypass permissions.
 Fixed faction members, truces, and allies being able to hit each other and disable fly
 Fixed Autofly's enable message spamming multiple times if fly is already on.
2018-03-30 21:22:06 -05:00
Naman cdf870b782 Added Invalid Location to checkpoint
Fixed Checkpoint cooldown
Made it so you have to buy vaults from /f getvault, and buy banners from /f banner
Particle based seechunk that works when moving between chunks
Particle support for 1.7-1.12
Made fly particles mode subtle
2018-03-28 19:33:10 -05:00
Naman 3d2bf73497 Option to remove permissions from perm gui.
bStats tracking
Admins are demoted coleaders instead of mods
Changed fly for loop to iterator to avoid concurrent exceptions
2018-03-27 08:17:55 -05:00
Naman b92202e86b Promote, kick, and admin command bugs fixed. 2018-03-26 18:42:26 -05:00
Naman 44b3de91dd adding new stuff 2018-03-26 16:43:15 -05:00
Trent Hensler 382f4c4b0c Check fly on teleport. Fixes #1099 2018-03-20 19:24:21 -07:00
Trent Hensler f1032e7a2e Make sure players take fall damage.
Not sure why we need to set this on join when it defaults to true. Debugged and didn't find anything modifying it otherwise. /shrug
2018-03-18 20:35:07 -07:00
Trent Hensler bd077e8c32 Check for null or empty on homes 2018-03-18 20:17:59 -07:00
Trent Hensler 587182478b Add option to delete essentials homes when players are kicked from Factions. Adds #1089.
This option is set to true by default in the config.yml for new users, users that are updating need to add delete-ess-homes: true to their config.yml to get this new option enabled.
2018-03-18 14:11:42 -07:00
Trent Hensler 8950be61d1 Option to not always show chat tag.
Fixes the issue of not being able to have groups without a faction tag in their name.
2018-03-13 23:41:15 -07:00
Trent Hensler d7646516ec Check for perms after checking if it's a server faction 2018-03-12 21:06:53 -07:00
Trent Hensler 3e83916682 Failsafe for door check 2018-03-11 19:52:25 -07:00
Trent Hensler 4531da8190 Move f perm checks up 2018-03-10 16:26:18 -08:00
_ProSavage_ fe464ba750 Added /f chat mod 2018-03-04 19:21:53 -08:00
Trent Hensler 07eb3756e4 Don't take fall damage after flying 2018-03-04 17:27:48 -08:00
Dariasc a90299d32e Implement /f fly (#1023) 2018-03-04 14:13:32 -08:00
Dariasc d6b147ef7b Add /f warp GUI (#1069)
* Add /f warp GUI

* Fix typo
2018-03-04 12:53:20 -08:00
Dariasc d490bb8366 F Perm GUI (#1045) 2018-03-02 13:53:01 -08:00
Lax 34fc475819
Use deprecated API for backwards compability
Fixes #1051
Fixes #1044

Web editor ain't that bad btw.
2018-02-24 18:03:19 -08:00
Trent Hensler 47f0bf1ce5 Tooltips in f map 2018-02-10 15:59:21 -08:00
Trent Hensler 32b13befce Add container f perm 2018-02-03 14:08:21 -08:00
Trent Hensler 3eda8750cc Format 2018-02-03 12:50:12 -08:00
Trent Hensler 182022fe5f Check for f perm in building 2018-02-03 12:49:04 -08:00
Trent Hensler 9f08e6580b Fix some other f perm checks 2018-01-20 16:53:09 -08:00
Trent Hensler 246b93bda9 Allow null instead of throwing exception. Fixes #1008 2018-01-20 16:50:38 -08:00
Trent Hensler 5c2abb34de Format. Haven't done this in awhile. Just sneak it in. 2018-01-04 17:40:27 -08:00
Trent Hensler 4db185e3ee Role updates.
* Adds recruit role below the normal role.
* Adds /f promote and demote. Access to this command defaults to moderator if not set in /f perm
* Default role is still set to recruite. Will have to /f demote to set players to that rank.
2018-01-04 17:17:30 -08:00
Trent Hensler 687bac31db Initial f perm.
TODO:
* Add GUI for viewing and changing permissions.
* Currently no way to view access for all perms.
* Test this because I didn't.
* Finish implementation of all permissions, add more.
2018-01-04 01:36:51 -08:00
Trent Hensler 3b644cd6c3 Java 7 and make intellij happy 2017-12-19 02:18:13 -08:00
Kakifrucht a255114808 Update to 1.11, ensure we pass a double 2016-12-13 17:08:28 +01:00
Kakifrucht 5721473a16 Only send frostwalker message every 10 seconds 2016-06-12 22:54:38 -05:00
Trent Hensler a7aeb26fd0 Check build permissions on frostwalking. Resolves #708. 2016-06-10 16:43:48 -07:00
Trent Hensler f8ee2a5506 Remove chat spy and admin bypass on login if player no longer has permission.
Resolves #636 and #705.
2016-05-30 16:45:46 -07:00
Trent Hensler efb5d335f6 Add ability to bypass auto leave for FPlayers. Implements #659.
Permission is factions.bypassautoleave
2016-05-29 17:33:46 -07:00
Gabriele C bd416059bc Cleanup 2016-05-03 23:05:18 +02:00
Mark Hendriks d558ec37f0 Change chat event priority to LOW
Factions has always been an egotistical bastard regarding chat and command interception. An example use case is muting players.
2016-02-19 10:37:36 +01:00
drtshock bc2d7c35f6 Make sure faction is normal when checking relation on commands. 2015-09-23 12:04:16 -05:00
drtshock 11bd632b15 Add option to disable explosions in peaceful territory from #369. 2015-09-08 12:55:42 -05:00
drtshock 4414b1589f Remove deprecated isNone usages in favor of isWilderness 2015-09-08 11:46:48 -05:00
drtshock 088c6e11b1 Add options to block commands in wilderness and ally territory. Adds #514 2015-09-08 11:39:21 -05:00
cnr 6181f08da3 Disable chunk ownership messages in the Wilderness. Fixes #520 2015-09-01 13:47:23 -04:00
drtshock 3b8bc19460 Add faction and player kills / deaths stats. 2015-08-06 16:53:00 -05:00
Paul Sauve 1481d604d4 Cancel warmup on damage or movement 2015-05-25 12:20:33 -05:00
drtshock 2ad527b85b Don't send spy messages to spyers who are the ones sending the message. 2015-05-19 15:57:02 -05:00
drtshock f69f1cc025 Use FPlayer to store board toggle instead of separate file.
Honestly not sure why we ever did it like this in the first place.
2015-05-18 14:32:12 -05:00
Nick Porillo 6d17855586 Fix interact TL issue. Resolves #374
http://puu.sh/hLqXh/7aef61a7a0.png
2015-05-13 01:04:53 -04:00
drtshock f37e38b011 Reformat. 2015-05-12 23:17:22 -05:00
Nick Porillo 4e17d43c91 Add configurable faction enter/leave message 2015-05-12 23:25:28 -04:00
Nick Porillo fede341cc7 Implement /f stuck command from hcf 2015-05-12 23:16:47 -04:00
Nick Porillo cb0043600d Adds LiquidFlow exploit handling
“hand” merged from HCF. Adds option in conf.json that defaults to false
which if enabled will prevent liquid from flowing between into other
factions if it shouldn’t.
2015-05-12 12:08:42 -04:00
drtshock 6d6b63ba19 Merge branch '1.6.x' of https://github.com/vemacs/Factions into vemacs 2015-03-06 16:35:19 -07:00
drtshock 3933e135c1 Don't set sidebar visibility if scoreboard is disabled in the config. Resolves #298. 2015-03-06 16:24:21 -07:00
vemacs 4484eae5b8 add API to ignore alliance chat 2015-02-25 07:38:03 -07:00
mrlolethan c7d9e6b92c Cleanup unnecessary in-house Cancellable#isCancelled checks.
Use the ignoreCancelled EventHandler annotation parameter instead.
2015-02-23 16:03:23 -03:30