Skip to content

Commit b52430c

Browse files
Replace tabs to spaces everywhere
1 parent 772862f commit b52430c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1337
-1337
lines changed

fCraft/AutoRank/AutoRankManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ internal static void DoAutoRankAll( [NotNull] Player player, [NotNull] PlayerInf
9494
return;
9595
}
9696

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

9999
Stopwatch sw = Stopwatch.StartNew();
100100
int promoted = 0, demoted = 0;
@@ -114,7 +114,7 @@ internal static void DoAutoRankAll( [NotNull] Player player, [NotNull] PlayerInf
114114
}
115115
}
116116
sw.Stop();
117-
Logger.Log(LogType.Debug, "AutoRankAll: Worked for {0}ms, {1} players promoted, {2} demoted.", sw.ElapsedMilliseconds, promoted, demoted);
117+
Logger.Log(LogType.Debug, "AutoRankAll: Worked for {0}ms, {1} players promoted, {2} demoted.", sw.ElapsedMilliseconds, promoted, demoted);
118118
}
119119
}
120120

fCraft/Commands/ChatCommands.cs

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private static void AFKHandler(Player player, CommandReader cmd) {
305305
static void IgnoreHandler(Player player, CommandReader cmd) {
306306
string name = cmd.Next();
307307
if (!string.IsNullOrEmpty(name)) {
308-
if (name.CaselessEquals("irc")) {
308+
if (name.CaselessEquals("irc")) {
309309
if (player.Info.ReadIRC) {
310310
player.Info.ReadIRC = false;
311311
player.Message("You are now ignoring &IIRC");
@@ -364,7 +364,7 @@ static void IgnoreHandler(Player player, CommandReader cmd) {
364364
static void UnignoreHandler(Player player, CommandReader cmd) {
365365
string name = cmd.Next();
366366
if (!string.IsNullOrEmpty(name)) {
367-
if (name.CaselessEquals("irc")) {
367+
if (name.CaselessEquals("irc")) {
368368
if (!player.Info.ReadIRC) {
369369
player.Info.ReadIRC = true;
370370
player.Message("You are no longer ignoring &IIRC");
@@ -635,13 +635,13 @@ private static void reportHandler(Player player, CommandReader cmd) {
635635
if (cmd.IsConfirmed) {
636636
rCreate.AddReport(getNewReportId(), player.Name, DateTime.Now, message);
637637
player.Message("Report sent!");
638-
foreach (Player p in Server.Players.Where(q => q.Info.Rank == RankManager.HighestRank)) {
639-
if (p.Supports(CpeExt.MessageType)) {
640-
p.Send(Packet.Message((byte)MessageType.Announcement,
641-
String.Format("Player {0} has sent in a report!", player.Name), player));
642-
}
643-
p.Message("Player {0} has sent in a report!", player.Name);
644-
}
638+
foreach (Player p in Server.Players.Where(q => q.Info.Rank == RankManager.HighestRank)) {
639+
if (p.Supports(CpeExt.MessageType)) {
640+
p.Send(Packet.Message((byte)MessageType.Announcement,
641+
String.Format("Player {0} has sent in a report!", player.Name), player));
642+
}
643+
p.Message("Player {0} has sent in a report!", player.Name);
644+
}
645645
return;
646646
}
647647
if (message.Length < 1) {
@@ -699,8 +699,8 @@ private static void ReportsHandler(Player player, CommandReader cmd) {
699699
}
700700
break;
701701
case "read":
702-
case "open":
703-
case "view":
702+
case "open":
703+
case "view":
704704
bool read = false;
705705
if (cmd.NextInt(out reportId)) {
706706
foreach (Report r in Report.Reports) {
@@ -1067,32 +1067,32 @@ static void QuitHandler(Player player, CommandReader cmd) {
10671067
Handler = RBChatHandler
10681068
};
10691069

1070-
static void RBChatHandler(Player player, CommandReader cmd) {
1071-
string s = cmd.Next();
1072-
if (s != null && s.CaselessEquals("bw")) {
1073-
if (player.ChatBWRainbows) {
1074-
player.ChatRainbows = false;
1075-
player.ChatBWRainbows = false;
1076-
player.Message("BWRainbow Chat: &4Off");
1077-
player.Message("Your messages will now show up normally.");
1078-
} else {
1079-
player.ChatBWRainbows = true;
1080-
player.ChatRainbows = false;
1081-
player.Message("BWRainbow Chat: &2On");
1082-
player.Message("Your messages will now show up as &0R&8A&7I&fN&7B&8O&0W&8S&7!&f.");
1083-
}
1084-
} else if (player.ChatRainbows) {
1085-
player.ChatRainbows = false;
1086-
player.ChatBWRainbows = false;
1087-
player.Message("Rainbow Chat: &4Off");
1088-
player.Message("Your messages will now show up normally.");
1089-
} else {
1090-
player.ChatRainbows = true;
1091-
player.ChatBWRainbows = false;
1092-
player.Message("Rainbow Chat: &2On");
1093-
player.Message("Your messages will now show up as &cR&4A&6I&eN&aB&2O&bW&3S&9!&S.");
1094-
}
1095-
}
1070+
static void RBChatHandler(Player player, CommandReader cmd) {
1071+
string s = cmd.Next();
1072+
if (s != null && s.CaselessEquals("bw")) {
1073+
if (player.ChatBWRainbows) {
1074+
player.ChatRainbows = false;
1075+
player.ChatBWRainbows = false;
1076+
player.Message("BWRainbow Chat: &4Off");
1077+
player.Message("Your messages will now show up normally.");
1078+
} else {
1079+
player.ChatBWRainbows = true;
1080+
player.ChatRainbows = false;
1081+
player.Message("BWRainbow Chat: &2On");
1082+
player.Message("Your messages will now show up as &0R&8A&7I&fN&7B&8O&0W&8S&7!&f.");
1083+
}
1084+
} else if (player.ChatRainbows) {
1085+
player.ChatRainbows = false;
1086+
player.ChatBWRainbows = false;
1087+
player.Message("Rainbow Chat: &4Off");
1088+
player.Message("Your messages will now show up normally.");
1089+
} else {
1090+
player.ChatRainbows = true;
1091+
player.ChatBWRainbows = false;
1092+
player.Message("Rainbow Chat: &2On");
1093+
player.Message("Your messages will now show up as &cR&4A&6I&eN&aB&2O&bW&3S&9!&S.");
1094+
}
1095+
}
10961096
#endregion
10971097
#region Greet
10981098

@@ -1101,7 +1101,7 @@ static void RBChatHandler(Player player, CommandReader cmd) {
11011101
Name = "Greet",
11021102
Aliases = new[] { "greeting", "welcome" },
11031103
Permissions = new[] { Permission.Chat },
1104-
IsConsoleSafe = true,
1104+
IsConsoleSafe = true,
11051105
Category = CommandCategory.New | CommandCategory.Chat,
11061106
Help = "Sends a message welcoming the last player to join the server.",
11071107
Handler = greetHandler
@@ -1311,8 +1311,8 @@ private static void WarningHandler(Player player, CommandReader cmd) {
13111311
string name = cmd.Next();
13121312
string reason = cmd.NextAll().Trim();
13131313
if (name == null || reason == "") {
1314-
CdWarn.PrintUsage(player);
1315-
return;
1314+
CdWarn.PrintUsage(player);
1315+
return;
13161316
}
13171317

13181318
Player target = Server.FindPlayerOrPrintMatches(player, name, SearchOptions.ReturnSelfIfOnlyMatch);
@@ -1322,10 +1322,10 @@ private static void WarningHandler(Player player, CommandReader cmd) {
13221322
player.Message("You cannot &H/Warn&S yourself."); return;
13231323
} else if (cmd.IsConfirmed) {
13241324
Server.Players.Message("{0} &chas warned {1}&c: &4{2}",
1325-
player.ClassyName, target.ClassyName, reason);
1325+
player.ClassyName, target.ClassyName, reason);
13261326
} else {
13271327
player.Confirm(cmd, "Your warning will display as: \"{0} &chas warned {1}&c: &4{2}\"",
1328-
player.ClassyName, target.ClassyName, reason);
1328+
player.ClassyName, target.ClassyName, reason);
13291329
}
13301330
}
13311331

fCraft/Commands/CommandManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ public static bool ParseCommand([NotNull] Player player, [NotNull] CommandReader
239239
}
240240
else
241241
{
242-
if (descriptor.MinRank != RankManager.LowestRank && !player.Info.ClassicubeVerified) {
243-
player.Message("As you had an older minecraft.net account, you must have an admin verify your " +
244-
"new classicube.net account actually is you with /verify before you can use non-guest commands.");
245-
return false;
246-
}
242+
if (descriptor.MinRank != RankManager.LowestRank && !player.Info.ClassicubeVerified) {
243+
player.Message("As you had an older minecraft.net account, you must have an admin verify your " +
244+
"new classicube.net account actually is you with /verify before you can use non-guest commands.");
245+
return false;
246+
}
247247
if (descriptor.Permissions != null)
248248
{
249249
if (!descriptor.CanBeCalledBy(player.Info.Rank))

fCraft/Commands/CpeCommands.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ static void ClickDistanceHandler(Player player, CommandReader cmd) {
494494
return;
495495
} else {
496496
distance = 160;
497-
}
497+
}
498498
}
499499
if (distance < 0 || distance > 32767) {
500500
player.Message("Reach distance must be between 0 and 32767");
@@ -513,9 +513,9 @@ static void ClickDistanceHandler(Player player, CommandReader cmd) {
513513
if (player != target) {
514514
if (target.Supports(CpeExt.ClickDistance)) {
515515
target.Message("{0} set your reach distance from {1} to {2} blocks [Units: {3}]",
516-
player.Name, target.Info.ReachDistance / 32, distance / 32, distance);
516+
player.Name, target.Info.ReachDistance / 32, distance / 32, distance);
517517
player.Message("Set reach distance for {0} from {1} to {2} blocks [Units: {3}]",
518-
target.Name, target.Info.ReachDistance / 32, distance / 32, distance);
518+
target.Name, target.Info.ReachDistance / 32, distance / 32, distance);
519519
target.Info.ReachDistance = distance;
520520
target.Send(Packet.MakeSetClickDistance(distance));
521521
} else {
@@ -524,7 +524,7 @@ static void ClickDistanceHandler(Player player, CommandReader cmd) {
524524
} else {
525525
if (player.Supports(CpeExt.ClickDistance)) {
526526
player.Message("Set own reach distance from {0} to {1} blocks [Units: {2}]",
527-
player.Info.ReachDistance / 32, distance / 32, distance);
527+
player.Info.ReachDistance / 32, distance / 32, distance);
528528
player.Info.ReachDistance = distance;
529529
player.Send(Packet.MakeSetClickDistance(distance));
530530
} else {

0 commit comments

Comments
 (0)