mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Make Entities.Spawn bot public
This commit is contained in:
parent
04aa2cd41a
commit
531c8969e0
@ -61,7 +61,7 @@ namespace MCGalaxy.Commands {
|
||||
string action, string defUnit) {
|
||||
try {
|
||||
span = input.ParseShort(defUnit);
|
||||
// Typically span is added to current time, so ensure span isn't too big
|
||||
// Typically span gets added to current time, so check span isn't too big here
|
||||
DateTime.UtcNow.Add(span).AddYears(1);
|
||||
return true;
|
||||
} catch (OverflowException) {
|
||||
|
@ -120,7 +120,7 @@ namespace MCGalaxy {
|
||||
foreach (PlayerBot b in botsList) { Despawn(p, b); }
|
||||
}
|
||||
|
||||
internal static void Spawn(Player dst, PlayerBot b) {
|
||||
public static void Spawn(Player dst, PlayerBot b) {
|
||||
string name = Chat.Format(b.color + b.DisplayName, dst, true, false);
|
||||
if (b.DisplayName.CaselessEq("empty")) name = "";
|
||||
string skin = Chat.Format(b.SkinName, dst, true, false);
|
||||
|
@ -48,7 +48,7 @@ namespace MCGalaxy.Network {
|
||||
/// <summary> Gets the data to be sent for a heartbeat. </summary>
|
||||
public abstract string GetHeartbeatData();
|
||||
|
||||
/// <summary> Called when a request is about to be send to the web server. </summary>
|
||||
/// <summary> Called when a request is about to be sent to the web server. </summary>
|
||||
public abstract void OnRequest(HttpWebRequest request);
|
||||
|
||||
/// <summary> Called when a response is received from the web server. </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user