Commit Graph

4151 Commits

Author SHA1 Message Date
KID
905fcfc1e8 Use relative path in Player Page button and Server Analysis button (#1258) 2019-12-17 09:06:05 +02:00
Rsl1122
d5864bf594 12am now at start of PunchCard
An earlier fix attempt for another bug #247 (ages ago)
was still in the code, moving 12 am to the next day by
adding 24 hours to the time.

Fixed by removing the check

Affects issues:
- Fixed #712
2019-12-16 16:30:35 +02:00
Rsl1122
00d366748d Fixed Punchcard not using TimeZone
- Started using TimeZone in PunchCard

Affects issues:
- Fixed #1250
2019-12-16 16:26:42 +02:00
Rsl1122
9c5d503526 Changed Punchcard to say 12am instead of 0am
Affects issues:
- #712
2019-12-16 15:46:47 +02:00
Rsl1122
4611c327d4 Improved Extension error cases
- Extensions can now be disabled even when the creation fails
- Extension creation error stack traces are pruned better

Affects issues:
- #1248, #1246
2019-12-16 15:22:46 +02:00
Risto Lahtela
a7baf157d8
Update gradle.yml 2019-12-16 12:38:48 +02:00
Rsl1122
13e00543c2 Implemented Access-Control-Allow-Origin
- Added Config setting Webserver.Security.CORS.Allow_origin
- Webserver returns the header for all requests
- Added an HTTP 204 response for OPTIONS-method to speed up CORS requests.

Affects issues:
- Close #1251
2019-12-16 12:36:14 +02:00
Risto Lahtela
eb7dd381b1
Update gradle.yml 2019-12-16 12:09:06 +02:00
Risto Lahtela
48355f3eca
Update gradle.yml 2019-12-16 11:49:30 +02:00
Risto Lahtela
4bcc5c0573
Update gradle.yml 2019-12-10 13:32:56 +02:00
Risto Lahtela
f4a214871b
Create gradle.yml 2019-12-10 13:09:08 +02:00
Risto Lahtela
132e436525
Update versions.txt 2019-12-08 11:42:22 +02:00
Rsl1122
a1168ba749 Fixed some gradle issues 2019-12-08 11:30:53 +02:00
Risto Lahtela
2877fdc5ca
Implemented Nukkit Support (#1244)
- Implemented APF for Nukkit
- Copied Bukkit implementation and modified it for Nukkit
- Fixed SQLite not being present on Nukkit by switching to H2 on boot

Affects issues:
- Close #1020
2019-12-08 10:26:24 +02:00
Risto Lahtela
0c54db38ff
Update README.md 2019-12-07 20:13:25 +02:00
Rsl1122
3744b1b98b Automatic version incrementing
Build artifact now 5.0-SNAPSHOT

Version is 5.0 build $number where number is amount of commits since
cdb13e3b66
2019-12-07 20:12:45 +02:00
Rsl1122
b5d496e9ad Fixed broken test 2019-12-07 19:44:20 +02:00
Rsl1122
4ded1832b9 Added 'not enough args' for '/plan register'
Previously a no permission message was displayed.
2019-12-07 14:56:12 +02:00
Rsl1122
10411c0626 Implemented a TimeZone setting
TimeZone setting accepts 'GMT+2', 'GMT-05:30', 'UTC' and 'server'

Accidentally discovered a bug where first boot used UTC when default was
supposed to be server timezone. The bug was fixed by removing
PlanConfig#getTimeZone calls in different constructors.

Affects issues:
- Close #718
2019-12-07 13:00:07 +02:00
Rsl1122
a50576e6e9 Fixed wrong usage of the word 'parse'
Reason: Parse means extracting information - In many cases the word was being
        used wrong (In Finnish 'parsia' means 'to patch together', which caused
        the wrong use)

The word 'parse' replaced with 'build', 'create' or 'generate' where appropriate
2019-12-05 20:25:42 +02:00
Rsl1122
b2cd332c9b Rename: Page/JSONHandler -> Page/JSONResolver
Reasoning: 'Handler' does not give extra information to the reader.
           'Resolver' tells something is being decided/found answer to
           or resolution is found (Response in this case)

- Comments related to Response Handlers were updated.
- One missed Response in ResponseResolver now built using
  ResponseFactory
2019-12-05 19:42:20 +02:00
Rsl1122
887c8d4f4c Changed Session shutdown save execution
Save was preventing unnecessary transactions
 from being skipped, leading to hang during
 session shutdown save.

Fixed by moving the wait to only JVM
shutdown save, and trusting on database
shutdown transaction execution to do
the job.

Affects issues:
- Fixed #1241
2019-12-05 14:00:58 +02:00
Rsl1122
cbcd2c7996 Added an ISO-8601 Timezone independent formatter
Server calendar had an issue with days going on
the wrong date if timezone was negative GMT.

Fixed the issue by implementing a timezone
independent ISO-8601 formatter to use with the dates on
the session calendar. The date given to ServerCalendar is already
set to midnight on each day.

Affects issues:
- Fixed #1239
2019-12-04 20:13:40 +02:00
dependabot-preview[bot]
934090947f
Bump mockito-core from 3.1.0 to 3.2.0 in /Plan (#1238) 2019-12-02 18:11:42 +00:00
dependabot-preview[bot]
e488f834de
Bump mockito-junit-jupiter from 3.1.0 to 3.2.0 in /Plan (#1237) 2019-12-02 18:09:35 +00:00
Risto Lahtela
6f720b3304
Update versions.txt 2019-11-30 11:47:05 +02:00
Rsl1122
9e27aba962 Update version number 2019-11-30 11:27:11 +02:00
Rsl1122
d30a34d0a3 Sorted /player session list
Affects issues:
- Fixed #1233
2019-11-30 11:22:27 +02:00
Rsl1122
388c87cbcd Updated Luckperms Extension
Updated the extension to use API in 5.0, some things
might not work as expected (I'm a bit unfamiliar with
the API.)

Affects issues:
- Fixed #1236
2019-11-30 11:18:44 +02:00
Rsl1122
d2a616cee5 Flipped a < to minimize register dates
An issue in register date minimization was reported,
which was caused by a flipped < in
PlayerServerRegisterTransaction - Maximizing the
register date instead.

< was flipped and a Patch was written to fix the
incorrect data.
2019-11-30 10:47:52 +02:00
Risto Lahtela
c553a2c606
Update versions.txt 2019-11-16 14:02:57 +02:00
Rsl1122
85ce6fe6c8 Updated build version 2019-11-16 13:56:25 +02:00
Rsl1122
62827a1d09 Updated DiscordSRV Extension 2019-11-16 13:55:53 +02:00
Rsl1122
90b263f483 Loading of MySQL driver on all platforms
All platforms now load the MySQL driver included in Plan.

Hopefully they also use it.
2019-11-16 13:44:21 +02:00
Risto Lahtela
9dc98c6941
Update versions.txt 2019-11-15 10:42:36 +02:00
Rsl1122
e7086d5eeb Changed build number to 286 2019-11-15 10:36:07 +02:00
Rsl1122
9dfc2bb743 Removed build number placeholder from build.gradle 2019-11-15 10:29:31 +02:00
Rsl1122
d5802bcc25 Added DiscordSRV Listeners 2019-11-15 10:09:06 +02:00
Risto Lahtela
b5028f5b2f
Delete gradle.yml 2019-11-15 09:48:50 +02:00
Risto Lahtela
f8706355da
Update gradle.yml 2019-11-15 09:42:07 +02:00
Risto Lahtela
d6d7ce2c2f
Update gradle.yml 2019-11-15 09:41:34 +02:00
Risto Lahtela
20848d10ff
Update gradle.yml 2019-11-15 09:36:06 +02:00
Risto Lahtela
737606b922
Create gradle.yml 2019-11-15 09:33:47 +02:00
Rsl1122
c8a97ebca8 Fixed improper replacement
PlayerPageExporter was exporting player json file to player%3Duuid.json
but browser parsed that to be file player=uuid.json, leading to the
player page not loading the value

This was because copy-pasting the PageExporter from Server page missed
server= being replaced, while player= was supposed to be replaced.

Fixed by changing server= to player=

Affects issues:
- Fixed #1223
2019-11-14 19:03:05 +02:00
Rsl1122
eda40a4ade Fixed player page not displaying value errors
Function to display errors in player-values.js was missing
2019-11-14 18:52:42 +02:00
Rsl1122
852ffb81e6 Changed Player data export path
Previous path did not match the path used in player.html, leading to
the path not being replaced in the exported files.

Now the new path should be replaced into the files, allowing people to
view exported player.html data.

Affects issues:
- Fixed #1223
2019-11-12 19:43:22 +02:00
Rsl1122
85401b37f2 DiscordSRV Extension Update by Vankka
Affects issues:
- Fixed #1221
2019-11-12 19:38:07 +02:00
dependabot-preview[bot]
07f593ae2d Bump com.github.johnrengelman.shadow from 5.1.0 to 5.2.0 in /Plan
Bumps com.github.johnrengelman.shadow from 5.1.0 to 5.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-11 06:50:08 +00:00
Risto Lahtela
6ab0a5d521
Update versions.txt 2019-11-10 11:11:00 +02:00
Rsl1122
0ccf7678c4 Fixed some new code smells
- Files.isDirectory call apparently slow
- Unused private method removed in WorldPie
- Replaced OptionalAssert with Assertions.assertEquals
2019-11-10 10:20:55 +02:00