mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Prevent deletion of homeroom
This commit is contained in:
parent
21c87145ea
commit
828d5110b0
@ -24,6 +24,10 @@ public class RequestDeleteRoomEvent extends MessageHandler {
|
||||
|
||||
if (room != null) {
|
||||
if (room.isOwner(this.client.getHabbo())) {
|
||||
if (room.getId() == this.client.getHabbo().getHabboInfo().getHomeRoom()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Emulator.getPluginManager().fireEvent(new NavigatorRoomDeletedEvent(this.client.getHabbo(), room)).isCancelled()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user