mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
readd AFK/un-AFK event
This commit is contained in:
parent
11bc7eebd1
commit
06284cece2
@ -42,6 +42,7 @@ namespace MCGalaxy.Commands.Chatting {
|
|||||||
p.CheckForMessageSpam();
|
p.CheckForMessageSpam();
|
||||||
}
|
}
|
||||||
p.AFKCooldown = DateTime.UtcNow.AddSeconds(2);
|
p.AFKCooldown = DateTime.UtcNow.AddSeconds(2);
|
||||||
|
OnPlayerActionEvent.Call(p, PlayerAction.AFK, null, cantSend);
|
||||||
} else {
|
} else {
|
||||||
if (cantSend) {
|
if (cantSend) {
|
||||||
Player.Message(p, "You are no longer marked as being AFK.");
|
Player.Message(p, "You are no longer marked as being AFK.");
|
||||||
@ -49,6 +50,7 @@ namespace MCGalaxy.Commands.Chatting {
|
|||||||
ShowMessage(p, "-λNICK%S- is no longer AFK");
|
ShowMessage(p, "-λNICK%S- is no longer AFK");
|
||||||
p.CheckForMessageSpam();
|
p.CheckForMessageSpam();
|
||||||
}
|
}
|
||||||
|
OnPlayerActionEvent.Call(p, PlayerAction.UnAFK, null, cantSend);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ using System;
|
|||||||
using BlockID = System.UInt16;
|
using BlockID = System.UInt16;
|
||||||
|
|
||||||
namespace MCGalaxy.Events.PlayerEvents {
|
namespace MCGalaxy.Events.PlayerEvents {
|
||||||
public enum PlayerAction { Me, Referee, UnReferee };
|
public enum PlayerAction { Me, Referee, UnReferee, AFK, UnAFK };
|
||||||
public enum MouseButton { Left, Right, Middle }
|
public enum MouseButton { Left, Right, Middle }
|
||||||
public enum MouseAction { Pressed, Released }
|
public enum MouseAction { Pressed, Released }
|
||||||
public enum TargetBlockFace { AwayX, TowardsX, AwayY, TowardsY, AwayZ, TowardsZ, None }
|
public enum TargetBlockFace { AwayX, TowardsX, AwayY, TowardsY, AwayZ, TowardsZ, None }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user