Skip to content

Commit

Permalink
2.4.8
Browse files Browse the repository at this point in the history
- Plugin now loads on STARTUP
- Fixed issue with missing has() method
  • Loading branch information
Foulest committed Feb 2, 2025
1 parent 7155f13 commit a45c04f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'net.milkbowl'
version = '2.4.6'
version = '2.4.8'
description = project.name

// Set the project's language level
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/net/milkbowl/vault/permission/Permission.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import net.milkbowl.vault.util.ConstantUtil;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.permissions.PermissionAttachmentInfo;
Expand Down Expand Up @@ -66,6 +67,11 @@ public boolean has(UUID uuid, String permission) {
return playerHas(uuid, permission);
}

@Deprecated
public static boolean has(@NotNull CommandSender sender, String permission) {
return sender.hasPermission(permission);
}

@Deprecated
public boolean has(@NotNull Player player, String permission) {
return playerHas(player, permission);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ main: net.milkbowl.vault.Vault
authors: [ Sleaker, Cerea1, Mung3r, Kainzo, Foulest ]
api-version: 1.13
folia-supported: true
load: STARTUP

permissions:
vault.main:
Expand Down

0 comments on commit a45c04f

Please sign in to comment.