Commit graph

77 commits

Author SHA1 Message Date
Frank van der Heijden
75c2fda749
Kotlinify + publish to repo.fvdh.dev 2021-10-05 16:44:22 +02:00
Frank van der Heijden
f5636c082e
No more guava 2021-08-30 23:09:45 +02:00
Frank van der Heijden
44fb0e00b3
Factor out common versions in build files 2021-08-04 20:35:58 +02:00
Frank van der Heijden
fd69f74b22
Set libraryLoader to null & clear classes in PluginClassLoader (bukkit) 2021-08-04 20:17:03 +02:00
Frank van der Heijden
c1a6fe269e
Only remove if parent member is object 2021-08-04 17:32:17 +02:00
Frank van der Heijden
d2928b4a04
Refactor ServerUtilsConfig#set to delete existing objects at path 2021-08-04 16:25:30 +02:00
Frank van der Heijden
a84189e290
If results aren't successful, only print the error 2021-08-04 15:55:04 +02:00
Frank van der Heijden
ae6f361ac1
/pl improvement 2021-08-04 02:39:50 +02:00
Frank van der Heijden
5200840296
Fix minimessage relocation 2021-08-04 02:32:51 +02:00
Frank van der Heijden
60204e7e58
Fix PluginWatchResult#getKey kekw 2021-08-04 01:01:01 +02:00
Frank van der Heijden
11392b847b
Remove newlines on /pl command 2021-08-04 00:42:56 +02:00
Frank van der Heijden
ae0005a82a
Add /su restart 2021-08-04 00:42:38 +02:00
Frank van der Heijden
911642d2d1
Remove disable-plugins-command from common config.json 2021-08-03 20:10:12 +02:00
Frank van der Heijden
80e6bfa680
Set messages.json config-version to 1 2021-08-03 20:09:30 +02:00
Frank van der Heijden
dd99bad81c
Bungee can't differentiate between loaded and enabled 2021-08-03 20:07:50 +02:00
Frank van der Heijden
11a5c5140b
Refrain from using adventure in the PluginManager's
Otherwise we have the same issue in the ServerUtilsUpdater plugin with the different adventure shadings
2021-08-03 18:34:31 +02:00
Frank van der Heijden
0f9c6f4041
Relocate common module for each platform
This is needed because velocity has adventure shaded. Velocity's common module does not need to shade adventure, while BungeeCord and Bukkit do have to shade the dependency in.
2021-08-03 18:28:37 +02:00
Frank van der Heijden
12b3aa5720
Avoid component newlines, instead send message per line 2021-08-03 16:41:09 +02:00
Frank van der Heijden
083012abfe
Add MiniMessage 2021-08-03 02:07:39 +02:00
Frank van der Heijden
8d3a85d472
Add multi plugin watcher 2021-07-31 21:05:03 +02:00
Frank van der Heijden
1b4997869d
Add "depending plugin" warning 2021-07-31 00:45:48 +02:00
Frank van der Heijden
d1aa18b30b
Fix Velocity command suggestions 2021-07-30 14:27:34 +02:00
Frank van der Heijden
94664286e5
Fix BungeeCord multi plugin management 2021-07-30 14:19:23 +02:00
Frank van der Heijden
94e4693b5e
Add initial multi plugin management 2021-07-29 15:08:42 +02:00
Frank van der Heijden
9a943070a9
Differentiate between int / double in json values 2021-07-25 12:14:11 +02:00
Frank van der Heijden
99a2c93ccc
Parse json numbers as integers 2021-07-25 00:33:25 +02:00
Frank van der Heijden
824b05b3e0
Create plugins directory at startup 2021-07-25 00:22:10 +02:00
Frank van der Heijden
cb78112cb3
Add Velocity Updater support 2021-07-25 00:08:56 +02:00
Frank van der Heijden
483e91bad1
Small fixes 2021-07-24 21:05:36 +02:00
Frank van der Heijden
25fdec31b1
Add config migration feature 2021-07-24 18:21:30 +02:00
Frank van der Heijden
5aeef212dc
Refactor help menu 2021-07-24 17:23:42 +02:00
Frank van der Heijden
d96398f4a9
Implement velocity listeners / events 2021-07-24 14:31:45 +02:00
Frank van der Heijden
779f4785e0
Slow down on generic usage 2021-07-24 14:31:08 +02:00
Frank van der Heijden
6545d7ffac
Add initial cloud commands + refactors to common 2021-07-24 02:02:55 +02:00
Frank van der Heijden
4390dc2c56
Initial Velocity support 2021-07-15 17:55:44 +02:00
Frank van der Heijden
4ffa7f1b99
v2.5.6 - Delegate unloading to ServerUtilsUpdater 2021-06-22 00:33:52 +02:00
Frank van der Heijden
2ac0ec0a9f
Only support commands.yml for reloading on 1.17 2021-06-22 00:11:53 +02:00
Frank van der Heijden
e9f3049c07
Fix config generation names showing incorrectly in console 2021-05-02 12:08:56 +02:00
Frank van der Heijden
b5a2fd33ab
Merge branch 'master' into fix/watchplugin
# Conflicts:
#	Common/src/main/java/net/frankheijden/serverutils/common/tasks/PluginWatcherTask.java
2021-03-25 16:52:31 +01:00
Frank van der Heijden
0e1bee0ca1
Fixes watchplugin not reloading when the file is instantly written 2021-03-25 16:45:42 +01:00
Frank van der Heijden
5226866a74
Remove commons-codec as dep for MD hashing 2021-02-22 15:56:39 +01:00
Phil Gibson
b51ff445dd
Fix watched plugins reloading without ensuring the file has fully uploaded first (#8)
* build: add Apache codec library

Utilise the Apache commons codec library, which has file hashing and checking functions. This will be useful for a fix on hotreloading plugins.

* feat: run tasks later on taskmanagers

Add the ability to run tasks at a later date on task managers.
This is expressed in ticks for bungeecord and bukkit, and is converted to milliseconds for bungeecord.

* feat: add method to get hash of file

Add a method to get the MD5 hash of a file.

* fix: watching plugins waits until the plugin has finished uploading

If a watched plugin is changed, it will no longer immediately reload the plugin. Instead, it will check every 10 ticks (500 milliseconds for BungeeCord) to see if the file MD5 checksum has changed.

If it hasn't, then we can presume the file upload has completed and reload the plugin.

* build: bump version to 2.5.1

* build: relocate apache codec

Relocate the Apache Codec to avoid dependency clashes

* perf: remove unnecessary task call
2021-02-03 20:36:31 +01:00
Frank van der Heijden
a0a6826d05
Fix empty plugins prefix showing as 'null' 2021-02-03 19:01:11 +01:00
Frank van der Heijden
c787bcfe3c
Implement PluginEvent API 2021-01-30 16:40:43 +01:00
Frank van der Heijden
51202f1116
Only check for updates each 30 minutes, fixes #6 2021-01-30 14:52:43 +01:00
Frank van der Heijden
b46f6fbb1f
Refactor UpdaterCheckerTask
Update checking/downloading/installing can now be configured precisely and more intuitive in the config.
2021-01-30 14:41:37 +01:00
Frank van der Heijden
1fde72e522
Remove old config options when unused 2021-01-30 14:06:24 +01:00
Frank van der Heijden
2dcc4f36ee
Don't send FormatBuilder if string is empty 2021-01-29 22:00:36 +01:00
Frank van der Heijden
a11d703c42
Should probably remove that one ;) 2021-01-16 21:47:11 +01:00
Frank van der Heijden
bfb2f3383c
Add check in case ServerUtilsUpdater is already present 2021-01-16 17:25:32 +01:00