Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.buildtheearth.buildteamtools.modules.network.NetworkModule;
import net.buildtheearth.buildteamtools.modules.network.api.OpenStreetMapAPI;
import net.buildtheearth.buildteamtools.modules.network.model.BuildTeam;
import net.buildtheearth.buildteamtools.modules.network.model.Permissions;
import net.buildtheearth.buildteamtools.modules.network.model.Region;
import net.buildtheearth.model.GeographicalCoordinate;
import org.bukkit.event.EventHandler;
Expand Down Expand Up @@ -38,6 +39,8 @@ public void onTpll(PlayerCommandPreprocessEvent event) {
// Check if the NavigationModule is enabled
if (!NavigationModule.getInstance().isEnabled()) return;

if (!event.getPlayer().hasPermission(Permissions.AUTO_TPLL)) return;

// Check if the command is a TPLL command
if (!isTpllCommand(event)) return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ public class Permissions {

public static final String NOTIFY_UPDATE = "btt.notify.update";

public static final String AUTO_TPLL = "btt.global.autotpll";

}
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ permissions:
btt.navigator.use: true
btt.warp.use: true
btt.bp.use: true
btt.global.autotpll: true
btt.permpack.builder:
description: Contains all permissions for builders / trusted players
default: op
Expand Down