Created
January 7, 2014 02:29
-
-
Save MrBluePotato/8293787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (Player p in PropHunt._world.Players) | |
{ | |
Block[] blockNames = { Block.Stone, Block.Grass, Block.Dirt, Block.Cobblestone, Block.Plank, Block.Bedrock, Block.Sand, Block.Gravel, Block.Log, Block.Sponge, Block.Crate, Block.StoneBrick }; | |
if (map.GetBlock(p.prophuntLastSolidPos) == blockNames) | |
{ | |
//Remove the players block | |
Block airBlock = Block.Air; | |
BlockUpdate blockUpdate = new BlockUpdate(null, this.prophuntLastSolidPos, airBlock); | |
this.World.Map.QueueUpdate(blockUpdate); | |
//Do the other stuff | |
this.Message("&cA seeker has found you! Quick, run away!"); | |
this.isSolidBlock = false; | |
this.Info.IsHidden = false; | |
RaisePlayerHideChangedEvent(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment