Skip to content

Commit

Permalink
Add commands permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCubee committed Jul 17, 2022
1 parent 71bfcc1 commit 3b7f137
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>fr.mrcubee.minecraft.plugin</groupId>
<artifactId>waypoint</artifactId>
<version>1.2</version>
<version>1.2.1</version>
<packaging>jar</packaging>

<name>Waypoint</name>
Expand Down
12 changes: 11 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ main: fr.mrcubee.waypoint.WayPointPlugin
api-version: 1.13
commands:
gps:
permission: waypoint.gps.use
description: Enables and disables GPS.
usage: |
§7--------------------- [§a${project.name}§7] ---------------------
Expand All @@ -19,6 +20,7 @@ commands:
§7- §a/gps waypoint <name> §f- §7Enable GPS on the desired waypoint.
§7- §a/gps player <name> §f- §7Enable GPS on the desired player.
waypoint:
permission: waypoint.waypoint.use
aliases: wp
description: Manage waypoints.
usage: |
Expand All @@ -28,4 +30,12 @@ commands:
§7- §a/waypoint create <name> <x> <z> <world> §f- §7Create a waypoint on the desired coordinates.
§7- §a/waypoint create <name> <x> <y> <z> §f- §7Create a waypoint on the desired coordinates.
§7- §a/waypoint create <name> <x> <y> <z> <world> §f- §7Create a waypoint on the desired coordinates.
§7- §a/waypoint remove <name> §f- §7Delete a waypoint.
§7- §a/waypoint remove <name> §f- §7Delete a waypoint.
permissions:
waypoint.gps.use:
description: Permission to use the GPS command.
default: true
waypoint.waypoint.use:
description: Permission to use the Waypoint command.
default: true

0 comments on commit 3b7f137

Please sign in to comment.