If I put ['sendMessage(org.spongepowered.api.text.TextTemplate)'](org.spongepowered.api.text.TextTemplate.of()); it gives Cannot cast org.spongepowered.api.text.TextTemplate to org.spongepowered.api.text.TextTemplate
Is this project deprecated?
I've never used sponge so idk
I gotta production server on the latest version of spigot using ScriptCraft
Totally works fine
Well, that's why I'm trying to port to sponge :D
I think I shall try reflect, that may works
The project certainly isn't deprecated. This one channel isn't actively watched by many people. For this project, at the moment, IM isn't the main comms method, we're using asynchronous media like the Google Group, Facebook, Twitter, and now a YouTube channel. (Please Like+Subscribe). At some point more people will be here. For now I suggest the question on casting isn't specific to this project, it's a question that is answered in Rhino/Nashorn docs/forums. HTH
And a new website is being built with a LOT of features, for educators, parents, people learning JS, plugin developers, and ScriptCraftJS core contributors. This project is definitely moving forward. Stick with it.
@TonyGravagno Also I'd really look forward to a more serious aspect of ScriptCraft. I'm plenty familiar was JS and Java, but I feel like JS really makes coding go faster. Anyway, I'm trying to work on a server written purely in SC and it's been going well... just wish more people were able to use it seriously in addition to being an education tool!