24 lines
546 B
C++
24 lines
546 B
C++
![]() |
#include "default_command_context.hpp"
|
||
|
|
||
|
namespace big
|
||
|
{
|
||
|
player_ptr default_command_context::get_sender() const
|
||
|
{
|
||
|
return g_player_service->get_self();
|
||
|
}
|
||
|
|
||
|
CommandAccessLevel default_command_context::get_access_level() const
|
||
|
{
|
||
|
return CommandAccessLevel::ADMIN;
|
||
|
}
|
||
|
|
||
|
void default_command_context::report_output(const std::string& output) const
|
||
|
{
|
||
|
g_notification_service->push("Command", output);
|
||
|
}
|
||
|
|
||
|
void default_command_context::report_error(const std::string& error) const
|
||
|
{
|
||
|
g_notification_service->push_error("Command", error);
|
||
|
}
|
||
|
}
|