Skip to content

Commit 56b74bb

Browse files
Change RankMsg and Whisper commands to not update last cmd. (#842)
* Change RankMsg and Whisper commands to not update last cmd.
1 parent e1ca870 commit 56b74bb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@ jobs:
196196
if: failure()
197197
with:
198198
NOTIFY_MESSAGE: 'Failed to produce MCGalaxy dotnet 8.0 build'
199-
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
199+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'

MCGalaxy/Commands/Chat/CmdRankMsg.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public sealed class CmdRankMsg : Command2
2929
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
3030
public override bool UseableWhenFrozen { get { return true; } }
3131
public override bool MessageBlockRestricted { get { return true; } }
32+
public override bool UpdatesLastCmd { get { return false; } }
3233

3334
public override void Use(Player p, string message, CommandData data) {
3435
if (message.Length == 0) { Help(p); return; }

MCGalaxy/Commands/Chat/CmdWhisper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public sealed class CmdWhisper : Command2
2424
public override bool SuperUseable { get { return false; } }
2525
public override bool UseableWhenFrozen { get { return true; } }
2626
public override bool MessageBlockRestricted { get { return true; } }
27+
public override bool UpdatesLastCmd { get { return false; } }
2728

2829
public override void Use(Player p, string message, CommandData data) {
2930
if (message.Length == 0) {

0 commit comments

Comments
 (0)