File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ execute_process(
2626find_package (Python COMPONENTS Interpreter Development.Module REQUIRED)
2727find_package (pybind11 CONFIG REQUIRED)
2828
29- pybind11_add_module(_${PROJECT_NAME} endstone_papi/pypapi .cpp)
29+ pybind11_add_module(_${PROJECT_NAME} endstone_papi/_papi .cpp)
3030target_include_directories (_${PROJECT_NAME} PRIVATE include )
3131target_link_libraries (_${PROJECT_NAME} PRIVATE endstone::endstone)
32- install (TARGETS _papi DESTINATION "endstone_papi" COMPONENT python)
32+ install (TARGETS _ ${PROJECT_NAME} DESTINATION "endstone_papi" COMPONENT python)
3333install (DIRECTORY include / DESTINATION "endstone_papi/include" COMPONENT python)
3434
3535add_subdirectory (examples/cpp)
Original file line number Diff line number Diff line change 1- from .pypapi import PlaceholderAPI
1+ from .papi import PlaceholderAPI
22from .plugin import PlaceholderAPIPlugin
33
44__all__ = ["PlaceholderAPI" , "PlaceholderAPIPlugin" ]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 33
44from typing import Callable
55from endstone .plugin import Plugin
6- from .pypapi import PlaceholderAPI
6+ from ._papi import PlaceholderAPI as IPlaceholderAPI
77from endstone import Player
88from .chars_replacer import apply
99
1010
11- class PyPlaceholderAPI ( PlaceholderAPI ):
11+ class PlaceholderAPI ( IPlaceholderAPI ):
1212 def __init__ (self , plugin : Plugin ):
13- PlaceholderAPI .__init__ (self )
13+ IPlaceholderAPI .__init__ (self )
1414 self ._plugin = plugin
1515 self ._registry = {}
1616 self ._placeholder_pattern = re .compile (r"[{]([^{}]+)[}]" )
You can’t perform that action at this time.
0 commit comments