mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-10 09:21:45 +01:00
Updating permissions and such
This commit is contained in:
parent
47237ba68f
commit
b73da10f65
@ -90,7 +90,8 @@ public class CoreListeners {
|
||||
*/
|
||||
public void playerInteractWithBlock(PlayerContainer player, String materialName, String itemName,
|
||||
PortalLocation blockLoc, boolean leftClick) {
|
||||
if(materialName.equalsIgnoreCase(this.portalsCore.getConfig().getSelectorMaterial())
|
||||
if((player.isOp() || player.hasPermission("advancedportals.createportal")) &&
|
||||
materialName.equalsIgnoreCase(this.portalsCore.getConfig().getSelectorMaterial())
|
||||
&& (!this.portalsCore.getConfig().getUseOnlySpecialAxe() || itemName.equals("\u00A7ePortal Region Selector"))) {
|
||||
AdvancedPortalsCore.getPortalManager().playerSelectorActivate(player, blockLoc, leftClick);
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ package com.sekwah.advancedportals.core.util;
|
||||
*/
|
||||
public class Config {
|
||||
|
||||
private boolean useOnlySpecialAxe;
|
||||
private boolean useOnlySpecialAxe = true;
|
||||
|
||||
private String selectorMaterial = "IRON_AXE";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user