diff --git a/conf/my_custom.conf.dist b/conf/my_custom.conf.dist deleted file mode 100644 index 32a20dd..0000000 --- a/conf/my_custom.conf.dist +++ /dev/null @@ -1,8 +0,0 @@ -[worldserver] - -# -# Enable Hello World message at server start -# default: false -# - -MyCustom.enableHelloWorld=false diff --git a/src/MyPlayer.cpp b/src/MyPlayer.cpp deleted file mode 100644 index 27f1c30..0000000 --- a/src/MyPlayer.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/** - This plugin can be used for common player customizations - */ - -#include "ScriptMgr.h" -#include "Player.h" -#include "Configuration/Config.h" - -class MyPlayer : public PlayerScript{ -public: - - MyPlayer() : PlayerScript("MyPlayer") { } - - void OnLogin(Player* player) override { - if (sConfigMgr->GetBoolDefault("MyCustom.enableHelloWorld", false)) { - ChatHandler(player->GetSession()).SendSysMessage("Hello World from Skeleton-Module!"); - } - } -}; - -void AddMyPlayerScripts() { - new MyPlayer(); -} - diff --git a/src/MyWorld.cpp b/src/MyWorld.cpp deleted file mode 100644 index 53e473c..0000000 --- a/src/MyWorld.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "Configuration/Config.h" -#include "ScriptMgr.h" - -class MyWorld : public WorldScript -{ -public: - MyWorld() : WorldScript("MyWorld") { } - - void OnBeforeConfigLoad(bool reload) override - { - if (!reload) { - std::string conf_path = _CONF_DIR; - std::string cfg_file = conf_path + "/my_custom.conf"; - std::string cfg_def_file = cfg_file +".dist"; - - sConfigMgr->LoadMore(cfg_def_file.c_str()); - - sConfigMgr->LoadMore(cfg_file.c_str()); - } - } -}; - -void AddMyWorldScripts() -{ - new MyWorld(); -} diff --git a/src/cmake/after_ws_install.cmake b/src/cmake/after_ws_install.cmake deleted file mode 100644 index 66e1a53..0000000 --- a/src/cmake/after_ws_install.cmake +++ /dev/null @@ -1,2 +0,0 @@ - -install(FILES "${CMAKE_SOURCE_DIR}/modules/skeleton-module/conf/my_custom.conf.dist" DESTINATION ${CONF_DIR}) diff --git a/src/loader.h b/src/loader.h deleted file mode 100644 index 37b1660..0000000 --- a/src/loader.h +++ /dev/null @@ -1,2 +0,0 @@ -void AddMyWorldScripts(); -void AddMyPlayerScripts();