fix: fix missing js-lib
This commit is contained in:
@@ -8,9 +8,7 @@ const PAPIunRegisterPlaceholderAPI = ll.import("BEPlaceholderAPI", "unRegisterPl
|
||||
const PAPIgetAllPAPI = ll.import("BEPlaceholderAPI", "getAllPAPI")
|
||||
|
||||
Function.prototype.getName = function () {
|
||||
|
||||
return this.name || this.toString().match(/function\s*([^(]*)\(/)[1]
|
||||
|
||||
}
|
||||
|
||||
class PAPI {
|
||||
@@ -19,7 +17,6 @@ class PAPI {
|
||||
}
|
||||
|
||||
static registerPlayerPlaceholder(func, PluginName, PAPIName) {
|
||||
|
||||
ll.export(func, PluginName, func.getName())
|
||||
PAPIregisterPlayerPlaceholderAPI(PluginName, func.getName(), PAPIName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user