From e99fa9e0c949a57c900a08778a21a723b52ba11e Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Wed, 17 Jun 2020 14:22:34 +0200 Subject: [PATCH] convert all tabs to spaces --- scripting/EventHandlers.sp | 4 ++-- scripting/IngameMessages.sp | 10 +++++----- scripting/Skillbird.sp | 20 ++++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/scripting/EventHandlers.sp b/scripting/EventHandlers.sp index 3128259..3ef8211 100644 --- a/scripting/EventHandlers.sp +++ b/scripting/EventHandlers.sp @@ -20,10 +20,10 @@ public Action:Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadca public Action:Event_PlayerDisconnect(Handle:event, const String:name[], bool:dontBroadcast){ SubmittEventActiveClients(); - return Plugin_Continue; + return Plugin_Continue; } public Action:Event_PlayerChangedTeam(Handle:event, const String:name[], bool:dontBroadcast){ SubmittEventActiveClients(); - return Plugin_Continue; + return Plugin_Continue; } diff --git a/scripting/IngameMessages.sp b/scripting/IngameMessages.sp index bb2559b..e9f55e6 100644 --- a/scripting/IngameMessages.sp +++ b/scripting/IngameMessages.sp @@ -10,16 +10,16 @@ public void PrintHttpResponse(bool success, const char[] error, System2HTTPRequest request, System2HTTPResponse response, HTTPRequestMethod method) { if (success) { - if(response.StatusCode == 204 || response.StatusCode == 200){ + if(response.StatusCode == 204 || response.StatusCode == 200){ char[] content = new char[response.ContentLength + 1]; response.GetContent(content, response.ContentLength + 1); PrintToChatAll("%s", content); - }else if(response.StatusCode == 404){ + }else if(response.StatusCode == 404){ PrintToChatAll("skillbird:error:player_not_in_db"); - }else{ + }else{ PrintToChatAll("skillbird:error:scheduled_downtime:database_backup"); - } - } else { + } + }else{ PrintToChatAll("skillbird:error: backend unavailiable"); } } diff --git a/scripting/Skillbird.sp b/scripting/Skillbird.sp index 6154677..91ef310 100644 --- a/scripting/Skillbird.sp +++ b/scripting/Skillbird.sp @@ -13,28 +13,28 @@ /* ---------------------- Plugin ---------------------- */ public Plugin:myinfo = { - name = "Skillbird", - author = "FAUSheppy", - description = "Module to interact with the skillbird framework", - version = "3.0", - url = "https://github.com/FAUSheppy/skillbird-sourcemod" + name = "Skillbird", + author = "FAUSheppy", + description = "Module to interact with the skillbird framework", + version = "3.0", + url = "https://github.com/FAUSheppy/skillbird-sourcemod" }; public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max){ - return APLRes_Success; + return APLRes_Success; } public OnPluginStart(){ /* Hook Events */ - HookEvent("round_end", Event_RoundEnd); - HookEvent("player_team", Event_PlayerChangedTeam); - HookEvent("player_disconnect", Event_PlayerDisconnect); + HookEvent("round_end", Event_RoundEnd); + HookEvent("player_team", Event_PlayerChangedTeam); + HookEvent("player_disconnect", Event_PlayerDisconnect); CreateConVar(VAR_SESSION_ID, "0", "Session in for this round"); CreateConVar(VAR_TARGET_PORT, "6200", "Skillbird backend target port", FCVAR_PROTECTED); - RegConsoleCmd("rating", CommandRating); + RegConsoleCmd("rating", CommandRating); } public OnClientAuthorized(client, const String:auth[]){