Make /fliphead usable without ZS running

This commit is contained in:
UnknownShadow200 2022-05-26 18:51:29 +10:00
parent 9a869297b2
commit eae64acf20
2 changed files with 4 additions and 6 deletions

View File

@ -18,18 +18,16 @@
namespace MCGalaxy.Commands.Fun {
public sealed class CmdFlipHead : Command2 {
public override string name { get { return "FlipHead"; } }
public override string shortcut { get { return "fh"; } }
public override string type { get { return CommandTypes.Other; } }
public override CommandEnable Enabled { get { return CommandEnable.Zombie; } }
public override void Use(Player p, string message, CommandData data) {
p.flipHead = !p.flipHead;
if (p.flipHead) p.Message("Your head was broken!");
else p.Message("Your head was healed!");
p.Message("Your head was {0}&S!", p.flipHead ? "&cbroken" : "&ahealed");
}
public override void Help(Player p) {
p.Message("/fliphead - Does as it says on the tin (only works while infected)");
p.Message("&T/FlipHead");
p.Message("&HMakes your head appear upside down to other players");
}
}
}

View File

@ -214,6 +214,7 @@
<Compile Include="Commands\EntityPropertyCmd.cs" />
<Compile Include="Commands\Fun\CmdCountdown.cs" />
<Compile Include="Commands\Fun\CmdExplode.cs" />
<Compile Include="Commands\Fun\CmdFliphead.cs" />
<Compile Include="Commands\Fun\CmdFlipHeads.cs" />
<Compile Include="Commands\Fun\CmdGun.cs" />
<Compile Include="Commands\Fun\CmdLavaSurvival.cs" />
@ -231,7 +232,6 @@
<Compile Include="Commands\Fun\ZombieSurvival\CmdBounties.cs" />
<Compile Include="Commands\Fun\ZombieSurvival\CmdBounty.cs" />
<Compile Include="Commands\Fun\ZombieSurvival\CmdDisinfect.cs" />
<Compile Include="Commands\Fun\ZombieSurvival\CmdFliphead.cs" />
<Compile Include="Commands\Fun\ZombieSurvival\CmdHuman.cs" />
<Compile Include="Commands\Fun\ZombieSurvival\CmdInfect.cs" />
<Compile Include="Commands\Fun\ZombieSurvival\CmdInfected.cs" />