mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2025-07-31 09:53:02 +00:00
Classic mistake, changed my mind and only changed part of the code.
Also the actual mistake. Never forget. (#81)
This commit is contained in:
parent
f07cef5621
commit
e652b43670
3 changed files with 9 additions and 7 deletions
|
@ -276,7 +276,7 @@ public class OpenInv extends JavaPlugin implements IOpenInv {
|
|||
if (player.isOnline()) {
|
||||
Player onlinePlayer = player.getPlayer();
|
||||
if (onlinePlayer != null) {
|
||||
defaultState = onlinePlayer.hasPermission("openinv.anychest.default");
|
||||
defaultState = Permissions.ANY_DEFAULT.hasPermission(onlinePlayer);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ public class OpenInv extends JavaPlugin implements IOpenInv {
|
|||
if (player.isOnline()) {
|
||||
Player onlinePlayer = player.getPlayer();
|
||||
if (onlinePlayer != null) {
|
||||
defaultState = onlinePlayer.hasPermission("openinv.silentchest.default");
|
||||
defaultState = Permissions.SILENT_DEFAULT.hasPermission(onlinePlayer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue