Skip to content

Commit

Permalink
refactor: refactor Tpr
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Oct 25, 2024
1 parent 623e486 commit 00ce339
Show file tree
Hide file tree
Showing 8 changed files with 373 additions and 543 deletions.
7 changes: 3 additions & 4 deletions src/command/Command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "permission/Permission.h"
#include "pr/PrForm.h"
#include "rule/RuleForm.h"
#include "tpr/TprManager.h"
#include "tpr/TprModule.h"


namespace tps::command {
Expand Down Expand Up @@ -87,13 +87,12 @@ bool registerCommands() {
cmd.overload().text("tpr").execute([](CommandOrigin const& origin, CommandOutput& output) {
CHECK_COMMAND_TYPE(output, origin, CommandOriginType::Player);
Player& player = *static_cast<Player*>(origin.getEntity());
auto& tprMgr = tpr::TprManager::getInstance();
tprMgr.showTprMenu(player);
tpr::TprModule::getInstance().showTprMenu(player);
});


// Register All Commands
string name = Config::cfg.Command.Command;
string const& name = Config::cfg.Command.Command;
registerCommandWithLevelDB(name);
if (Config::cfg.Home.Enable) registerCommandWithHome(name);
if (Config::cfg.Warp.Enable) registerCommandWithWarp(name);
Expand Down
42 changes: 0 additions & 42 deletions src/tpr/Mermaid.md

This file was deleted.

269 changes: 0 additions & 269 deletions src/tpr/TprManager.cc

This file was deleted.

55 changes: 0 additions & 55 deletions src/tpr/TprManager.h

This file was deleted.

Loading

0 comments on commit 00ce339

Please sign in to comment.