various fixes + new custom class shadowmancer

This commit is contained in:
2025-07-12 20:18:02 +02:00
parent 0615f8aeea
commit 78fa56dce9
10 changed files with 356 additions and 10 deletions
+42
View File
@@ -0,0 +1,42 @@
using CommandSystem;
using LabApi.Features.Permissions;
using LabApi.Features.Wrappers;
namespace VIPTreatment;
[CommandHandler(typeof(RemoteAdminCommandHandler))]
[CommandHandler(typeof(ClientCommandHandler))]
public class BullshitDetectedCommand : ICommand
{
public string Command => "bullshitdetected";
public string[] Aliases => [];
public string Description => "Broadcasts a message to all players";
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
if (!Player.TryGet(sender, out var player))
{
response = "You must be a player to use this command!";
return false;
}
if (!player.HasPermissions("viptreatment.wiki"))
{
response = "You must have the permission to use this command!";
return false;
}
foreach (var target in Player.ReadyList)
{
target.SendBroadcast("<color=red>⚠️ BULLSHIT DETECTED ⚠️</color>", 5);
target.SendBroadcast("<color=green>Tipp: Das Wiki hat immer die aktuellsten Informationen!</color>", 5);
}
Cassie.Message("false information yield_0.8 detected yield_01 see V yield_0.2 KEY", true, false, false);
response = "Broadcast message sent to all ready players.";
return true;
}
}