mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Implemented Janino scripting for player events. via JaninoPlayerScript
This commit is contained in:
1 parent
d835d2acb0
commit
7050e9b7d4
2 files changed
+275
No files matched your search
@@ -15,6 +15,7 @@ import noppes.npcs.constants.EnumScriptType;
|
||||
import noppes.npcs.constants.ScriptContext;
|
||||
import noppes.npcs.controllers.ScriptContainer;
|
||||
import noppes.npcs.controllers.ScriptController;
|
||||
import noppes.npcs.janino.impl.JaninoPlayerScript;
|
||||
import noppes.npcs.scripted.NpcAPI;
|
||||
import noppes.npcs.scripted.event.player.PlayerEvent;
|
||||
|
||||
@@ -427,4 +428,9 @@ public class PlayerDataScript implements IScriptHandlerPacket {
|
||||
public static PlayerDataScript.ToStringHelper toStringHelper(Object self) {
|
||||
return new PlayerDataScript.ToStringHelper(self.getClass().getSimpleName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public IScriptUnit createJaninoScriptUnit() {
|
||||
return new JaninoPlayerScript();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user