Rename and clean up MapleCharacter

This commit is contained in:
P0nk
2021-09-09 21:09:45 +02:00
parent 46bd0570d7
commit 7dc3a2159a
379 changed files with 3418 additions and 3373 deletions

View File

@@ -47,8 +47,8 @@ function action(mode, type, selection) {
} else if(status == 2) {
var text = cm.getText();
const MapleCharacter = Java.type('client.MapleCharacter');
var canCreate = MapleCharacter.canCreateChar(text);
const Character = Java.type('client.Character');
var canCreate = Character.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);