Commit graph

430 commits

Author SHA1 Message Date
Norbi Peti 5615bbcb22
FIx things and attempt to add test
The test can't find a YAML method
2023-07-01 20:13:07 +02:00
Norbi Peti cde0d44b04
Readd check after changing the underlying list 2023-06-30 03:20:40 +02:00
Norbi Peti 0d59dff86e
Reverted back to Scala 2.13
- The IntelliJ plugin still isn't working properly after 2 years so it's really annoying to dev using Scala 3
- (Probably) fixed DPUtils.reply not sending a message if a Mono.empty() was passed as a channel
- Moved the Discord user property from LastMessageData to CustomLMD as we don't need the user anymore to check permissions (we don't need to create a fake sender)
- ...even if we do, it should store the sender itself maybe

- Spent hours reverting and debugging Scala 2 issues because apaprently that's also very buggy
- Implemented Player interface directly in some senders because it was required for... reasons
- Moved the commenter to a separate class after a looot of debugging (API was provided)
2023-06-30 02:29:01 +02:00
Norbi Peti 222d393420
Rename DiscordPlayer to DiscordUser
About time
It's been like that since I started this project in 2016
It's not representing an in-game player, it's representing a DC user
2023-06-29 02:16:39 +02:00
Norbi Peti 02e05e360e
Update config options and fix other issues and update Scala 2023-06-29 02:10:20 +02:00
Norbi Peti 6bd1de6217
Convert config fields to methods 2023-05-06 14:33:12 +02:00
Norbi Peti 5d0bd37b28
Fixed all compile errors
- Removed all hacky code (for now)
- Removed other dependencies because I kept getting load errors, mostly related to the examination api
- Added some dependencies because I kept getting load errors, mostly related to the examination api
- Removed use of Channel.extraIdentifiers because it would not accept it, claiming that the ListConfigData class file is broken
2023-04-24 23:53:00 +02:00
Norbi Peti f909eb4779
Attempted to update to latest API, lots of errors (9 remains)
- Removed Reactor Scala extensions in an attempt to get this thing to compile but it doesn't seem to help
- Removed heavily version-dependent stuff
2023-04-24 04:42:24 +02:00
Norbi Peti 8d63394b55
Fix connect command test 2022-07-21 02:34:03 +02:00
Norbi Peti ac3e6655e6
Update sender to support slash commands 2022-07-21 02:24:53 +02:00
Norbi Peti 0610ee434b
Fix broadcast message check (#134)
- Now it keeps track of Bukkit broadcast messages instead of checking the stack trace
2022-07-07 01:13:23 +02:00
Norbi Peti a4f1463314
Add one half of broadcasted message check and move mcchat classes 2022-07-06 23:55:02 +02:00
Norbi Peti 2a985509fb
Remove custom command handling and start slash commands
They don't work yet, but show up on Discord so that's something
2022-01-05 01:31:24 +01:00
Norbi Peti cafd8096fa
Fix even more returns and Discord->MC chat 2021-12-31 00:38:28 +01:00
Norbi Peti 9f3ca37929
Fix compilation issues and startup exceptions
- Removed test class because it errors, and I don't know how to fix it
- Updated dependencies
- Fixed SMono.whenDelayError() causing a crash on Scala 3.0.0
- Fixed subscribe method calls being ambiguous
- Fixed returns returning the wrong things
- Converted onGetInfo() to use no returns
2021-12-30 21:25:50 +01:00
Norbi Peti 263c652d68
Fix subcommand detection, fix returns 2021-08-26 02:03:06 +02:00
Norbi Peti 7b27ec0ea3
Update to Scala 3.0.0 and update dependencies 2021-07-08 23:04:17 +02:00
Norbi Peti c49fac5ce5
Fix command parameter name saving and other things 2021-04-06 23:17:31 +02:00
Norbi Peti ad3bd451ba
Save all of the config comments and include in JAR 2021-04-06 02:25:23 +02:00
Norbi Peti 470212411d
Successfully made an unnecessary subproject work 2021-04-05 18:57:40 +02:00
Norbi Peti 860dd66431
Add task to read source files 2021-04-05 02:45:28 +02:00
Norbi Peti efa1dcfc8f
Convert to SBT project (manually), including shading 2021-04-04 00:32:27 +02:00
Norbi Peti 1b1a592a1e
It compiles! Remove LPInjector for now
The IDE and the Scala compiler don't agree on what is or isn't needed
2021-03-09 23:55:02 +01:00
Norbi Peti a84cd4e8e3
Fix all Scala errors! 2021-03-09 03:41:04 +01:00
Norbi Peti a0a7f756c4
Implicit classes for conversion, more fixing
Added 'extension methods' to convert to Scala-friendly formats easily
2021-03-09 02:47:11 +01:00
Norbi Peti 7296ebd2f8
Tailrec announcer method, fix some compile issues 2021-03-06 01:27:21 +01:00
Norbi Peti d416eef144
Make some small functions 2021-03-02 01:40:58 +01:00
Norbi Peti fce6b91b97
Use Scala version of Reactor & data types 2021-03-02 01:18:20 +01:00
Norbi Peti c57ac26b2d
All classes converted that I wanted 2021-03-01 02:07:40 +01:00
Norbi Peti 9f47509dcb
Converted mcchat classes to Scala 2021-02-26 02:27:59 +01:00
Norbi Peti 428361c46c
Convert some more classes to Scala
Actually, a lot of them
2021-02-25 01:44:43 +01:00
Norbi Peti 261725dc0f
Convert some classes to Scala
Because why not
Except... It doesn't work. Yet.
2021-02-15 22:24:14 +01:00
Norbi Peti b18f6beba9
Add more relocations to fix compatibility issues 2021-02-09 23:00:40 +01:00
Norbi Peti 28cff3ed43
Fix mcchat crash on config issue 2020-11-01 13:54:07 +01:00
Norbi Peti 491b5e4ee9
Fix commands not working in some cases
#98
Also unregistering DC commands
Also removed the command string from the unknown command message
2020-10-30 23:50:08 +01:00
Norbi Peti 64994ee44e
Fix some things, disable some modules by default 2020-10-30 00:56:08 +01:00
Norbi Peti e57974ebcd
Remove debug msg and set version 2020-10-28 00:32:59 +01:00
Norbi Peti 324f5e756c
Detect restarts by reading *everything* logged
The server uses sout to print the message we're interested in...
Hopefully a check like this won't put any significant load on the server
2020-10-27 15:02:42 +01:00
Norbi Peti 2b549227a6
Aw man 2020-10-26 23:05:03 +01:00
Norbi Peti 61986c9b51
Fix server start message not being displayed 2020-10-26 22:56:13 +01:00
Norbi Peti 4d234cf832
Fix vanish player count and no crash on fast disable
#130
2020-10-26 21:16:08 +01:00
Norbi Peti 7866ddbe06
Config conversion 2020-10-26 20:01:00 +01:00
Norbi Peti fdcab1acb2
Fix LPInjector and player data stuff 2020-10-25 21:49:09 +01:00
Norbi Peti 40fe1093e0
Player data things, LPInjector update start 2020-10-25 01:59:10 +02:00
Norbi Peti a27a262858
LPInjector and mcchat fixes
Fixed LPInjector registering to the Core
Stop MCChatListener from having multiple active instances
MinecraftChatModule.state instead of all the flags
Showing MinecraftChatModule enable/disable on Discord
/discord reset --> restart
Wait for each shutdown message to send on shutdown (although it hasn't really been an issue so far)
This means using Mono<?> in a lot of places
Also added a contract (IntelliJ) to warn if not subscribed
Faking getOnlinePlayers() is unnecessary and causes too much trouble
Today's work
2020-10-10 00:29:21 +02:00
Norbi Peti ccc15aa048
Log exceptions using the plugin/component logger
And fix LPInjector loading multiple times / once
2020-10-09 00:10:36 +02:00
Norbi Peti 891be91d69
Fix some mcchat and a reset issue
Using ConcurrentHashMaps (#62)
Add custom /list to hide vanished players (#120)
Fixed /discord reset for non-Paper servers (#103)
2020-10-08 00:02:49 +02:00
Norbi Peti 56d13ebf9f
Update to Discord4J v3.1.1
It wasn't as complicated as I expected
2020-10-07 22:27:20 +02:00
Norbi Peti 7cebb74835
Switch back to mocking
The ByteBuddy solution complains about adding/removing fields
But making a delegating mock maker is easy enough
2020-10-07 20:09:35 +02:00
Norbi Peti 3f2fa286fb
Attempt to use ByteBuddy directly for ServerWatcher 2020-10-07 00:52:59 +02:00