Skip to content

Commit

Permalink
Make /fliphead usable without ZS running
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed May 26, 2022
1 parent 9a86929 commit eae64ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -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");
}
}
}
2 changes: 1 addition & 1 deletion MCGalaxy/MCGalaxy_.csproj
Expand Up @@ -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" />
Expand All @@ -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" />
Expand Down

0 comments on commit eae64ac

Please sign in to comment.