Skip to content

Commit

Permalink
Replace tabs to spaces everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jun 19, 2017
1 parent 772862f commit b52430c
Show file tree
Hide file tree
Showing 42 changed files with 1,337 additions and 1,337 deletions.
4 changes: 2 additions & 2 deletions fCraft/AutoRank/AutoRankManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static class AutoRankManager {
return;
}

Logger.Log(LogType.Debug, "AutoRankAll: Evaluating {0} players...", list.Length);
Logger.Log(LogType.Debug, "AutoRankAll: Evaluating {0} players...", list.Length);

Stopwatch sw = Stopwatch.StartNew();
int promoted = 0, demoted = 0;
Expand All @@ -114,7 +114,7 @@ static class AutoRankManager {
}
}
sw.Stop();
Logger.Log(LogType.Debug, "AutoRankAll: Worked for {0}ms, {1} players promoted, {2} demoted.", sw.ElapsedMilliseconds, promoted, demoted);
Logger.Log(LogType.Debug, "AutoRankAll: Worked for {0}ms, {1} players promoted, {2} demoted.", sw.ElapsedMilliseconds, promoted, demoted);
}
}

Expand Down
84 changes: 42 additions & 42 deletions fCraft/Commands/ChatCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static void ReviewHandler(Player player, CommandReader cmd)
static void IgnoreHandler(Player player, CommandReader cmd) {
string name = cmd.Next();
if (!string.IsNullOrEmpty(name)) {
if (name.CaselessEquals("irc")) {
if (name.CaselessEquals("irc")) {
if (player.Info.ReadIRC) {
player.Info.ReadIRC = false;
player.Message("You are now ignoring &IIRC");
Expand Down Expand Up @@ -364,7 +364,7 @@ static void ReviewHandler(Player player, CommandReader cmd)
static void UnignoreHandler(Player player, CommandReader cmd) {
string name = cmd.Next();
if (!string.IsNullOrEmpty(name)) {
if (name.CaselessEquals("irc")) {
if (name.CaselessEquals("irc")) {
if (!player.Info.ReadIRC) {
player.Info.ReadIRC = true;
player.Message("You are no longer ignoring &IIRC");
Expand Down Expand Up @@ -635,13 +635,13 @@ static void ClearHandler(Player player, CommandReader cmd)
if (cmd.IsConfirmed) {
rCreate.AddReport(getNewReportId(), player.Name, DateTime.Now, message);
player.Message("Report sent!");
foreach (Player p in Server.Players.Where(q => q.Info.Rank == RankManager.HighestRank)) {
if (p.Supports(CpeExt.MessageType)) {
p.Send(Packet.Message((byte)MessageType.Announcement,
String.Format("Player {0} has sent in a report!", player.Name), player));
}
p.Message("Player {0} has sent in a report!", player.Name);
}
foreach (Player p in Server.Players.Where(q => q.Info.Rank == RankManager.HighestRank)) {
if (p.Supports(CpeExt.MessageType)) {
p.Send(Packet.Message((byte)MessageType.Announcement,
String.Format("Player {0} has sent in a report!", player.Name), player));
}
p.Message("Player {0} has sent in a report!", player.Name);
}
return;
}
if (message.Length < 1) {
Expand Down Expand Up @@ -699,8 +699,8 @@ static void ClearHandler(Player player, CommandReader cmd)
}
break;
case "read":
case "open":
case "view":
case "open":
case "view":
bool read = false;
if (cmd.NextInt(out reportId)) {
foreach (Report r in Report.Reports) {
Expand Down Expand Up @@ -1067,32 +1067,32 @@ static void TimerHandler(Player player, CommandReader cmd)
Handler = RBChatHandler
};

static void RBChatHandler(Player player, CommandReader cmd) {
string s = cmd.Next();
if (s != null && s.CaselessEquals("bw")) {
if (player.ChatBWRainbows) {
player.ChatRainbows = false;
player.ChatBWRainbows = false;
player.Message("BWRainbow Chat: &4Off");
player.Message("Your messages will now show up normally.");
} else {
player.ChatBWRainbows = true;
player.ChatRainbows = false;
player.Message("BWRainbow Chat: &2On");
player.Message("Your messages will now show up as &0R&8A&7I&fN&7B&8O&0W&8S&7!&f.");
}
} else if (player.ChatRainbows) {
player.ChatRainbows = false;
player.ChatBWRainbows = false;
player.Message("Rainbow Chat: &4Off");
player.Message("Your messages will now show up normally.");
} else {
player.ChatRainbows = true;
player.ChatBWRainbows = false;
player.Message("Rainbow Chat: &2On");
player.Message("Your messages will now show up as &cR&4A&6I&eN&aB&2O&bW&3S&9!&S.");
}
}
static void RBChatHandler(Player player, CommandReader cmd) {
string s = cmd.Next();
if (s != null && s.CaselessEquals("bw")) {
if (player.ChatBWRainbows) {
player.ChatRainbows = false;
player.ChatBWRainbows = false;
player.Message("BWRainbow Chat: &4Off");
player.Message("Your messages will now show up normally.");
} else {
player.ChatBWRainbows = true;
player.ChatRainbows = false;
player.Message("BWRainbow Chat: &2On");
player.Message("Your messages will now show up as &0R&8A&7I&fN&7B&8O&0W&8S&7!&f.");
}
} else if (player.ChatRainbows) {
player.ChatRainbows = false;
player.ChatBWRainbows = false;
player.Message("Rainbow Chat: &4Off");
player.Message("Your messages will now show up normally.");
} else {
player.ChatRainbows = true;
player.ChatBWRainbows = false;
player.Message("Rainbow Chat: &2On");
player.Message("Your messages will now show up as &cR&4A&6I&eN&aB&2O&bW&3S&9!&S.");
}
}
#endregion
#region Greet

Expand All @@ -1101,7 +1101,7 @@ static void TimerHandler(Player player, CommandReader cmd)
Name = "Greet",
Aliases = new[] { "greeting", "welcome" },
Permissions = new[] { Permission.Chat },
IsConsoleSafe = true,
IsConsoleSafe = true,
Category = CommandCategory.New | CommandCategory.Chat,
Help = "Sends a message welcoming the last player to join the server.",
Handler = greetHandler
Expand Down Expand Up @@ -1311,8 +1311,8 @@ static void TimerHandler(Player player, CommandReader cmd)
string name = cmd.Next();
string reason = cmd.NextAll().Trim();
if (name == null || reason == "") {
CdWarn.PrintUsage(player);
return;
CdWarn.PrintUsage(player);
return;
}

Player target = Server.FindPlayerOrPrintMatches(player, name, SearchOptions.ReturnSelfIfOnlyMatch);
Expand All @@ -1322,10 +1322,10 @@ static void TimerHandler(Player player, CommandReader cmd)
player.Message("You cannot &H/Warn&S yourself."); return;
} else if (cmd.IsConfirmed) {
Server.Players.Message("{0} &chas warned {1}&c: &4{2}",
player.ClassyName, target.ClassyName, reason);
player.ClassyName, target.ClassyName, reason);
} else {
player.Confirm(cmd, "Your warning will display as: \"{0} &chas warned {1}&c: &4{2}\"",
player.ClassyName, target.ClassyName, reason);
player.ClassyName, target.ClassyName, reason);
}
}

Expand Down
10 changes: 5 additions & 5 deletions fCraft/Commands/CommandManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ public static bool ParseCommand([NotNull] Player player, [NotNull] CommandReader
}
else
{
if (descriptor.MinRank != RankManager.LowestRank && !player.Info.ClassicubeVerified) {
player.Message("As you had an older minecraft.net account, you must have an admin verify your " +
"new classicube.net account actually is you with /verify before you can use non-guest commands.");
return false;
}
if (descriptor.MinRank != RankManager.LowestRank && !player.Info.ClassicubeVerified) {
player.Message("As you had an older minecraft.net account, you must have an admin verify your " +
"new classicube.net account actually is you with /verify before you can use non-guest commands.");
return false;
}
if (descriptor.Permissions != null)
{
if (!descriptor.CanBeCalledBy(player.Info.Rank))
Expand Down
8 changes: 4 additions & 4 deletions fCraft/Commands/CpeCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ static class CpeCommands {
return;
} else {
distance = 160;
}
}
}
if (distance < 0 || distance > 32767) {
player.Message("Reach distance must be between 0 and 32767");
Expand All @@ -513,9 +513,9 @@ static class CpeCommands {
if (player != target) {
if (target.Supports(CpeExt.ClickDistance)) {
target.Message("{0} set your reach distance from {1} to {2} blocks [Units: {3}]",
player.Name, target.Info.ReachDistance / 32, distance / 32, distance);
player.Name, target.Info.ReachDistance / 32, distance / 32, distance);
player.Message("Set reach distance for {0} from {1} to {2} blocks [Units: {3}]",
target.Name, target.Info.ReachDistance / 32, distance / 32, distance);
target.Name, target.Info.ReachDistance / 32, distance / 32, distance);
target.Info.ReachDistance = distance;
target.Send(Packet.MakeSetClickDistance(distance));
} else {
Expand All @@ -524,7 +524,7 @@ static class CpeCommands {
} else {
if (player.Supports(CpeExt.ClickDistance)) {
player.Message("Set own reach distance from {0} to {1} blocks [Units: {2}]",
player.Info.ReachDistance / 32, distance / 32, distance);
player.Info.ReachDistance / 32, distance / 32, distance);
player.Info.ReachDistance = distance;
player.Send(Packet.MakeSetClickDistance(distance));
} else {
Expand Down

0 comments on commit b52430c

Please sign in to comment.