mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 21:09:40 +00:00
Removed default imports for server event janino scripts
This commit is contained in:
1 parent
7050e9b7d4
commit
e2ca76e626
2 files changed
+3
-25
No files matched your search
@@ -14,19 +14,8 @@ import noppes.npcs.janino.annotations.ScriptHook;
|
||||
*/
|
||||
public class JaninoNpcScript extends JaninoScript<JaninoNpcScript.Functions> {
|
||||
|
||||
/** Default imports available to NPC scripts without explicit import statements. */
|
||||
public static final String[] DEFAULT_IMPORTS = {
|
||||
"noppes.npcs.api.*",
|
||||
"noppes.npcs.api.entity.*",
|
||||
"noppes.npcs.api.event.*",
|
||||
"noppes.npcs.api.handler.*",
|
||||
"noppes.npcs.api.handler.data.*",
|
||||
"noppes.npcs.api.item.*",
|
||||
"noppes.npcs.api.ability.*"
|
||||
};
|
||||
|
||||
public JaninoNpcScript() {
|
||||
super(Functions.class, DEFAULT_IMPORTS);
|
||||
super(Functions.class, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,20 +17,9 @@ import noppes.npcs.janino.annotations.ScriptHook;
|
||||
* Janino (Java) script implementation for player events.
|
||||
*/
|
||||
public class JaninoPlayerScript extends JaninoScript<JaninoPlayerScript.Functions> {
|
||||
|
||||
/** Default imports available to player scripts without explicit import statements. */
|
||||
public static final String[] DEFAULT_IMPORTS = {
|
||||
"noppes.npcs.api.*",
|
||||
"noppes.npcs.api.entity.*",
|
||||
"noppes.npcs.api.event.*",
|
||||
"noppes.npcs.api.handler.*",
|
||||
"noppes.npcs.api.handler.data.*",
|
||||
"noppes.npcs.api.item.*",
|
||||
"noppes.npcs.api.gui.*"
|
||||
};
|
||||
|
||||
|
||||
public JaninoPlayerScript() {
|
||||
super(Functions.class, DEFAULT_IMPORTS);
|
||||
super(Functions.class, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user