mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 15:00:52 +01:00
Fix mannequin name
This commit is contained in:
parent
890cdd519a
commit
ab5c491aa5
@ -84,4 +84,7 @@ INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('commands.description.cmd_
|
||||
INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('commands.success.cmd_update_calendar', 'Calendar updated successfully!');
|
||||
|
||||
-- add moodlight configuration
|
||||
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('moodlight.color_check.enabled', '1');
|
||||
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('moodlight.color_check.enabled', '1');
|
||||
|
||||
-- Mannequin name
|
||||
INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('hotel.mannequin.name.default', 'My look');
|
@ -18,6 +18,11 @@ public class MannequinSaveNameEvent extends MessageHandler {
|
||||
|
||||
String[] data = item.getExtradata().split(":");
|
||||
String name = this.packet.readString();
|
||||
|
||||
if (name.length() < 3 || name.length() > 15) {
|
||||
name = Emulator.getTexts().getValue("hotel.mannequin.name.default", "My look");
|
||||
}
|
||||
|
||||
if (data.length == 3) {
|
||||
item.setExtradata(this.client.getHabbo().getHabboInfo().getGender().name().toUpperCase() + ":" + data[1] + ":" + name);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user