mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-15 10:18:43 -04:00
Make /fliphead usable without ZS running
This commit is contained in:
parent
9a869297b2
commit
eae64acf20
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user