mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Add moto length verify (configurable from database)
This commit is contained in:
parent
46c8e9fc62
commit
aabfaba657
@ -14,8 +14,10 @@ public class SaveMottoEvent extends MessageHandler {
|
|||||||
Emulator.getPluginManager().fireEvent(event);
|
Emulator.getPluginManager().fireEvent(event);
|
||||||
motto = event.newMotto;
|
motto = event.newMotto;
|
||||||
|
|
||||||
|
if(motto.length() <= Emulator.getConfig().getInt("motto.max_length", 38)) {
|
||||||
this.client.getHabbo().getHabboInfo().setMotto(motto);
|
this.client.getHabbo().getHabboInfo().setMotto(motto);
|
||||||
this.client.getHabbo().getHabboInfo().run();
|
this.client.getHabbo().getHabboInfo().run();
|
||||||
|
}
|
||||||
|
|
||||||
if (this.client.getHabbo().getHabboInfo().getCurrentRoom() != null) {
|
if (this.client.getHabbo().getHabboInfo().getCurrentRoom() != null) {
|
||||||
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserDataComposer(this.client.getHabbo()).compose());
|
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserDataComposer(this.client.getHabbo()).compose());
|
||||||
|
Loading…
Reference in New Issue
Block a user