Skip to content

Instantly share code, notes, and snippets.

@MrBluePotato
Created January 7, 2014 02:29
Show Gist options
  • Save MrBluePotato/8293787 to your computer and use it in GitHub Desktop.
Save MrBluePotato/8293787 to your computer and use it in GitHub Desktop.
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