-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 音频系统的小改,部分注释补充 * 注释补充 * 问题的修复 (#6) * add BDNT(Bypass Do Not Track) * add GetAllProperties * 修复功能 * 修复错版 (#10)
- Loading branch information
Showing
7 changed files
with
147 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using CommandSystem; | ||
using Exiled.API.Features; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using YongAnFrame.Players; | ||
|
||
namespace YongAnFrame.Commands | ||
{ | ||
[CommandHandler(typeof(ClientCommandHandler))] | ||
public class PlayerCommand : ICommand | ||
{ | ||
public string Command => "player"; | ||
|
||
public string[] Aliases => ["play", "pl", "pr"]; | ||
|
||
public string Description => "用于管理自己的用户"; | ||
|
||
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response) | ||
{ | ||
response = "NULL"; | ||
if (arguments.Count < 2) | ||
{ | ||
switch (arguments.Array[1]) | ||
{ | ||
case "BDNT": | ||
if (Player.TryGet(sender, out Player player)) | ||
{ | ||
FramePlayer fPlayer = FramePlayer.Get(player); | ||
fPlayer.HintManager.Clean(); | ||
string[] text = new string[36]; | ||
|
||
fPlayer.ExPlayer.ShowHint($"<size=20>{string.Join("\n", text)}\n\n\n\n\n\n\n\n\n\n\n\n\n\n</size>", 10000f); | ||
} | ||
|
||
return true; | ||
} | ||
|
||
} | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.