Commit Graph

26 Commits

Author SHA1 Message Date
Antti Koponen
67153e8fc5
Fabric Platform Implemenation (#2018)
Adds a fabric specific Plan module that builds a separate jar.

Co-authored-by: Vankka <vankka.main@gmail.com>
Co-authored-by: DrexHD <nicknamedrex@gmail.com>

Affects issues:
- Close #1956
2021-07-24 14:10:48 +03:00
Rsl1122
a3cd3adb32 Cleaning up some code:
- Some extension API implementation things refactored
- getOrDefault+put calls replaced with computeIfAbsent
  using Maps#create, Lists#create
- stream().map(mapper).collect(toList/toSet) optimized
  using Lists#map, #mapUnique
- stream().filter(by).collect(toList) optimized
  using Lists#filter
2019-12-19 00:09:29 +02:00
Rsl1122
4aafcd1034 Added gradle out/ folder to gitignore 2019-01-03 12:38:37 +02:00
Rsl1122
8e2df1de9b Fixed Gradle build failing, shadow problems remain.
Shadow does not relocate classes in the final jar for some reason, and the final jar is bigger than what is produced by maven
2018-12-18 23:06:47 +02:00
MicleBrick
65221b1ba9 Add WIP gradle build scripts (#833) by Miclebrick
> Not actually fully functional, but it's a start
2018-12-18 21:13:05 +02:00
Risto Lahtela
abacdee688
settings.xml to .gitignore 2018-11-17 11:17:31 +02:00
Rsl1122
ab3833df91 Travis configuration changes
Created bash scripts for different steps and added them as jobs for travis to execute.

Begun preparing system testing: Goal is enabling actual servers with the plugin to see if it enables
2018-11-12 15:46:41 +02:00
Risto Lahtela
ebaffcab5e
[Merge] Module split (#786)
* Moved project files to 'common'-module

This is done so that refactoring into multiple smaller modules is easier
as the IDE will not attempt to move tests incorrectly when moving things
between different modules

* Created 'bukkit' module

Following classes were removed during the operation:
- BukkitServerInfo (Renamed to ServerServerInfo)
- SpongeServerInfo (could use ServerServerInfo)
- Hastebin (not viable on every platform, unused)
- HastebinTest
- MockPlayers (unused, bukkit specific)

Changes to classes:
- Renamed Importer to BukkitImporter (contained bukkit related impl.)
- Extracted Importer interface from BukkitImporter
- Turned BukkitPlanModule and BukkitClassBindingModule to interfaces by
  using @Binds annotation
- Added Status class since PlayersOnlineListener had a boolean,
  that stated if kicks were counted.

This commit completes split partially and was not pushed on commit.

* Created 'sponge' module

Changes to classes:
- Turned ServerSuperClassBindingModule, SuperClassBindingModule,
  SpongePlanModule and SpongeClassBindingModule to interfaces by
  using @Binds annotation
- Renamed SystemObjectBindingModule to SystemObjectProvidingModule
- Removed sponge related calls in ServerProperties
- Made EmptyImportSystem injectable

This commit completes split partially and was not pushed on commit.

* Changed shade configuration

Further tweaks required.

* Created 'bungeecord' module

Changes to classes:
- Removed use of BungeePingTimerTask in VelocityTaskSystem
- Removed use of RedisBungee in VelocityServerProperties
- Fixed bukkit command.commands.RegisterCommandFilter package

Changes to project structure:
- Dependency versions now in main pom via dependencyManagement
- Repositories now defined in main pom

* Created 'velocity' module

Changes to classes:
- Made RawDataResponse use Gson via reflection since it is no longer
  available in dependencies of 'common' module

* Created 'plugin' module

This module is for creating a single deployment artifact and testing of
system interactions.

Fixes to tests:
- Reflection no longer fails to initialize if Bukkit.getServer() is null
- PingCountTimerBukkit no longer fails to be created if Reflection fails
- Removed unnecessary @AfterClass from H2Test
- Jar resource path fixes to Mocker

* Shading configuration

org.slf4j classes are relocated in 'common', 'bukkit' & 'bungeecord'.
In 'sponge' & 'velocity' they are not relocated, allowing injection
as plugin logger, while using slf4j-nop for HikariCP logging.

This allows single release artifact.

* Removed 'Icon' from .gitignore

* Attempt to fix test resources

Because all jar resources are located in 'common', an attempt to fetch
them is made to common/target/Plan-common.jar, which for some reason
is a bad path.

This attempts to remedy that by creating a temporary file from an
InputStream, read with Class#getResourceAsStream

Ignored HTTPSWebServerAuthTest as the certificate path was invalid for
some reason.
2018-11-11 12:55:09 +02:00
Rsl1122
2df83bf4ce Added .db files to gitignore 2018-08-06 11:07:38 +03:00
Rsl1122
dfb5f39918 Added .sh files to gitignore 2018-02-03 19:05:58 +02:00
Rsl1122
62f85cdf52
Update .gitignore 2018-01-11 13:19:51 +02:00
Fuzzlemann
9790b6cb73 PR for 4.0.0 (Fuzzlemann) (5) (#267)
* Add check for the server key

* Fix Kill Detection when the player is killed by an Arrow

* Change some WorldTimes methods

* Fixes #260
Fixes JavaDoc at MathUtils

* Fix Error

* Fix Error
2017-08-21 21:29:40 +03:00
Rsl1122
386f62b35f Implementing things
#136 #135 #122
2017-06-16 16:08:35 +03:00
Rsl1122
6d0819fc45 Split Dependencies to another project, 3.4.3 implementation
Split dependencies into another project to make forking easier in the
future.

Implemented & Fixed:
#129
#130
#124
#123
#126

Did research work for
#74
#128
(Won't be implemented)
2017-06-12 23:03:16 +03:00
Rsl1122
c5d35b4445 [3.3.0] Optimizations & Customization settings
Fix #101
Add #104 #99 #103 #100
2017-05-30 15:36:16 +03:00
Rsl1122
aa827ffe04 Refactoring & Bugfixes to PluginData objects 2017-05-15 19:06:46 +03:00
Rsl1122
9b7677e072 [3.1.0] Removed unnecessary files from git dir, API & doc for API, bugfixes 2017-05-12 13:03:23 +03:00
Rsl1122
0cacc495ad [3.0.0] Release
- Updated javadocs partially complete
- Fixed possible memory leaks from the queues
- Fixed a bug where new player didn't save to the cache.
- Stable enough for release.
2017-05-08 13:28:19 +03:00
Rsl1122
af8616a208 More mock & test fixes 2017-04-04 21:31:13 +03:00
Rsl1122
0feef90973 Added some unit tests & Pit and Checkstyle tools 2017-03-31 20:34:21 +03:00
Rsl1122
869df1f374 Started creating a tester for Plan 2017-02-12 17:03:26 +02:00
Rsl1122
96240195ef Bugfix, Database optimization, Locations, Partial 2.2.0 features [2.2.0-DEV]
- Bugfix for #2 (Catch for NoSuchFieldError, null checks)
- Database now uses Batch processing with Commanduse, IPs, Nicknames &
Locations. Also used when saving whole cache.
- Uncommented Location gathering and swapped the location saving to use
batch processing. TODO: Worlds table
- Added placeholders for top lists & recent players to analysis &
planlite.html

TODO:
- Worlds Table
- Links to players
- New HashMaps in Analysis for recent players
- InspectCache clear multiper
- InspectCache clear task check. (Time value for each task)
2017-01-26 11:32:42 +02:00
Rsl1122
88283969b1 Moved to Maven project, added Chart4j to render graphs
- Moved to Maven project to solve dependencies
- > Added Chart4j (Google Charts) to render graphs and pie charts.
- More AnalysisUtils
- Added GMTimesChartCreator
2017-01-11 20:47:03 +02:00
Rsl1122
df8e9dcd77 Preparations for complete rewrite of the plugin
Created two copies of the project, and left plugin yml with version so
version checking on current versions will not break.

Plan Lite:
- Current version
- Uses plugins to get the data

Plan Advanced:
- Will be almost complete rewrite of the plugin.
- Will be released as Plan 2.0.0 when ready
- Current Plan will be released as Plan Lite 1.6.3 when rewrite is
complete.
- Will gather data and save it
- Better consistency and Time axis to analysis.
- Better analysis, possibly web page creation for results
- Support for Plan Lite
- More options
2016-12-29 19:44:35 +02:00
Rsl1122
ae4d1138f8 Updated gitignore 2016-12-26 20:44:43 +02:00
Rsl1122
5756c21e5b 1.5.1 - Moved stuff around & minor bug fixes, added analysis test
Added attempt to determine if undefined data is usable

Bugfixes:
- Removed faulty towny import from Search
- Analysis now calculates averages from data point amount instead of
player amounts
- "-p" and playername removed from search arguments when -p is used
2016-12-15 21:27:48 +02:00