Skip to content

Commit 5277893

Browse files
authored
Merge pull request #3 from EndstoneMC/dev
feat: update plugin template to v0.6.0
2 parents 5e1339e + 1c19f99 commit 5277893

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ include(FetchContent)
99
FetchContent_Declare(
1010
endstone
1111
GIT_REPOSITORY https://github.com/EndstoneMC/endstone.git
12-
GIT_TAG v0.5.5 # TODO: CHANGE ME to the actual version you are using
12+
GIT_TAG main # TODO: CHANGE ME to the actual version you are using
1313
)
1414
FetchContent_MakeAvailable(endstone)
1515

1616
endstone_add_plugin(${PROJECT_NAME} src/example_plugin.cpp)
17+
target_include_directories(${PROJECT_NAME} PRIVATE include)

include/example_listener.h

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

33
#pragma once
44

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

87
class ExampleListener {
98
public:

include/example_plugin.h

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

3+
#pragma once
4+
35
#include "example_listener.h"
46
#include "fibonacci_command.h"
57

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>
8+
#include <endstone/endstone.hpp>
119
#include <memory>
1210
#include <vector>
1311

include/fibonacci_command.h

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

33
#pragma once
44

5-
#include <endstone/command/command.h>
6-
#include <endstone/command/command_executor.h>
5+
#include <endstone/endstone.hpp>
76
#include <string>
87

98
class FibonacciCommandExecutor : public endstone::CommandExecutor {

0 commit comments

Comments
 (0)