Skip to content

Commit

Permalink
♻️ Rework Broadcast plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGraversen committed Oct 22, 2023
1 parent 3addc70 commit ae5343f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/umod/Broadcast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Broadcast : RustPlugin
{
readonly ulong ChatIcon = 1337;

[ConsoleCommand("broadcast_hack")]
[ConsoleCommand("broadcast_id")]
private void BroadcastHack(ConsoleSystem.Arg arg) {
if (arg.Connection != null || (arg.Args == null || arg.Args.Length == 0)) return;

Expand All @@ -23,14 +23,6 @@ private void BroadcastHack(ConsoleSystem.Arg arg) {
Server.Broadcast(arg.Args[0], ulong.Parse(arg.Args[1]));
}

[ConsoleCommand("broadcast_all")]
private void BroadcastAll(ConsoleSystem.Arg arg) {
if (arg.Connection != null || (arg.Args == null || arg.Args.Length == 0)) return;

Puts($"Broadcasting message \"{arg.Args[0]}\" to all players");
Server.Broadcast(arg.Args[0], ChatIcon);
}

[ConsoleCommand("broadcast_to")]
private void BroadcastTo(ConsoleSystem.Arg arg) {
if (arg.Connection != null || arg.Args == null) return;
Expand Down

0 comments on commit ae5343f

Please sign in to comment.