Commit Graph

225 Commits

Author SHA1 Message Date
GenialJerome
16aa87a16a Faction Disband Reason & Auto-Completion
- Add Faction Disband Reason
- Add Auto-Completion
- Optimization
2018-12-09 03:13:18 +01:00
Joshua Murphy
a59c226747 Added Focus/Config Fixes 2018-11-22 02:09:58 -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
ProSavage
7a59ad4a66 Fixed all javadoc errors and regenerated them. 2018-11-19 01:34:31 -06: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
cd09e77b42 Fixed internal name problems with leader 2018-11-06 23:16:11 -06: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
Driftay
1ee8089ca5 Changes Adding 2018-09-21 02:29:28 -04:00
Driftay
e580c7eee9 Revamped F Stealth 2018-09-20 16:55:19 -04: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
2410fafcc4 Added a cost per use to stealth mode! 2018-08-27 10:39:34 -05:00
Driftay
751f46e57e F Stealth Added
Signed-off-by: Driftay <saser_elite@yahoo.com>
2018-07-30 12:05:28 -04:00
ProSavage
cb6f0a8104 Fix claiming check bug caused by Sevenja's Pull Request 2018-07-25 15:09:55 -05:00
ProSavage
6a1072b935 Base64 serializer redone to support mob spawners & should support ALL NBT 2018-07-22 21:38:35 -05:00
ProSavage
408725c1d7 Made a Factions.disband() method into the api. 2018-07-20 11:42:47 -05:00
ProSavage
da32970389 Faction truce claims now shown on map. 2018-07-17 10:19:22 -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
143daad9e6 F map autoupdate during flying fixed. 2018-07-12 11:11:07 -05:00
Naman
bd7b57cf5a Fixed package path for InventoryUtil 2018-07-11 09:03:47 -05:00
WhiteFoxHD
c65f908a1b
Modified Inventory saving in game
Saves the inventory contents instead of the inventory
2018-07-09 16:01:47 -04: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
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
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
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
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
76d1bc0e9b SavageFactions 1.0.23
Ability to remove items from main menu in perms for choosing roles/relations by setting the slot to -1
Changed placeholder identifier back because hooks in many plugins broke :(
Removed debug message from warzone fly.
Changed public modifiers on relation back, as they broke the method signature.
2018-04-07 16:31:13 -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
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
44b3de91dd adding new stuff 2018-03-26 16:43:15 -05:00
Trent Hensler
1567df7311 If f perm is not set or undefined, allow server owners to define default f fly access in the conf.json. Adds #1100 2018-03-20 19:19:24 -07:00
Trent Hensler
a45833944b Allow warzone and safezone to be colored in f map 2018-03-19 23:00:47 -07:00
Trent Hensler
55c546e951 Remove debug 2018-03-18 20:38:59 -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
64dc70b717 Properly send title and subtitle 2018-03-18 20:07:05 -07:00
Trent Hensler
760f16a2b7 Disable claimat for now 2018-03-18 19:39:47 -07:00
Trent Hensler
a4581ac9a0 Allow all faction members to fly if f perm is undefined 2018-03-18 19:37:19 -07:00
Trent Hensler
1e2a6b34b4 Send titles when entering faction territory.
Allows users to pick which, if any, or all, ways of sending faction enter messages from: scoreboard, chat, and titles.
Adds new config.yml options and lang messages.
2018-03-16 10:08:19 -07:00
Dariasc
819cb542cd Major f perm fix; Fix sethome permission check (#1079) 2018-03-09 10:22:15 -08:00
Dariasc
693c831327 Add Admin and Permission check to /f perm (#1062)
* Remove perms Action

* Add Permission check to /f perm

* Refactor flight perm

* Add fly perm to GUI

* Remove useless perm check
2018-03-06 11:46:55 -08:00
Trent Hensler
f65fe27c53 Shallow copy of the map.
This is why it was setting one perm for all roles and relations.
2018-03-04 18:53:45 -08:00
Trent Hensler
e95ecbd2a9 Respect canSee in online fplayer count 2018-03-04 17:45:01 -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
Trent Hensler
aacee63255 Delete warp password when warp is deleted 2018-03-04 13:03:21 -08:00
Trent Hensler
81a33de33a Format and check for null section 2018-03-02 13:57:36 -08:00
Trent Hensler
6af634d4e3 Check for null 2018-03-02 10:55:52 -08:00
Trent Hensler
acc41bf07a Call method, not local, for role. Fixes #1059 2018-03-02 10:54:42 -08:00
Trent Hensler
f8774bab23 Check for less than 1 2018-03-01 23:12:42 -08:00
Trent Hensler
10f2e4a977 Check for no mapheight for w/e reason 2018-03-01 22:56:42 -08:00
Trent Hensler
151d38fd7b Faction Bans
Adds /f ban, /f unban, and /f banlist
Permission: factions.ban - included with factions.kithalfplayer
Also added as a /f perm that can be granted. Otherwise, defaults to faction mods.
Number of bans now shows up in f show
Banning a player will notify your faction and target player. It'll also kick the player from your faction if they are currently in it.
TODO: make /f banlist prettier
2018-02-28 20:23:37 -08:00
Trent Hensler
d45b5ac612 Add placeholders to f show 2018-02-17 12:17:37 -06:00
Trent Hensler
3f1edf1096 Allow players to set titles with colors. Adds #1036.
factions.title.color permission which is included in factions.fullplayer permission subset.
2018-02-15 18:02:59 -08:00
Trent Hensler
f29efa116d Clickable f map
* New command /f claimat world x z
* Permission: factions.claimat
* Permission is not included in factions.halfplayer or anything for now. Will need to be granted manually.
* If players don't have factions.claimat, they won't see the clickable f map
2018-02-12 18:09:02 -08:00
Trent Hensler
a034030ba5 Fix setting perms.
Annoyingly setting them to und by default now
2018-02-11 17:38:04 -08:00
Trent Hensler
9f8c2e3905 Revert "Don't set perms to undefined by default"
This reverts commit e91fc8f15af2da855aad881369b26f3bb7ecbc1f.
2018-02-11 17:22:25 -08:00
Trent Hensler
5e7b14f132 In line compass 2018-02-10 17:35:25 -08:00
Trent Hensler
d8125eb0d2 Max mapheight is 2x default 2018-02-10 17:03:31 -08:00
Trent Hensler
9bd193df72 Separately customizable f map tooltips 2018-02-10 16:57:18 -08:00
Trent Hensler
0f6bd8eabd Fix default mapheight 2018-02-10 16:27:49 -08:00
Trent Hensler
50930d7583 Bigger /f map
Add /f mapheight <height> command to allow players to set their mapheight.
Increase default map height and width to be in line with larger values servers want
2018-02-10 16:20:13 -08:00
Trent Hensler
3c4168a1dd Missed diff 2018-02-10 16:04:05 -08:00
Trent Hensler
47f0bf1ce5 Tooltips in f map 2018-02-10 15:59:21 -08:00
Trent Hensler
e91fc8f15a Don't set perms to undefined by default 2018-02-05 21:34:55 -07:00
Trent Hensler
79410d91f1 Command to view your permissions 2018-02-05 20:46:53 -07: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
9384b0faa6 Check for null 2018-02-03 12:38:36 -08:00
Trent Hensler
249770d2cd Add Permissable interface for f perm compatibility.
Allows Roles and Relations to be permissable, so we can set f perms for both of those in the same map.
2018-02-03 12:33:28 -08:00
Trent Hensler
4110fb2ef4 Fix up default role and promote commands 2018-01-04 18:10:49 -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
f6bd156f89 Add command to set default rank. Only used by admins.
/f defaultrole <role>
2018-01-04 17:37:23 -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
c367a9cb09 Make faction announcement borders configurable 2018-01-04 14:41:14 -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
8fee985e99 Actually set factionless prefix in chat. Fixes #979 2018-01-04 00:32:25 -08:00
Trent Hensler
3b644cd6c3 Java 7 and make intellij happy 2017-12-19 02:18:13 -08:00
Trent Hensler
ce132ed033 Add password protected warps 2017-12-19 02:10:52 -08:00
Trent Hensler
3bce7ae619
Merge pull request #761 from Techcable/fix/null-gson
Make P.gson final
2017-12-19 00:20:37 -08:00
Trent Hensler
c30137c34d
Merge pull request #904 from markhughes/1.6.x
Allow using FLocation object in canClaimForFactionAtLocation
2017-12-19 00:19:08 -08:00
Trent Hensler
0b9f2dd7dd
Merge pull request #963 from XXLuigiMario/allow-unclaimall-world
Allow unclaiming all safezones and warzones in a specific world
2017-12-19 00:16:57 -08:00
Joel Puig Rubio
08c0995741 Allow unclaiming all safezones and warzones in a specific world 2017-09-04 23:17:12 +02:00
Joel Puig Rubio
75db3fcad3 Allow admins to claim for wilderness 2017-09-04 23:14:42 +02:00
Mark Hughes
af7b48c522 Allow using FLocation object in canClaimForFactionAtLocation 2017-02-13 18:21:28 +11:00
Techcable
b118d4d18c Make P.gson final
Before it could be null, triggering weird issues.
2016-06-25 15:23:21 -07:00
Kakifrucht
5721473a16 Only send frostwalker message every 10 seconds 2016-06-12 22:54:38 -05:00
Trent Hensler
830ffff022 Auto leave log message to debug mode. 2016-06-01 09:19:29 -07:00
Trent Hensler
74b4bd33e9 Add option for setting default max vaults of a faction. 2016-05-30 17:21:11 -07:00
Trent Hensler
0294a60675 Add Faction vaults.
These can be accessed with /f vault <number>
Set a Faction's max vaults with /f setmaxvaults <faction> <number> - can be run from console so Buycraft can execute it.
* This is a not very tested implementation. Should be tested more in depth before being pushed to a release.
2016-05-30 16:22:45 -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
drtshock
47bdb149ab Add factionless prefix. Fixes #438. 2015-09-08 12:42:05 -05:00
drtshock
d916e97d0d Add option for over claim reward from #498. 2015-09-08 12:04:20 -05:00
drtshock
11757be50d Check correct config option for over claiming. 2015-09-08 11:51:20 -05:00