초기커밋
This commit is contained in:
17
GameServer/Contents/Friend/FriendCheat.cs
Normal file
17
GameServer/Contents/Friend/FriendCheat.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using ServerCommon;
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
[ChatCommandAttribute("friendkick", typeof(ChatCommandFriendKick), AuthAdminLevelType.Developer, AuthAdminLevelType.GmNormal, AuthAdminLevelType.GmSuper)]
|
||||
internal class ChatCommandFriendKick : ChatCommandBase
|
||||
{
|
||||
public override async Task invoke(Player player, string token, string[] args)
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
|
||||
var friend_kick_action = player.getEntityAction<KickFriendsFromMyHomeAction>();
|
||||
|
||||
friend_kick_action.kickFriendsFromMyHome();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user