Commit Graph

187 Commits

Author SHA1 Message Date
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
ProSavage
f1a42749da Disband exploit fixed 2018-10-01 16:53:10 -05:00
Driftay
1ee8089ca5 Changes Adding 2018-09-21 02:29:28 -04:00
ProSavage
72746f5b4e Made some changes for javadoc generation 2018-08-28 21:07:51 -05:00
ProSavage
2410fafcc4 Added a cost per use to stealth mode! 2018-08-27 10:39:34 -05:00
ProSavage
36efd8a24e Added timeout to stealth mode! 2018-08-26 22:27:55 -05:00
Svenja Reissaus
38a693b85e Fixed #36 minor typos 2018-08-05 02:07:26 -03:00
ProSavage
d0cf88c9c6 Fixed all errors with Sevenja's new commits 2018-08-04 20:32:36 -05:00
Svenja Reissaus
d6d8031804 Only mods and higher should use Mod Chat Channel 2018-08-02 11:54:39 -03:00
Svenja Reissaus
1ac9c123d0 Improved recent Stealth feature to use local variables (performance enchancing) 2018-08-02 11:32:53 -03:00
Svenja Reissaus
cbb7d478a7 Fixed re invite spam to already invited member and enhanced kick permission check 2018-08-02 11:13:16 -03:00
Driftay
751f46e57e F Stealth Added
Signed-off-by: Driftay <saser_elite@yahoo.com>
2018-07-30 12:05:28 -04:00
ProSavage
51f157931f Fixed all compile errors ( Took forever ) 2018-07-28 00:31:58 -05:00
ProSavage
afc4dbf9b8 /f warunclaimall now actually sends a message on success. 2018-07-26 18:17:24 -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
cb6f0a8104 Fix claiming check bug caused by Sevenja's Pull Request 2018-07-25 15:09:55 -05:00
ProSavage
e9b080bc9e Made a check for tnt when disbanding. 2018-07-20 20:32:46 -05:00
ProSavage
3543030e64 /f tnt withdraw issue fix. 2018-07-17 09:26:25 -05:00
ProSavage
143daad9e6 F map autoupdate during flying fixed. 2018-07-12 11:11:07 -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
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
6bf4598d57 1.2-STABLE
/f tntfill wont spam chat anymore,
I changed the tntfill_success option, so you're gonna wanna delete that to rengerate it. If you havent edited the lang.yml just delete it and restart
/f stuck wont tp players outside the border anymore.
Nametags & Tab has placeholderapi support added
use {relationcolor} and {faction} for relational color and faction ( These were already built in )
They can be edited in the lang.yml the option is default_prefix.
/f perms now has tntfill, tntbank, and vault permission options
2018-04-24 19:32:26 -05:00
Naman
ba9b3587e0 1.1.1-STABLE
/f coords - displays your coords and current world to your faction
/f showclaims - Lists all your claims in every world
/f lowpower - lists players with power under max
/f tntfill <radius> <amount> - fills tnt in a radius and amount, hooks into /f tntbank if you're a mod or higher.

Some of these commands require permissions please see the permissions page here
https://www.prosavage.net/wiki/permissions
2018-04-17 20:06:14 -05:00
Naman
aa4bbb3895 1.1.1-STABLE
/f coords - displays your coords and current world to your faction
/f showclaims - Lists all your claims in every world
/f lowpower - lists players with power under max
/f tntfill <radius> <amount> - fills tnt in a radius and amount, hooks into /f tntbank if you're a mod or higher.

Some of these commands require permissions please see the permissions page here
https://www.prosavage.net/wiki/permissions
2018-04-17 20:01:53 -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
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
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
Trent Hensler
1ede2b35d6 Color the perm set command 2018-03-11 19:43:30 -07:00
_ProSavage_
fe464ba750 Added /f chat mod 2018-03-04 19:21:53 -08:00
Trent Hensler
e95ecbd2a9 Respect canSee in online fplayer count 2018-03-04 17:45:01 -08:00
Dariasc
a90299d32e Implement /f fly (#1023) 2018-03-04 14:13:32 -08:00
Trent Hensler
fe51837845 Respect hidden players in f show. Resolves #1049 2018-03-04 12:53:52 -08:00
Dariasc
d6b147ef7b Add /f warp GUI (#1069)
* Add /f warp GUI

* Fix typo
2018-03-04 12:53:20 -08:00
Dariasc
a8ce60b457 Add rank check to /f ban (#1068)
* Add rank check to /f ban

* Fix incorrect f perm check at SetHome
2018-03-03 19:12:14 -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
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
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
79410d91f1 Command to view your permissions 2018-02-05 20:46:53 -07:00
Trent Hensler
fb0c77efc0 Add truce to tag util 2018-01-05 00:25:50 -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
769722ddb4 Add decimal format for showing money to TL file 2018-01-02 01:37:12 -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
DoggyCode
68597da958 Removed duplicate/unnececary code in DiscUtil. 2017-04-26 16:56:17 +02:00
Kakifrucht
04dd47dfea Add faction exemption to /f show 2016-12-17 00:16:42 +01:00
Trent Hensler
9f89010af1 Add /f vault description. 2016-05-30 16:25:27 -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
drtshock
47bdb149ab Add factionless prefix. Fixes #438. 2015-09-08 12:42:05 -05:00
drtshock
c5571ba8ee Add command to forcefully send player to f home from #478.
Functionality: /f ahome <target> - sends a player to their f home as long as they have an f home and are online.
Permission node is  and given to factions.admin and factions.*
2015-09-08 12:18:00 -05:00
drtshock
d916e97d0d Add option for over claim reward from #498. 2015-09-08 12:04:20 -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
drtshock
3db1d5fdb3 Improve concurrency with help from @evilmidget38 2015-08-07 15:03:22 -05:00
drtshock
ce77799ef1 Add minimal f show. 2015-08-06 16:59:54 -05:00
drtshock
3b8bc19460 Add faction and player kills / deaths stats. 2015-08-06 16:53:00 -05:00
drtshock
fbbf352120 Check for style. 2015-06-12 18:43:59 -05:00
drtshock
91877c9d59 Check for style or color when parsing fancy colors. 2015-06-12 16:33:43 -05:00
drtshock
644e1ec8fb Scoreboards default to true and more player tags. 2015-06-08 02:01:21 -05:00
drtshock
de57060819 Revert "Remove Fanciful, fix compilation (part 1/2)"
This reverts commit fc1d08e5078c40ca36a159cb9d0edd4d67241cbc.
We have users on builds before this was included in Spigot. We don't want to break those servers.
2015-05-25 15:46:18 -05:00
Paul Sauve
1481d604d4 Cancel warmup on damage or movement 2015-05-25 12:20:33 -05:00
Paul Sauve
fc1d08e507 Remove Fanciful, fix compilation (part 1/2) 2015-05-24 18:05:27 -05:00
drtshock
ec202c0fbf Use original values for balance tags.
Lots of reports of no balance showing up.
2015-05-14 09:02:35 -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
aeef4d69c2 Fix last seen variable 2015-05-12 23:14:51 -04:00
Nick Porillo
46f4f3b7ac Fix variable typo
{lastSeen} is what we should use as it is legacy.
2015-05-12 22:05:32 -04:00
Nick Porillo
a068583678 Add default faction description TL
implemented from hcf with love <3
2015-05-12 21:49:27 -04:00
Nick Porillo
44542261ae Variable overhaul and configurable /f show 2015-05-12 21:34:00 -04:00
Nick Porillo
dbba8c055c Adds Faction founding date
..but does not implement it. Future commit will need to add this to /f
show.
2015-05-12 12:20:11 -04:00
Nick Porillo
362bb55a0f Fix relation limit glitch
Hand merged from HCF. Fixes issue where factions could exceed the max
relation setting in config.
2015-05-12 12:13:30 -04:00
drtshock
8af57197ce Remove errant format specifier. Resolves #301.
Bumping to .16-SNAPSHOT so I can post this to spigot and then not deal with this anymore.
2015-05-02 21:04:35 -05:00
drtshock
c3452c97aa Add null check before toggling scoreboard. 2015-03-09 23:44:34 -05:00
vemacs
7fd590fc75 Add ToggleAllianceChat command (sorry I couldn't think of a shorter name, but this is extremely useful for YouTubers) 2015-03-04 23:55:46 -05:00
korikisulda
1d00a0aa54 Yet more TL. Hi @Bonkozorus 2015-02-19 09:10:42 -06:00
Nick Porillo
d69f9e5688 Handle buffers 2015-02-19 08:59:28 -06:00
Nick Porillo
5a9112ad37 Add WorldBorder support
- Uses API in spigot to get world border
- Blocks faction claims that are outside the world border

Improved border detection

This is the updated border detection, this method is extremely accurate
and does not over partition claim space like before.

Takes the border and divides by two, and then converts the block
distance into a chunk distance.
Ex. Border = 100, Chunks = 6 vertically, 6 horizontally.

We get the absolute value difference between the center chunk and the
claim chunk, for both X and Z. We add both diffs, and if they are
greater than the limit, then we know the chunk is outside the border!
2015-02-19 08:58:20 -06:00