This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
nery
hi, I ask for help to friends.
wanted to make a .test type command they had a way of putting type htm, but it was in own code and not in normal files as test.htm wanted within the own code.
public class Test implements IVoicedCommandHandler { private String[] _commandList = new String[] { "test" }; @Override public boolean useVoicedCommand(String command, Player activeChar, String target) { if (command.equals("test")) { HERE DID NOT WANT FOR HTM, I WANTED BY FIXED CODE } return true; } @Override public String[] getVoicedCommandList() { return _commandList; } }Ex:
npcHtmlMessage.setHtml("<html><title>Exemple</title><body><center></center></body></html>"); ? ? ?
or
text = "<html><body>" + text + "</body></html>";
Edited by nery5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now