Merge branch 'patch-3' into 'dev'

Verify the length of the name group

See merge request morningstar/Arcturus-Community!273
This commit is contained in:
Harmonic 2020-09-25 17:04:08 -04:00
commit f27d707832

View File

@ -79,6 +79,13 @@ public class RequestGuildBuyEvent extends MessageHandler {
base += 3; base += 3;
} }
if(name.length() > 29){
this.client.sendResponse(new GuildEditFailComposer(GuildEditFailComposer.INVALID_GUILD_NAME));
return;
}
if(description.length() > 254){
return;
}
Guild guild = Emulator.getGameEnvironment().getGuildManager().createGuild(this.client.getHabbo(), roomId, r.getName(), name, description, badge, colorOne, colorTwo); Guild guild = Emulator.getGameEnvironment().getGuildManager().createGuild(this.client.getHabbo(), roomId, r.getName(), name, description, badge, colorOne, colorTwo);
r.setGuild(guild.getId()); r.setGuild(guild.getId());