mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Merge branch 'revert-d22bbf22' into 'master'
Revert "Merge branch 'patch-4' into 'master'" See merge request morningstar/Arcturus-Community!302
This commit is contained in:
commit
ba02812d47
@ -5,7 +5,6 @@ import com.eu.habbo.habbohotel.guilds.Guild;
|
|||||||
import com.eu.habbo.habbohotel.permissions.Permission;
|
import com.eu.habbo.habbohotel.permissions.Permission;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.GuildEditFailComposer;
|
|
||||||
import com.eu.habbo.plugin.events.guilds.GuildChangedNameEvent;
|
import com.eu.habbo.plugin.events.guilds.GuildChangedNameEvent;
|
||||||
|
|
||||||
public class GuildChangeNameDescEvent extends MessageHandler {
|
public class GuildChangeNameDescEvent extends MessageHandler {
|
||||||
@ -20,15 +19,6 @@ public class GuildChangeNameDescEvent extends MessageHandler {
|
|||||||
GuildChangedNameEvent nameEvent = new GuildChangedNameEvent(guild, this.packet.readString(), this.packet.readString());
|
GuildChangedNameEvent nameEvent = new GuildChangedNameEvent(guild, this.packet.readString(), this.packet.readString());
|
||||||
Emulator.getPluginManager().fireEvent(nameEvent);
|
Emulator.getPluginManager().fireEvent(nameEvent);
|
||||||
|
|
||||||
if(nameEvent.name.length() > 29){
|
|
||||||
this.client.sendResponse(new GuildEditFailComposer(GuildEditFailComposer.INVALID_GUILD_NAME));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nameEvent.description.length() > 254){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nameEvent.isCancelled())
|
if (nameEvent.isCancelled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user