Skip to content

Commit deb444c

Browse files
committed
Slight cleanup
1 parent 8cdc09d commit deb444c

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

CustomItems-LabAPI/Core/Commands/CustomItemCommand.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
3131
{
3232
response = this.DisplayCommandUsage() + "\n";
3333
foreach (CustomItem customItem in API.CustomItems.AllItems)
34-
{
3534
response += $"Name: {customItem.Name} | Id: {customItem.Id}\n";
36-
}
3735
return false;
3836
}
3937

@@ -77,9 +75,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
7775
case "all":
7876
var eligiblePlayers = Player.List.Where(CheckEligible).ToList();
7977
foreach (var ply in eligiblePlayers)
80-
{
8178
API.CustomItems.TryGive(id, ply, out _);
82-
}
8379
response = $"{item.Name} given to all players who can receive them ({eligiblePlayers.Count} players)";
8480
return true;
8581
default:

CustomItems-LabAPI/Core/EventHandler.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public override void OnServerWaitingForPlayers()
2525
}
2626
}
2727

28-
29-
3028
private bool Check(ushort serial)
3129
{
3230
return API.CustomItems.CurrentItems.ContainsKey(serial);

CustomItems-LabAPI/Core/Log.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ public static void Debug(object message)
2020
{
2121
Assembly callingAssembly = Assembly.GetCallingAssembly();
2222
if (CustomItemsPlugin.Instance.Config.Debug)
23-
{
2423
Send($"[{callingAssembly.GetName().Name}] {message}", LogLevel.Debug, ConsoleColor.Green);
25-
}
2624
}
2725

2826
public static T DebugObject<T>(T @object)
@@ -35,9 +33,7 @@ public static void Debug(string message)
3533
{
3634
Assembly callingAssembly = Assembly.GetCallingAssembly();
3735
if (CustomItemsPlugin.Instance.Config.Debug)
38-
{
3936
Send("[" + callingAssembly.GetName().Name + "] " + message, LogLevel.Debug, ConsoleColor.Green);
40-
}
4137
}
4238

4339
public static void Warn(object message)
@@ -83,9 +79,7 @@ public static void SendRaw(string message, ConsoleColor color)
8379
public static void Assert(bool condition, object message)
8480
{
8581
if (condition)
86-
{
8782
return;
88-
}
8983
Error(message);
9084
throw new Exception(message.ToString());
9185
}

CustomItems-LabAPI/CustomItemsPlugin.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ public override void Enable()
4949

5050
harmony.PatchAll();
5151
foreach (var a in harmony.GetPatchedMethods())
52-
{
5352
Log.Debug("Patched: " + a.Name);
54-
}
5553

5654
CustomHandlersManager.RegisterEventsHandler(Events);
5755

0 commit comments

Comments
 (0)