Skip to content

Commit 4327337

Browse files
committed
refactor: use prefix for logger name
1 parent 1b6a192 commit 4327337

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

include/example_listener.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#pragma once
44

5-
#include "endstone/event/server/server_load_event.h"
6-
#include "endstone/plugin/plugin.h"
5+
#include <endstone/event/server/server_load_event.h>
6+
#include <endstone/plugin/plugin.h>
77

88
class ExampleListener {
99
public:

include/example_plugin.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (c) 2024, The Endstone Project. (https://endstone.dev) All Rights Reserved.
22

3-
#include "endstone/color_format.h"
4-
#include "endstone/command/plugin_command.h"
5-
#include "endstone/event/server/server_command_event.h"
6-
#include "endstone/event/server/server_load_event.h"
7-
#include "endstone/plugin/plugin.h"
83
#include "example_listener.h"
94
#include "fibonacci_command.h"
105

6+
#include <endstone/color_format.h>
7+
#include <endstone/command/plugin_command.h>
8+
#include <endstone/event/server/server_command_event.h>
9+
#include <endstone/event/server/server_load_event.h>
10+
#include <endstone/plugin/plugin.h>
1111
#include <memory>
1212
#include <vector>
1313

include/fibonacci_command.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
#pragma once
44

5-
#include "endstone/command/command.h"
6-
#include "endstone/command/command_executor.h"
7-
5+
#include <endstone/command/command.h>
6+
#include <endstone/command/command_executor.h>
87
#include <string>
98

109
class FibonacciCommandExecutor : public endstone::CommandExecutor {

src/example_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#include "example_plugin.h"
44

55
// The ENDSTONE_PLUGIN macro defines the metadata for the plugin.
6-
ENDSTONE_PLUGIN(/*name=*/"CppExamplePlugin", /*version=*/"0.4.0", /*main_class=*/ExamplePlugin)
6+
ENDSTONE_PLUGIN(/*name=*/"endstone_example_cpp", /*version=*/"0.4.0", /*main_class=*/ExamplePlugin)
77
{
8+
prefix = "CppExamplePlugin";
89
description = "C++ example plugin for Endstone servers";
910
website = "https://github.com/EndstoneMC/cpp-example-plugin";
1011
authors = {"Endstone Developers <hello@endstone.dev>"};

0 commit comments

Comments
 (0)