RubenD96
ade50bad5e
Chase functionality (/c name) to warp to the exact location of the target
2021-04-22 22:03:59 +02:00
RubenD96
f6452b2320
Reformat ChangeMapHandler before editing
2021-04-22 21:55:49 +02:00
RubenD96
215abb3198
Small bugfix for WhisperHandler after testing
2021-04-22 21:55:32 +02:00
RubenD96
24cfbcce40
Untested rework of WhisperHandler
2021-04-20 17:25:52 +02:00
P0nk
5d4a2506e8
Update README with Java 16
2021-04-18 16:01:10 +02:00
P0nk
4b03b3c4ac
Update Dockerfile to Java 16
2021-04-18 12:40:11 +02:00
P0nk
cd6415b061
Enforce implementation of PortalScript
2021-04-18 12:31:01 +02:00
P0nk
46c2d92082
refactor: use Invocable instead of ScriptEngine in script managers
...
- Make fields final
- Inject event script variable earlier
- Remove redundant fields
2021-04-18 11:26:05 +02:00
P0nk
58e69654a2
Let scripts access Java classes
...
Fix script attempting to schedule with non-long (double) time value
2021-04-17 22:26:18 +02:00
P0nk
fcd879f97c
Convert remaining scripts to Graal
...
Mainly missed scripts that use Nashorn's "Packages"
2021-04-17 21:59:15 +02:00
P0nk
d2c7023e7b
Convert NPC scripts to Graal
2021-04-17 21:57:57 +02:00
P0nk
256e5688e0
Convert quest scripts to Graal
2021-04-17 21:57:48 +02:00
P0nk
542a7b7fd2
Convert reactor scripts to Graal
2021-04-17 21:57:37 +02:00
P0nk
984adc7885
Convert portal scripts to Graal
2021-04-17 21:57:27 +02:00
P0nk
938f7c9390
Convert map scripts to Graal
2021-04-17 21:57:16 +02:00
P0nk
3458d1c7b3
Convert event scripts to Graal
2021-04-17 21:57:04 +02:00
P0nk
a18a1cb8ce
Replace NashornScriptEngine with implicit GraalJSScriptEngine
...
GraalJSScriptEngine implements Invocable, which is why casting to it works.
However, this is just a quick and ugly fix to make it compile.
A better solution would be to cast it once, immediately after `eval`,
and from then on only handle it as Invocable.
Scripts still need to be fixed. They are still using Rhino and Nashorn-specific
ways of importing packages.
Usages of "importPackage" and "Packages" need to be replaced with
the Graal specific "Java.type".
2021-04-17 15:12:19 +02:00
P0nk
e42fb27459
Bump to Java 16 and updated dependencies
...
Scripting is not fixed yet
2021-04-17 14:55:06 +02:00
Ponk
28b6dd577a
Merge pull request #20 from P0nk/faster-startup
...
Improve the startup sequence
2021-04-16 20:45:15 +02:00
P0nk
5a5110d905
Use existing connection for loading new year + family
...
Move async tasks earlier for lower chance of having to wait
2021-04-16 20:41:17 +02:00
P0nk
8335e77f2e
Load developer room async on startup
2021-04-13 22:44:20 +02:00
P0nk
dd7c2a697a
Load skillbook source information async on startup
2021-04-13 08:14:11 +02:00
P0nk
055ee01ae9
Load quests async on startup
2021-04-12 22:05:57 +02:00
P0nk
a59b55db57
Load cash items async on startup
2021-04-12 21:44:47 +02:00
P0nk
415376ce08
Load skills async on startup
2021-04-12 21:06:05 +02:00
P0nk
ab56d18bd3
Log startup time
2021-04-11 14:02:25 +02:00
P0nk
68239bc0b5
Make database operations during startup consistent
...
Use the same Connection. and log things in a similar fashion
2021-04-11 13:52:35 +02:00
P0nk
858fcd2a3a
Actually perform name changes & world transfers on startup
...
No changes were being committed
2021-04-11 13:05:12 +02:00
Ponk
ed100613f3
Merge pull request #17 from ronancpI/any-ipdomain-update
...
Allow local/LAN/WAN login-phase connections
2021-04-10 18:56:54 +02:00
ronancpl
d4e4150a6e
cleanup: adjust syntax
2021-04-10 09:43:05 -03:00
Ponk
306f403f18
Set up Actions PR pipeline ( #18 )
...
Create Actions PR pipeline - this will automatically run on opened Pull Requests to make sure they compile and pass all (future) tests.
2021-04-10 11:21:40 +02:00
ronancpl
7a3d5d2b94
Allow local/LAN/WAN login-phase connections
...
Allow clients connecting from different IP domains (local/LAN/WAN) to get past login phase and clean unnecessary local server check.
2021-04-09 20:54:53 -03:00
Ponk
fa992da2eb
Merge pull request #16 from P0nk/inspection-cleanup
...
Clean up code using IntelliJ code inspection
2021-04-08 18:00:49 +02:00
P0nk
a5b42b8a43
cleanup: use primitive type instead of wrapper type
2021-04-08 17:49:22 +02:00
P0nk
202f2d8bc5
cleanup: use bulk operation instead of iteration
2021-04-08 17:49:21 +02:00
P0nk
3434c7334b
cleanup: remove redundant cast
2021-04-08 17:39:55 +02:00
P0nk
ebb3aa7ba3
cleanup: prefer List#sort over Collections#sort
2021-04-08 07:44:02 +02:00
P0nk
5730b3b42d
cleanup: use implicit generic type with diamond operator
2021-04-08 07:42:10 +02:00
P0nk
8aa44711e3
cleanup: use Integer#parseInt where applicable
2021-04-08 07:40:42 +02:00
P0nk
7ff8190977
cleanup: remove unnecessary boxing
2021-04-08 07:39:02 +02:00
P0nk
5c6f515d18
cleanup: use for-each loop where applicable
2021-04-08 07:36:38 +02:00
P0nk
0ff8a80ef2
cleanup: remove unnecessary semicolon
2021-04-08 07:34:56 +02:00
P0nk
f37d4063fb
cleanup: remove unnecessary interface modifiers
2021-04-08 07:33:52 +02:00
P0nk
dde52653e5
cleanup: remove unnecessary conversion to String
2021-04-08 07:30:12 +02:00
P0nk
5e3b346053
cleanup: use Java-style array declaration
2021-04-08 07:17:03 +02:00
P0nk
ed5a444753
cleanup: remove unnecessary unboxing
2021-04-07 23:52:58 +02:00
P0nk
6253169e35
cleanup: replace anonymous inner class with lambda
2021-04-07 23:45:28 +02:00
Ponk
2d143d0afd
Merge pull request #15 from P0nk/update-readme
...
Clean up README, add section about contributions
2021-04-07 19:30:51 +02:00
P0nk
1b36852c8d
Clean up README, add section about contributions
2021-04-07 19:28:52 +02:00
Ponk
739b13a1ce
Merge pull request #13 from P0nk/standardized-logging
...
Set up standandarized logging with Slf4j + Log4j2
2021-04-07 18:49:21 +02:00