Convert remaining scripts to Graal
Mainly missed scripts that use Nashorn's "Packages"
This commit is contained in:
@@ -46,7 +46,9 @@ function action(mode, type, selection) {
|
||||
cm.sendGetText("Please input your desired name below.");
|
||||
} else if(status == 2) {
|
||||
var text = cm.getText();
|
||||
var canCreate = Packages.client.MapleCharacter.canCreateChar(text);
|
||||
|
||||
const MapleCharacter = Java.type('client.MapleCharacter');
|
||||
var canCreate = MapleCharacter.canCreateChar(text);
|
||||
if(canCreate) {
|
||||
cm.getPlayer().setName(text);
|
||||
cm.sendOk("Your name has been changed to #b" + text + "#k. You will have to login again for this to take effect.", 1);
|
||||
|
||||
Reference in New Issue
Block a user