We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I define a function, like so: /js var yeet = function () { console.log('yeet'); };
/js var yeet = function () { console.log('yeet'); };
And type the variable into the JS command: /js yeet
/js yeet
The expected output should be to display the function code. However, nothing happens. In the console, an error appears:
[14:05:49 INFO]: harrix432 issued server command: /js var yeet = function () { console.log('yeet'); }; [14:05:52 INFO]: harrix432 issued server command: /js yeet [14:05:52 ERROR]: [scriptcraft] Error while trying to display result: function () { console.log('yeet'); }, Error: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String), (net.md_5.bungee.api.chat.BaseComponent)] of the method org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer.sendMessage for argument types [jdk.nashorn.internal.runtime.ScriptFunction]
Looks like the player.sendMessage() has changed in some way that breaks this.
player.sendMessage()
The text was updated successfully, but these errors were encountered:
You need to do /js yeet.toString()
/js yeet.toString()
Sorry, something went wrong.
No branches or pull requests
If I define a function, like so:
/js var yeet = function () { console.log('yeet'); };
And type the variable into the JS command:
/js yeet
The expected output should be to display the function code. However, nothing happens.
In the console, an error appears:
Looks like the
player.sendMessage()
has changed in some way that breaks this.The text was updated successfully, but these errors were encountered: