This commit is contained in:
parent
878480fd50
commit
840543a616
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class PlayerPositionMixin {
|
||||||
private void event_player_move(CallbackInfo ci, @Local NetworkIdentity identity, @Local ChannelHandlerContext ctx){
|
private void event_player_move(CallbackInfo ci, @Local NetworkIdentity identity, @Local ChannelHandlerContext ctx){
|
||||||
if (identity.getSide() != NetworkSide.CLIENT) {
|
if (identity.getSide() != NetworkSide.CLIENT) {
|
||||||
Account account = ServerSingletons.getAccount(identity);
|
Account account = ServerSingletons.getAccount(identity);
|
||||||
if (!Permissions.has_user_special_perm(account.getUniqueId()) && !can_enter_position(position,"move",playerUniqueId)) {
|
if (!Permissions.has_user_special_perm(account.getUniqueId()) && !can_enter_position(position,"enter",playerUniqueId)) {
|
||||||
ci.cancel();
|
ci.cancel();
|
||||||
|
|
||||||
Player player = ServerSingletons.getPlayer(identity);
|
Player player = ServerSingletons.getPlayer(identity);
|
||||||
|
|
Loading…
Reference in a new issue