feat: support for new Arcturus Morningstar permission system

This commit is contained in:
Niklas 2023-10-23 17:15:45 +02:00
parent 10aeca2880
commit 4bc5cc3b63
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package org.krews.apollyon.incoming;
import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.permissions.Permission;
import com.eu.habbo.habbohotel.rooms.Room;
import com.eu.habbo.messages.incoming.MessageHandler;
import com.eu.habbo.messages.outgoing.camera.CameraStorageUrlMessageComposer;
@ -21,7 +22,7 @@ public class CameraRoomPictureEvent extends MessageHandler {
@Override
public void handle() {
if (!this.client.getHabbo().hasPermission("acc_camera")) {
if (!this.client.getHabbo().hasRight(Permission.ACC_CAMERA)) {
this.client.getHabbo().alert(Emulator.getTexts().getValue("camera.permission"));
return;
}

View File

@ -1,6 +1,7 @@
package org.krews.apollyon.incoming;
import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.permissions.Permission;
import com.eu.habbo.habbohotel.rooms.Room;
import com.eu.habbo.messages.incoming.MessageHandler;
import com.eu.habbo.messages.outgoing.camera.ThumbnailStatusMessageComposer;
@ -20,7 +21,7 @@ public class CameraRoomThumbnailEvent extends MessageHandler {
@Override
public void handle() {
if (!this.client.getHabbo().hasPermission("acc_camera")) {
if (!this.client.getHabbo().hasRight(Permission.ACC_CAMERA)) {
this.client.getHabbo().alert(Emulator.getTexts().getValue("camera.permission"));
return;
}
@ -33,7 +34,7 @@ public class CameraRoomThumbnailEvent extends MessageHandler {
if (room == null)
return;
if (!room.isOwner(this.client.getHabbo()) && !this.client.getHabbo().hasPermission("acc_modtool_ticket_q"))
if (!room.isOwner(this.client.getHabbo()) && !this.client.getHabbo().hasRight(Permission.ACC_MODTOOL_TICKET_Q))
return;
final int count = this.packet.readInt();