36 Commits

Author SHA1 Message Date
UnknownShadow200
ada403cb0f Fix ECL license linking to non-existent page (Thanks TomCube2) 2023-07-06 21:22:09 +10:00
UnknownShadow200
61a332181d Fix for partial player name matching methods from DB, that in the case of the provided name partially matching over 100 names before the first exact match, that the result was unexpectedly 'no matches' instead of the expected exact match (Thanks Goodly)
This typically happened when you have had 1000s of players join, then someone with a 2 letter name joins, and you attempt to do /info on the 2 letter name when they're offline
2023-06-05 21:35:36 +10:00
UnknownShadow200
f2ce59e19d Restore original software name in rest of copyright headers 2022-12-24 21:21:35 +11:00
UnknownShadow200
f270e37add Add disabled-commands option to server.properties to allow disabling certain commands altogether, also remove long obsolete Command.all 2022-11-09 21:55:42 +11:00
UnknownShadow200
cadde3b0c4 Improve /pcreate C# example, and simplify ICompiler slightly since a full CompilerResults instance is not required 2022-07-23 13:57:07 +10:00
UnknownShadow200
5d8289dd3f Custom commands GUI compiling now generates temp .dll path itself, instead of relying on CodeDomCompiler to generate it through 'GenerateInMemory' 2022-07-23 09:01:45 +10:00
UnknownShadow200
3cd44c8175 Change custom commands GUI and /compile help to use actual list of ICompilers instead of hardcoding for C#/VB 2022-07-21 23:17:59 +10:00
UnknownShadow200
f0005c754d WIP splitting up scripting into dll scripting and source code compiling 2022-05-15 18:47:41 +10: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
90864a0c6b Split up Scripting.cs into Scripting.cs and ScriptingOperations.cs 2021-11-07 12:08:41 +11:00
UnknownShadow200
87dec1a792 Fix /compile keeping a reference to dll/pdb on disc (Thanks 123DMWM)
This prevented compiling the same command with a 'file already in use' error)
2021-10-01 08:36:34 +10:00
UnknownShadow200
750af9cb6c move code out of /cmdload and into Scripting.cs 2021-09-02 12:38:52 +10:00
UnknownShadow200
cd9a520ea9 Make compiling source file existence checking consistent, simplify GUI custom commands compiling 2021-09-01 18:26:29 +10:00
UnknownShadow200
2826bf8f20 Make custom commands GUI support other languages too 2021-05-28 08:56:01 +10:00
UnknownShadow200
93fbe8f992 Try to fix compiling for .NET core not working 2021-04-25 21:46:39 +10:00
UnknownShadow200
38d0b14544 Cleanup custom commands GUI by using two buttons for creating C#/VB commands instead of 1 button + 2 radio buttons 2021-04-20 22:58:32 +10:00
UnknownShadow200
a6a04ec92d Add Visual Basic plugin compiling and creating support 2021-03-26 22:39:47 +11:00
UnknownShadow200
0c26ffb88a Split up IScripting into IScripting and ICompiler 2021-03-25 19:39:31 +11:00
UnknownShadow200
d2875cae20 Tidy up IScripting API 2021-03-24 22:20:27 +11:00
UnknownShadow200
45fe8e9471 Cleanup CustomCommands GUI and use IScripting.LoadAssembly instead 2021-03-23 21:58:48 +11:00
UnknownShadow200
5869a4437d Use Colors.StripUsed instead of Colors.Strip in more places such as /who,/clients, name filter, etc 2020-11-28 22:46:50 +11:00
UnknownShadow200
c7dff51acd Support 'reference' when compiling custom commands from GUI, improve logging of errors compiling custom commands from GUI 2020-04-12 11:40:11 +10:00
UnknownShadow200
dd46cf2b73 Custom commands in GUI aren't forced to lowercase filename 2019-06-03 23:48:15 +10:00
UnknownShadow200
a96d45a30a Warnings shouldn't prevent custom command from compiling 2019-06-03 23:38:57 +10:00
UnknownShadow200
75a19fe6c6 refactor commands class 2018-05-30 08:56:46 +10:00
UnknownShadow200
a4427566ad Few more commands can be used in museums, minor tidy-up in UI 2018-05-24 14:41:31 +10:00
UnknownShadow200
e0d0f6f3bc Make UI popups consistent 2018-05-24 11:57:32 +10:00
UnknownShadow200
d1c2595098 Don't show ZS group or team chat when you've ignored someone (Thanks fam0r) 2018-02-21 07:15:33 +11:00
UnknownShadow200
343eb99a00 Fix gb/lb replacing core block with CPE fallback, not converting CPE fallback to core block for classic mode.
Also cleanup scripting/plugin classes
2018-02-20 21:57:36 +11:00
UnknownShadow200
73326f9cb5 Plugin dlls can have multiple dlls, don't allow loading plugin from more recent server version
Also pload/punload announce success to player, and /punload properly supports multiple matches
2018-02-20 09:28:22 +11:00
UnknownShadow200
de289baac5 fix GUI keeping reference to custom command .dll, /color bot now only displays to you 2017-12-22 20:49:11 +11:00
UnknownShadow200
8af7ce291b Add a generic Logger class. This breaks any usage of Server.s.log or Server.LogError by custom commands/plugins. 2017-06-15 12:41:47 +10:00
UnknownShadow200
9bc4650504 Allow listening on specific IP. 2017-05-31 21:18:48 +10:00
UnknownShadow200
42d7f2ff23 Fully move custom commands to separate gui popup 2017-05-29 14:15:47 +10:00
UnknownShadow200
adb2201fe4 Minor code cleanup, move CustomCommands to a popup 2017-05-29 13:40:48 +10:00