mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
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:
commit
f27d707832
@ -79,6 +79,13 @@ public class RequestGuildBuyEvent extends MessageHandler {
|
||||
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);
|
||||
|
||||
r.setGuild(guild.getId());
|
||||
|
Loading…
Reference in New Issue
Block a user