Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (e.MsgID == 0x30)
- {
- int x;
- int y;
- byte liquid;
- bool lava;
- using (var br = new BinaryReader(new MemoryStream(e.Msg.readBuffer, e.Index, e.Length)))
- {
- x = br.ReadInt32();
- y = br.ReadInt32();
- liquid = br.ReadByte();
- lava = br.ReadBoolean();
- }
- if (ConfigurationManager.spawnProtect)
- if (!players[e.Msg.whoAmI].IsAdmin())
- {
- var flag = CheckSpawn(x, y);
- if (flag)
- {
- Tools.SendMessage(e.Msg.whoAmI, "The spawn is protected!", new float[] { 255f, 0f, 0f });
- e.Handled = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment