Commit graph

494 commits

Author SHA1 Message Date
5615bbcb22
FIx things and attempt to add test
The test can't find a YAML method
2023-07-01 20:13:07 +02:00
cde0d44b04
Readd check after changing the underlying list 2023-06-30 03:20:40 +02:00
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
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
02e05e360e
Update config options and fix other issues and update Scala 2023-06-29 02:10:20 +02:00
6bd1de6217
Convert config fields to methods 2023-05-06 14:33:12 +02:00
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
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
8d63394b55
Fix connect command test 2022-07-21 02:34:03 +02:00
ac3e6655e6
Update sender to support slash commands 2022-07-21 02:24:53 +02:00
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
a4f1463314
Add one half of broadcasted message check and move mcchat classes 2022-07-06 23:55:02 +02:00
6183c034c6
Merge branch 'scala'
# Conflicts:
#	pom.xml
#	src/main/java/buttondevteam/discordplugin/mcchat/MCListener.java
#	src/main/scala/buttondevteam/discordplugin/ChromaBot.java
#	src/main/scala/buttondevteam/discordplugin/ChromaBot.scala
#	src/main/scala/buttondevteam/discordplugin/DiscordPlugin.java
#	src/main/scala/buttondevteam/discordplugin/DiscordPlugin.scala
#	src/main/scala/buttondevteam/discordplugin/listeners/CommandListener.java
2022-01-05 01:35:34 +01:00
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
cafd8096fa
Fix even more returns and Discord->MC chat 2021-12-31 00:38:28 +01:00
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
263c652d68
Fix subcommand detection, fix returns 2021-08-26 02:03:06 +02:00
7b27ec0ea3
Update to Scala 3.0.0 and update dependencies 2021-07-08 23:04:17 +02:00
c49fac5ce5
Fix command parameter name saving and other things 2021-04-06 23:17:31 +02:00
fd63e995ff
Add command parameter name saving 2021-04-06 22:32:12 +02:00
ad3bd451ba
Save all of the config comments and include in JAR 2021-04-06 02:25:23 +02:00
74bce1ecf9
Save config comments (not all of them apparently) 2021-04-06 01:05:58 +02:00
d80703ac68
Obtain config comments from sources 2021-04-06 00:35:59 +02:00
470212411d
Successfully made an unnecessary subproject work 2021-04-05 18:57:40 +02:00
5146fdf368
Add Reflections 2021-04-05 03:47:56 +02:00
860dd66431
Add task to read source files 2021-04-05 02:45:28 +02:00
efa1dcfc8f
Convert to SBT project (manually), including shading 2021-04-04 00:32:27 +02:00
3f6135f427
Revert "Convert some classes to Scala"
This reverts commit 261725dc0f.
2021-03-20 14:35:15 +01:00
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
a84cd4e8e3
Fix all Scala errors! 2021-03-09 03:41:04 +01:00
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
7296ebd2f8
Tailrec announcer method, fix some compile issues 2021-03-06 01:27:21 +01:00
d416eef144
Make some small functions 2021-03-02 01:40:58 +01:00
fce6b91b97
Use Scala version of Reactor & data types 2021-03-02 01:18:20 +01:00
c57ac26b2d
All classes converted that I wanted 2021-03-01 02:07:40 +01:00
9f47509dcb
Converted mcchat classes to Scala 2021-02-26 02:27:59 +01:00
428361c46c
Convert some more classes to Scala
Actually, a lot of them
2021-02-25 01:44:43 +01:00
261725dc0f
Convert some classes to Scala
Because why not
Except... It doesn't work. Yet.
2021-02-15 22:24:14 +01:00
b18f6beba9
Add more relocations to fix compatibility issues 2021-02-09 23:00:40 +01:00
cbc9728c02
Try using a different path for the script 2020-11-01 19:14:47 +01:00
9576c0ba1d
Use install-jdk.sh for Java 8 as well 2020-11-01 18:57:25 +01:00
1fe367a96c
Use Java 8 for Spigot, Java 11 for others (CI) 2020-11-01 18:42:04 +01:00
28cff3ed43
Fix mcchat crash on config issue 2020-11-01 13:54:07 +01:00
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
64994ee44e
Fix some things, disable some modules by default 2020-10-30 00:56:08 +01:00
e57974ebcd
Remove debug msg and set version 2020-10-28 00:32:59 +01:00
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
2b549227a6
Aw man 2020-10-26 23:05:03 +01:00
61986c9b51
Fix server start message not being displayed 2020-10-26 22:56:13 +01:00
4d234cf832
Fix vanish player count and no crash on fast disable
#130
2020-10-26 21:16:08 +01:00