Skip to content
Permalink
Browse files

Replace tabs to spaces everywhere

  • Loading branch information...
UnknownShadow200 committed Jun 19, 2017
1 parent 772862f commit b52430c029764748c369c119db0d2961fee4f9de
Showing with 1,337 additions and 1,337 deletions.
  1. +2 −2 fCraft/AutoRank/AutoRankManager.cs
  2. +42 −42 fCraft/Commands/ChatCommands.cs
  3. +5 −5 fCraft/Commands/CommandManager.cs
  4. +4 −4 fCraft/Commands/CpeCommands.cs
  5. +132 −132 fCraft/Commands/InfoCommands.cs
  6. +14 −14 fCraft/Commands/MaintenanceCommands.cs
  7. +255 −255 fCraft/Commands/ModerationCommands.cs
  8. +2 −2 fCraft/Drawing/BlockPalette.cs
  9. +15 −15 fCraft/Drawing/DrawOperation.cs
  10. +2 −2 fCraft/Drawing/DrawOps/DrawImageOperation.cs
  11. +2 −2 fCraft/Drawing/DrawOps/Maze.cs
  12. +4 −4 fCraft/Drawing/DrawOps/OverlayDrawOperation.cs
  13. +6 −6 fCraft/Drawing/Images/ShapesLib.cs
  14. +157 −157 fCraft/Games/CtfGame.BlockHandling.cs
  15. +395 −395 fCraft/Games/CtfGame.cs
  16. +73 −73 fCraft/Games/CtfTeam.cs
  17. +1 −1 fCraft/MapConversion/MapFCMv3.cs
  18. +2 −2 fCraft/MapConversion/MapMCF.cs
  19. +1 −1 fCraft/Network/Heartbeat.cs
  20. +2 −2 fCraft/Network/IRC.cs
  21. +7 −7 fCraft/Network/LineWrapper.cs
  22. +3 −3 fCraft/Network/Packet.CPE.cs
  23. +1 −1 fCraft/Network/PacketReader.cs
  24. +69 −69 fCraft/Player/Chat.cs
  25. +3 −3 fCraft/Player/ChatTimer.cs
  26. +2 −2 fCraft/Player/Player.Events.cs
  27. +30 −30 fCraft/Player/Player.cs
  28. +1 −1 fCraft/Player/PlayerDB.cs
  29. +3 −3 fCraft/Player/PlayerEnumerable.cs
  30. +3 −3 fCraft/Player/PlayerInfo.Actions.cs
  31. +47 −47 fCraft/Player/PlayerInfo.cs
  32. +1 −1 fCraft/System/Logger.cs
  33. +2 −2 fCraft/System/Utils/Color.cs
  34. +19 −19 fCraft/System/Utils/DateTimeUtil.cs
  35. +3 −3 fCraft/System/Utils/ExtensionMethods.cs
  36. +1 −1 fCraft/System/Utils/Paths.cs
  37. +1 −1 fCraft/World/Entities.cs
  38. +1 −1 fCraft/World/Entity.cs
  39. +1 −1 fCraft/World/Map.cs
  40. +1 −1 fCraft/World/World.cs
  41. +21 −21 fCraft/Zone/Zone.cs
  42. +1 −1 fCraft/app.config
@@ -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;
@@ -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);
}
}

@@ -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");
@@ -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");
@@ -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) {
@@ -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) {
@@ -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

@@ -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
@@ -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);
@@ -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);
}
}

@@ -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))
@@ -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");
@@ -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 {
@@ -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 {
Oops, something went wrong.

0 comments on commit b52430c

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