Stargate Rewritten

Stargate Rewritten

241 Downloads

Incorrect error message for unauthorized network attachment.

Pheotis opened this issue ยท 0 comments

commented

Bug Description

Creating a portal on an unauthorized network prints DENY instead of NET_DENY

Reproduction Steps

  1. Attempt to make a portal on someone else's personal network, without permissions

Desired Behaviour

This action should fail with NET_DENY.

Observed Behaviour

It fails with DENY.

Trace Logs

[Stargate] Checking permissions for entity CraftPlayer{name=User2}
[Stargate] Amount of GateFormats: 1
[Stargate] --------- nether.gate ---------
[Stargate] Chose a format rotation of -1.5707963267948966 radians
[Stargate] ---Validating CONTROL_BLOCK
[Stargate] ---Validating FRAME
[Stargate] ---Validating IRIS
[Stargate] ....Choosing network name....
[Stargate] initial name is 'Pheotis'
[Stargate] Ended up with: PERSONAL, cbd37628-2e35-4356-a2b8-7121895ef5b3
[Stargate] Selected with flags 41
[Stargate] Checking create permissions
[Stargate]  Checking permission 'sg.create.world.world'. returned true
[Stargate]  Checking permission 'sg.create.network.personal'. returned true
[Stargate]  Checking permission 'sg.create.design.nether'. returned true
[Stargate]  Checking permission 'sg.admin.bypass.private'. returned false
[Stargate] Formatted TranslatableMessage 'DENY' to 'Access denied!'
[Stargate]  player has permission = false
[Stargate]  Event was denied due to lack of permission or an add-on

Other Information

No response