mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Fixes Issue 656
This commit is contained in:
parent
c19ef29cf9
commit
ec41fdc73f
@ -3,6 +3,7 @@ package com.eu.habbo.messages.incoming.rooms.items;
|
|||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.items.interactions.InteractionExternalImage;
|
import com.eu.habbo.habbohotel.items.interactions.InteractionExternalImage;
|
||||||
import com.eu.habbo.habbohotel.items.interactions.InteractionPostIt;
|
import com.eu.habbo.habbohotel.items.interactions.InteractionPostIt;
|
||||||
|
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.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
@ -22,7 +23,7 @@ public class PostItDeleteEvent extends MessageHandler {
|
|||||||
HabboItem item = room.getHabboItem(itemId);
|
HabboItem item = room.getHabboItem(itemId);
|
||||||
|
|
||||||
if (item instanceof InteractionPostIt || item instanceof InteractionExternalImage) {
|
if (item instanceof InteractionPostIt || item instanceof InteractionExternalImage) {
|
||||||
if (item.getUserId() == this.client.getHabbo().getHabboInfo().getId() || room.isOwner(this.client.getHabbo())) {
|
if (item.getUserId() == this.client.getHabbo().getHabboInfo().getId() || this.client.getHabbo().hasPermission(Permission.ACC_ANYROOMOWNER)) {
|
||||||
item.setRoomId(0);
|
item.setRoomId(0);
|
||||||
room.removeHabboItem(item);
|
room.removeHabboItem(item);
|
||||||
room.sendComposer(new RemoveWallItemComposer(item).compose());
|
room.sendComposer(new RemoveWallItemComposer(item).compose());
|
||||||
|
Loading…
Reference in New Issue
Block a user