Commit Graph

2547 Commits

Author SHA1 Message Date
Rsl1122
224003029f (BROKEN) Swapped PlanConfig to use the new Config 2018-12-16 19:25:16 +02:00
Rsl1122
2fcb9590e5 New Config code (Untested) 2018-12-16 18:09:21 +02:00
Rsl1122
557fa83177 Sorted system.settings.config package
- Moved ConfigSystem classes to system.settings
- Moved WorldAliasSettings to system.settings.config
- Moved ServerSpecificSettings to system.settings.network
2018-12-16 14:53:12 +02:00
Rsl1122
3629a62fcf Removed @since labels
These labels have not been kept up to date and some might contain
out of date information (Packages have changed etc.)
It is better to not include them than include bad information.
2018-12-16 14:49:43 +02:00
Rsl1122
5dcdd0b9b1 Setting#toString now throws an exception
Setting#toString used to return the String value of the setting, and
since that implementation is no longer present this method should not
be called.
2018-12-16 14:42:48 +02:00
Rsl1122
715111b433 Removed uses of PlanConfig#getString 2018-12-16 14:37:38 +02:00
Rsl1122
bacfa2c181 Removed uses of PlanConfig#getNumber 2018-12-16 14:34:06 +02:00
Rsl1122
f3d201a0b0 Added tests that reveal why some other tests are failing 2018-12-16 11:08:25 +02:00
Rsl1122
4e83fb6f25 Fixed a typo on debug page 2018-12-16 10:34:25 +02:00
Rsl1122
d34c5954b9 [#844] Quoted String no longer double quoted
- 'Something' no longer changed to "'Something'" on config update.
- Added failing tests for rest of the problems.
2018-12-16 00:11:35 +02:00
Rsl1122
114e4f5fb6 Fixed config updater leaving behind old settings
Changed order of the options that were being left behind in the first
update
2018-12-15 17:06:04 +02:00
Rsl1122
7030e86496 Test for default config value validity 2018-12-15 13:14:51 +02:00
Rsl1122
016fd542f6 Updated dependencies: JUnit 4 to JUnit 5 2018-12-15 10:58:26 +02:00
Rsl1122
09f51ee087 Fixed some code smells in the new code:
- Moved ServerTable#getServerUUIDsByID to NicknameLastSeenPatch
- Removed unused things in UserInfoTable, Setting & RawDataResponse
- Refactored FileWatcher into smaller methods
- Renamed 'locale' in DateFormatter (Hiding an instance variable)
2018-12-14 17:27:27 +02:00
Rsl1122
05fc528e51 Fixed IPAnonPatch not working on older databases 2018-12-14 17:12:31 +02:00
Rsl1122
68d65c0748 Removed unused Table code
- Deprecated Table#execute and Table#executeUnsafe
- Removed Table#addColumns and Table#removeColumns
- Removed now unused tables.move.TransferTable
2018-12-14 17:03:46 +02:00
Rsl1122
a4395c9076 [#843] Changed how SQL is executed:
- Now only UPDATE, INSERT, DELETE & REPLACE statements are executed
  using executeUpdate. Rest is executed using execute.
- This fixes database patching on 1.13.2 (SQLite 3.25.0 or newer)
2018-12-14 17:00:37 +02:00
Rsl1122
2e44b67f7a Fixed Config updating messing up String settings with quotes 2018-12-13 23:10:59 +02:00
Rsl1122
3ae40e4bb3 Removed UserIDTable and Deprecated Column variables 2018-12-13 21:04:11 +02:00
Rsl1122
e9a2a3b1e2 GeoInfo table structure optimization
- Replaced user_id with uuid
- Replaced server_id with server_uuid
2018-12-13 20:52:03 +02:00
Rsl1122
1830e71157 User Info table structure optimization
- Replaced user_id with uuid
- Replaced server_id with server_uuid
- Changed network page related user counts to Map<UUID, Integer> instead
  of Map<Integer, Integer> signature (Server UUID instead of id)
2018-12-13 20:51:38 +02:00
Rsl1122
918eed1a8f Nickname table structure optimization
- Replaced user_id with uuid
- Replaced server_id with server_uuid
2018-12-13 19:25:15 +02:00
Rsl1122
1f6edf0588 Kills table structure optimization
- Replaced victim_id with victim_uuid
- Replaced killer_id with killer_uuid
- Replaced server_id with server_uuid
2018-12-13 19:11:56 +02:00
Rsl1122
35d6d0bbb4 Ping table structure optimization
- Replaced user_id with uuid
- Replaced server_id with server_uuid

- UserUUIDTable replacing UserIDTable for remove user method
2018-12-13 18:54:23 +02:00
Rsl1122
53adc8e7ec Sessions table structure optimization
- Replaced user_id with uuid
- Replaced server_id with server_uuid
2018-12-13 18:40:13 +02:00
Rsl1122
a44335709d WorldsTable table structure optimization
- Replaced server_id with server_uuid
2018-12-13 18:38:25 +02:00
Rsl1122
b4089cff28 WorldTimesTable table structure optimization
- Replaced user_id with uuid
- Replaced server_id with server_uuid
2018-12-12 20:57:16 +02:00
Rsl1122
e3b0d8efa8 File watching utility 2018-12-10 19:50:18 +02:00
Rsl1122
858f197e58 Removed original settings sending on /plan m setup 2018-12-10 19:49:15 +02:00
Rsl1122
00a28e283b [#836] Added import command user feedback 2018-12-09 14:20:55 +02:00
Rsl1122
d7dce0ac34 [#834] RegisterCommand error no longer logged
- Added missing rethrow clause to RegisterCommand that caused error meant
  to the user being logged instead.
- Fixed username placeholder replacement to success message
2018-12-09 14:16:21 +02:00
Rsl1122
3f5551ffaa [#837] Prevent NPE related to Processing
Fixed NPE when a null runnable was given to Processing.

This occurs when Geolocation gathering is off and register processing
adds a null instead of the IP processor.
2018-12-09 14:10:04 +02:00
Rsl1122
8161488747 [#777] Configuration format change
- Added a new config updater that can move and remove config values
- Updated the config format to be easier to understand and read.
- Made config updater update old configs to the new format
- Removed Settings enum
- Added generics to Setting, changed from interface to a class
- Created new classes that hold static Setting objects
- Added generics to PlanConfig
- Added PlanConfig#get for getting Setting with generic types.
- Moved config calls made during object initialization,
  possibly eliminating bugs that ignored config settings on first boot
- Added more export settings
- Added JSON Export (#700)
- Fixed Buycraft graph not following Locale setting for timestamps
- Extracted PluginBridge Bridge interface for mocking during tests
2018-12-08 11:44:10 +02:00
dependabot[bot]
82b8cc09df
Bump nucleus-api from 1.6.3-S7.1 to 1.7.0-S7.1 in /PlanPluginBridge (#832) 2018-12-04 13:14:33 +00:00
Risto Lahtela
4c95f695a9
[Merge] Removed dependency on javax.xml.bind.Datatypeconverter (#830) by Miclebrick 2018-12-03 15:11:29 +02:00
miclebrick
adb57c0179 Removed dependency on javax.xml.bind.Datatypeconverter for Base64
javax.xml was removed in recent Java versions, so depending on it breaks
compatibility with servers running on them. The Base64 class is the way
to use Base64 serialization.
2018-12-03 07:43:03 -05:00
Risto Lahtela
33da458a0f
Update versions.txt 2018-12-02 19:33:26 +02:00
Risto Lahtela
2416ce6fee
[Merge] 4.5.2 (#828) 2018-12-02 19:21:40 +02:00
Rsl1122
70753e659f Version bump to 4.5.2 2018-12-02 19:15:22 +02:00
Rsl1122
845b8add38 Improved tps related stat display when not avialable 2018-12-01 13:19:40 +02:00
Rsl1122
4ed65c33d5 [#773] Placeholders to server.html
- freeDiskMinimumDay _Week _Month
- freeDiskMaximumDay _Week _Month
2018-12-01 13:06:01 +02:00
Rsl1122
e9aaab608b [#773] Disk stat placeholders:
- freeDiskAverageDay _Week _Month
- freeDiskMinimumDay _Week _Month
- freeDiskMaximumDay _Week _Month
2018-12-01 12:59:37 +02:00
Rsl1122
12272f3d25 [#773] TPS mutation methods:
- Average free disk space
- Max free disk space
- Min free disk space
2018-12-01 12:36:20 +02:00
Rsl1122
25342920e8 PlanPlugin mocking 2018-11-28 10:40:33 +02:00
Rsl1122
f0deb1ce20 Test clean-up with ComponentMocker class rules 2018-11-26 11:02:18 +02:00
Rsl1122
b9fa29544d [#820] Regression tests using Selenium
- Added Selenium test dependency
- Added Awaitility test dependency
- Added SeleniumDriver junit Rule that uses Chrome WebDriver
- Added all web files to Mocker in withPluginFiles()
- Added JSErrorRegressionTest
- Fixed Debug page error when testing
- Fixed BukkitTaskSystem error during tests
- Fixed missing demo.js from HtmlExport

These tests should prevent most issues of broken page in the future.
2018-11-25 19:11:24 +02:00
Rsl1122
7e2ff40898 [#820] Reverted plugin js changes done by IntelliJ IDEA 2018-11-25 09:20:42 +02:00
dependabot[bot]
059520795f
Bump mockito-core from 2.23.0 to 2.23.4 in /Plan (#819) 2018-11-21 13:12:51 +00:00
Rsl1122
7b58136714 [#745] Removed empty PluginData boxes
Empty box for some PluginData was displayed if only Player table values
were present (Plugins/Player Data tab)

This was because at some point there was confusion about the integration
not working as intended. If the confusion arises again, I'll figure
something else out, but it'll most likely mean adding values to empty
PluginData rather than displaying empty box.
2018-11-21 10:39:07 +02:00
Rsl1122
78297c1ab3 [#812] Fix SQL syntax error on standalone Bungee 2018-11-21 10:07:05 +02:00