From 5dd3da8e4413f12405317bd66062a3f9550e572f Mon Sep 17 00:00:00 2001 From: wizzymore Date: Sat, 21 Dec 2019 05:36:50 +0200 Subject: [PATCH] Fixing indentation --- conf/conf.sh.dist | 6 +++--- include.sh | 10 +++++----- src/reward_system.cpp | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/conf/conf.sh.dist b/conf/conf.sh.dist index 89a53ac..9aa52c8 100644 --- a/conf/conf.sh.dist +++ b/conf/conf.sh.dist @@ -4,6 +4,6 @@ # CUSTOM # - DB_CHARACTERS_CUSTOM_PATHS+=( - $MOD_REWARD_SYSTEM_ROOT"/sql/characters/" - ) \ No newline at end of file +DB_CHARACTERS_CUSTOM_PATHS+=( + $MOD_REWARD_SYSTEM_ROOT"/sql/characters/" +) \ No newline at end of file diff --git a/include.sh b/include.sh index 0548f2a..ae76fed 100644 --- a/include.sh +++ b/include.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash - MOD_REWARD_SYSTEM_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )" +MOD_REWARD_SYSTEM_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )" - source $MOD_REWARD_SYSTEM_ROOT"/conf/conf.sh.dist" +source $MOD_REWARD_SYSTEM_ROOT"/conf/conf.sh.dist" - if [ -f $MOD_REWARD_SYSTEM_ROOT"/conf/conf.sh" ]; then - source $MOD_REWARD_SYSTEM_ROOT"/conf/conf.sh" - fi +if [ -f $MOD_REWARD_SYSTEM_ROOT"/conf/conf.sh" ]; then + source $MOD_REWARD_SYSTEM_ROOT"/conf/conf.sh" +fi diff --git a/src/reward_system.cpp b/src/reward_system.cpp index 0056c9b..9f272b9 100644 --- a/src/reward_system.cpp +++ b/src/reward_system.cpp @@ -20,11 +20,11 @@ public: int32 roll; void OnLogin(Player* player) override - { - if (sConfigMgr->GetBoolDefault("RewardSystem.Announce", true)) { - ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00Reward Time Played |rmodule."); - } - } + { + if (sConfigMgr->GetBoolDefault("RewardSystem.Announce", true)) { + ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00Reward Time Played |rmodule."); + } + } void OnBeforeUpdate(Player* player, uint32 p_time) override { @@ -96,4 +96,4 @@ void AddRewardSystemScripts() { new reward_system(); new reward_system_conf(); -} \ No newline at end of file +}