fixed small issues and added permission sets

This commit is contained in:
kai ohara 2025-02-07 13:55:12 -05:00
parent 5e2355c24e
commit 7f3f150e96
17 changed files with 7 additions and 5 deletions

Binary file not shown.

View File

@ -7,7 +7,7 @@ author: "Newt_00"
website: "ycs.Newt-Tech.com" website: "ycs.Newt-Tech.com"
commands: commands:
scale: scale:
permission: cosway.admin permission: cosway.scale
usage: "/scale <float>" usage: "/scale <float>"
throw: throw:
description: Throws nearest player in a 10 block radius of you description: Throws nearest player in a 10 block radius of you
@ -16,3 +16,4 @@ commands:
gravitygauntlet: gravitygauntlet:
description: "Gives the player a Gravity Gauntlet" description: "Gives the player a Gravity Gauntlet"
usage: "/gravitygauntlet" usage: "/gravitygauntlet"
permission: CoswayUtil.GravityGauntlet

View File

@ -18,7 +18,7 @@ import java.util.UUID;
public class GravityGauntlet implements Listener { public class GravityGauntlet implements Listener {
private final CoswayUtil plugin; // Reference to the main plugin private final CoswayUtil plugin; // Reference to the main plugin
private final Map<UUID, Long> cooldowns = new HashMap<>(); private final Map<UUID, Long> cooldowns = new HashMap<>();
private static final long COOLDOWN_TIME = 15 * 1000; // 5 seconds in milliseconds private static final long COOLDOWN_TIME = 5 * 1000; // 5 seconds in milliseconds
public GravityGauntlet(CoswayUtil plugin) { public GravityGauntlet(CoswayUtil plugin) {
this.plugin = plugin; this.plugin = plugin;

View File

@ -7,7 +7,7 @@ author: "Newt_00"
website: "ycs.Newt-Tech.com" website: "ycs.Newt-Tech.com"
commands: commands:
scale: scale:
permission: cosway.admin permission: cosway.scale
usage: "/scale <float>" usage: "/scale <float>"
throw: throw:
description: Throws nearest player in a 10 block radius of you description: Throws nearest player in a 10 block radius of you
@ -16,3 +16,4 @@ commands:
gravitygauntlet: gravitygauntlet:
description: "Gives the player a Gravity Gauntlet" description: "Gives the player a Gravity Gauntlet"
usage: "/gravitygauntlet" usage: "/gravitygauntlet"
permission: CoswayUtil.GravityGauntlet