Skip to content
Permalink
Browse files

Fix being able to use /review to reveal hidden players

  • Loading branch information...
UnknownShadow200 committed May 17, 2017
1 parent c44dec3 commit c0371d23461c381ddae99c65d7126629dae91732
Showing with 7 additions and 10 deletions.
  1. +7 −10 fCraft/Commands/ChatCommands.cs
@@ -225,19 +225,16 @@ static void StaffSayHandler(Player player, CommandReader cmd)

static void ReviewHandler(Player player, CommandReader cmd)
{
if (player.Info.IsMuted)
{
player.MessageMuted();
return;
}

if (player.Info.IsMuted) { player.MessageMuted(); return; }
if (player.DetectChatSpam()) return;
var staff = Server.Players.Where(p => p.IsStaff);
if (staff != null && staff.Any()) {

var staff = Server.Players.CanBeSeen(player).Union(player).Where(p => p.IsStaff);
if (staff.Any()) {
player.Message("Your review request has been sent to the Moderators. They will be with you shortly");
Server.Players.Where(p => p.IsStaff).Message("Player " + player.ClassyName + " &Srequests a building review.");
Server.Players.CanSee(player).Where(p => p.IsStaff)
.Message("Player " + player.ClassyName + " &Srequests a building review.");
} else {
player.Message("There are no staff on! Sorry!");
player.Message("There are no staff currently online.");
}
}

0 comments on commit c0371d2

Please sign in to comment.
You can’t perform that action at this time.