5253 Commits

Author SHA1 Message Date
UnknownShadow200
c5913ad8dd Make clone detection case insensitive (Thanks Hedwig7s, addresses #673) 2021-12-21 22:20:21 +11:00
UnknownShadow200
b895924a83 Allow using -1 for env variables
Please don't look at the terrible way I implemented this
2021-12-18 21:00:49 +11:00
UnknownShadow200
b6682b101d Use ENV_USE_DEFAULT instead of -1 constant 2021-12-18 20:23:22 +11:00
UnknownShadow200
c19921879c Release 1.9.3.7 1.9.3.7 2021-12-17 10:06:43 +11:00
UnknownShadow200
6dcd6ee66b Further tidyup upnp 2021-12-17 08:04:47 +11:00
UnknownShadow200
0f6221bcb0 UPnP: Log unhandled errors and log discovered device locations 2021-12-13 19:38:26 +11:00
UnknownShadow200
aa0f9ff886 Remove (s) emote shortcut
This shortcut was almost always used unintentionally by player(s), so remove it.
You can still use (sect) and (section)
2021-12-09 17:18:39 +11:00
UnknownShadow200
28c9f7176a Revert "WIP on 0.0.15 support"
This reverts commit 6ad84472ae0574a93f5a993e18d2136d28b7adfe.
2021-12-06 11:46:50 +11:00
UnknownShadow200
6ad84472ae WIP on 0.0.15 support 2021-12-05 17:04:40 +11:00
UnknownShadow200
12ba611b6a Make DefaultAuthenticator non-sealed 2021-12-05 13:24:17 +11:00
UnknownShadow200
ee577c89c2 Allow overrding mppass verification for an authentication service 2021-12-05 13:18:17 +11:00
UnknownShadow200
23b8befc0d GUI: Trying to perform player action instead when no player selected shows warning dialog box now instead of adding line to status log 2021-12-05 09:49:10 +11:00
UnknownShadow200
9021349da2 Drop support for .lvl files without 2 byte signature, which has been there since 2010
I checked the oldest source codes of MCZall and MCSharp I could find, and they both still had the 2 byte signature.
Therefore I have decided to drop this never tested code given how unlikely it is that someone would actually import such an old .lvl file.
This also allows for better error message when a non MCSharp level is provided as a .lvl file
2021-12-04 19:58:34 +11:00
UnknownShadow200
4ac011552f
Add link to now open source API documentation
Although I gave up pretty quickly, so not much there
2021-12-02 21:07:08 +11:00
UnknownShadow200
94fa6c3c2d Drop typecodes in .dat parser that haven't been observed in practice 2021-11-28 14:42:43 +11:00
UnknownShadow200
4efa528cc2 Fix session modified overflowing after 2 billion (Thanks rdebath, addresses #663) 2021-11-21 22:25:43 +11:00
UnknownShadow200
9f12f21b87 Remove obsolete devs.txt
If you are using years old versions of MCGalaxy at this point, I think you can accept an extra error message on startup.
Especially since accessing github doesn't work on Windows with old versions of MCGalaxy anyways since github switched to TLS 1.2 minimum
2021-11-19 08:36:16 +11:00
UnknownShadow200
c92a1f0a65 Make TLS 1.1/1.2 flags in HttpUtil public 2021-11-19 08:10:29 +11:00
UnknownShadow200
e51d1690fa Fix SECURE_WEBSOCKETS not compiling 2021-11-13 11:59:26 +11:00
UnknownShadow200
b2d35b06db GUI: WIP on custom update available dialog to address #662 2021-11-12 23:12:54 +11:00
UnknownShadow200
8afbd356d1 GUI: Make custom commands popup font consistent with rest 2021-11-12 20:11:21 +11:00
UnknownShadow200
ada34d4c32 GUI: Fix icon not showing in popup dialogs on Mono
This took a long time to figure out because
1) for testing purposes I set Icon before the window handle had been created
2) When the window handle was later created, mono would not actually apply the custom icon since the border style is FixedDialog (see CreateHandle in Form.cs)
3) I later set Icon again in multiple other places. However, this was essentially a noop because Mono checked if the new icon was the same as the same previously assigned icon and do nothing in that case.
However, the assumption in step 3) was incorrect because the previously assigned icon had not actually been applied to the window.
Unfortunately this meant the correct Icon never showed at all. So the correct solution to this is to only assign Icon once in the Load event of forms.

I spent way too much time on this
2021-11-11 22:31:59 +11:00
UnknownShadow200
8ee32ba780 Get rid of obsolete warning when compiling GUI, partially fix scale 1/2 not working 2021-11-10 20:37:14 +11:00
UnknownShadow200
dad908c68c GUI: Use FixedDialog instead for FixedToolWindow for improved appearance of popup dialogs, especially on Linux
Note that this means that popup dialogs now appear in taskbar on Linux, whereas they weren't before. However popup dialogs were already appearing before in taskbar on Windows, so at least the behaviour is consistent now
2021-11-10 18:51:55 +11:00
UnknownShadow200
1280f09f7a Also fix general logs calendar days being almost invisible in dark theme 2021-11-09 22:22:42 +11:00
UnknownShadow200
5b774651e3 GUI: Fix listboxes having almost invisible text color for unselected items on Gnome DE with dark theme (Thanks TehcJS, addresses #651)
Testcase: Ubuntu 20.04 with Adwaita-dark or Yaru-dark themes
2021-11-09 21:42:30 +11:00
UnknownShadow200
3642dc3665 Release 1.9.3.6 1.9.3.6 2021-11-07 12:14:04 +11:00
UnknownShadow200
90864a0c6b Split up Scripting.cs into Scripting.cs and ScriptingOperations.cs 2021-11-07 12:08:41 +11:00
UnknownShadow200
b5b8675dfb
Merge pull request #655 from SpiralP/add-cpe-plugin-message
Add new CPE type PluginMessage
2021-11-06 22:49:28 +11:00
SpiralP
842711021e wording 2021-11-06 02:01:09 -07:00
SpiralP
7660e189a8 rename to OnPluginMessageReceivedEvent, move to ServerEvents.cs 2021-11-06 01:59:54 -07:00
SpiralP
2e5d7bd3f2 remove version "2" 2021-11-06 01:24:39 -07:00
SpiralP
592da5c22c use PluginMessageDataLength instead of hardcode 64 2021-11-06 01:23:24 -07:00
SpiralP
f1cf534b6d add OnPlayerPluginMessageEvent, call it when receiving a CPE PluginMessage 2021-11-06 00:06:35 -07:00
SpiralP
62c7cf9951 add CpePluginMessage opcode, and PluginMessage helper 2021-11-05 23:34:55 -07:00
UnknownShadow200
e0529d2fc0 Allow disabling CPE extensions 2021-11-06 13:45:33 +11:00
UnknownShadow200
ce81eb6a58 Add short description for CPE extensions 2021-11-06 09:39:46 +11:00
UnknownShadow200
15dd012ecc Move CpeExtension to CpeExt and prepare for expansion of CpeExtension class 2021-11-05 12:33:25 +11:00
UnknownShadow200
c6ba19059e CPE: Retrieve list of extensions by calling CPEExtension.GetAllEnabled instead 2021-11-04 11:58:31 +11:00
UnknownShadow200
35878c8532 Add Formatter.ValidPlayerName method which takes into account the suffixes defined by the authentication services
Also fix in GUI the right click player in players table -> Kick showing 'kicked by console' twice in kick message
2021-11-03 21:39:22 +11:00
UnknownShadow200
d650dc11eb GUI: Fix right clicking a level in Levels table -> Actions -> Reload not working 2021-11-03 21:24:07 +11:00
UnknownShadow200
4e5a977cea Split up Player.CPE.cs into CPESupport.cs and Player.CPE.cs 2021-11-01 22:18:30 +11:00
UnknownShadow200
53549f2931 Museum: If the exact same museum is already loaded into memory because a player is on it, try to reuse the blocks/CustomBlocks array from that instance instead of loading a duplicate level into memory 2021-10-29 21:39:41 +11:00
UnknownShadow200
cc261aa91c uhhhhh whoops 2021-10-29 20:39:25 +11:00
UnknownShadow200
a3f5a41859 Make /import show better error messages when unsupported file, and simplify /import all to just directly import files instead of trying to change file extension 2021-10-29 20:38:39 +11:00
UnknownShadow200
f54eb7fd55 Tidy up IMapImporter somewhat 2021-10-29 20:18:06 +11:00
UnknownShadow200
6dcbbc3e7b Discord: Also handle IOException with up to 2 more retry and without logging errors 2021-10-29 18:31:28 +11:00
UnknownShadow200
572ae79126 Discord: Handle 500-504 errors with up 2 more retries and don't log to error logs 2021-10-29 18:19:05 +11:00
UnknownShadow200
9ebb2f0082 Discord: Allow disabling user mentions (and toggling role/everyone mentions) 2021-10-28 19:33:51 +11:00
UnknownShadow200
b7868c998f Move LoadMuseum into LevelActions and add some more comments 2021-10-27 20:17:52 +11:00