Merge into master

This commit is contained in:
BruceChen 2022-12-06 20:32:46 +08:00
commit 892999ac98
155 changed files with 10911 additions and 9860 deletions

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
@ -401,4 +401,4 @@ namespace MinecraftClient.Scripting
return CSharpRunner.Run(this, lines, args, localVars, scriptName: script);
}
}
}
}

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@ -100,12 +100,12 @@ namespace MinecraftClient.Scripting
/// NOTE: Chat messages cannot be sent at this point in the login process.
/// If you want to send a message when the bot is loaded, use AfterGameJoined.
/// </summary>
public virtual void Initialize(CommandDispatcher<CmdResult> dispatcher) { }
public virtual void Initialize() { }
/// <summary>
/// This method is called when the bot is being unloaded, you can use it to free up resources like DB connections
/// </summary>
public virtual void OnUnload(CommandDispatcher<CmdResult> dispatcher) { }
public virtual void OnUnload() { }
/// <summary>
/// Called after the server has been joined successfully and chat messages are able to be sent.

View file

@ -1,4 +1,4 @@
/*
/*
MIT License
Copyright (c) 2019 Laurent Kempé
https://github.com/laurentkempe/DynamicRun/blob/master/LICENSE
@ -172,4 +172,4 @@ namespace MinecraftClient.Scripting.DynamicRun.Builder
}
}
}
}
}