Skip to content

Commit

Permalink
feat: update plugin template to v0.6.0 (pre-release)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jan 12, 2025
1 parent 5e1339e commit 1c19f99
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ include(FetchContent)
FetchContent_Declare(
endstone
GIT_REPOSITORY https://github.com/EndstoneMC/endstone.git
GIT_TAG v0.5.5 # TODO: CHANGE ME to the actual version you are using
GIT_TAG main # TODO: CHANGE ME to the actual version you are using
)
FetchContent_MakeAvailable(endstone)

endstone_add_plugin(${PROJECT_NAME} src/example_plugin.cpp)
target_include_directories(${PROJECT_NAME} PRIVATE include)
3 changes: 1 addition & 2 deletions include/example_listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

#pragma once

#include <endstone/event/server/server_load_event.h>
#include <endstone/plugin/plugin.h>
#include <endstone/endstone.hpp>

class ExampleListener {
public:
Expand Down
8 changes: 3 additions & 5 deletions include/example_plugin.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2024, The Endstone Project. (https://endstone.dev) All Rights Reserved.

#pragma once

#include "example_listener.h"
#include "fibonacci_command.h"

#include <endstone/color_format.h>
#include <endstone/command/plugin_command.h>
#include <endstone/event/server/server_command_event.h>
#include <endstone/event/server/server_load_event.h>
#include <endstone/plugin/plugin.h>
#include <endstone/endstone.hpp>
#include <memory>
#include <vector>

Expand Down
3 changes: 1 addition & 2 deletions include/fibonacci_command.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

#pragma once

#include <endstone/command/command.h>
#include <endstone/command/command_executor.h>
#include <endstone/endstone.hpp>
#include <string>

class FibonacciCommandExecutor : public endstone::CommandExecutor {
Expand Down

0 comments on commit 1c19f99

Please sign in to comment.