Skip to content

Commit b219999

Browse files
committed
refactor: renaming
1 parent 4cdee54 commit b219999

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ execute_process(
2626
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
2727
find_package(pybind11 CONFIG REQUIRED)
2828

29-
pybind11_add_module(_${PROJECT_NAME} endstone_papi/_papi.cpp)
29+
pybind11_add_module(_${PROJECT_NAME} endstone_papi/pypapi.cpp)
3030
target_include_directories(_${PROJECT_NAME} PRIVATE include)
3131
target_link_libraries(_${PROJECT_NAME} PRIVATE endstone::endstone)
3232
install(TARGETS _papi DESTINATION "endstone_papi" COMPONENT python)

endstone_papi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ._service import PlaceholderAPI
2-
from ._plugin import PlaceholderAPIPlugin
1+
from .pypapi import PlaceholderAPI
2+
from .plugin import PlaceholderAPIPlugin
33

44
__all__ = ["PlaceholderAPI", "PlaceholderAPIPlugin"]
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
from endstone.plugin import Plugin, ServicePriority
22

3-
from ._service import PlaceholderAPI
3+
from .pypapi import PlaceholderAPI
44

55

66
class PlaceholderAPIPlugin(Plugin):
77
api_version = "0.6"
88

9+
commands = {
10+
11+
}
12+
913
def __init__(self):
1014
super().__init__()
1115
self._api = PlaceholderAPI()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from typing import Callable
44
from endstone.plugin import Plugin
5-
from ._papi import PlaceholderAPI as _PlaceholderAPI
5+
from .pypapi import PlaceholderAPI as _PlaceholderAPI
66
from endstone import Player
7-
from ._chars_replacer import apply
7+
from .chars_replacer import apply
88

99

1010
class PlaceholderAPI(_PlaceholderAPI):

0 commit comments

Comments
 (0)