mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Permissions hotfix
This commit is contained in:
parent
5b298dc125
commit
9d5cc87f14
3 changed files with 3 additions and 3 deletions
Binary file not shown.
|
@ -131,7 +131,7 @@ public class Commands {
|
|||
|
||||
String ability = Methods.getAbility(abil);
|
||||
|
||||
if (!Methods.canBend(s.getName(), ability)) {
|
||||
if (!Methods.hasPermission((Player) s, ability)) {
|
||||
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
|
||||
return true;
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ public class Commands {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!Methods.canBend(s.getName(), ability)) {
|
||||
if (!Methods.hasPermission((Player) s, ability)) {
|
||||
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: ProjectKorra
|
||||
author: ProjectKorra
|
||||
version: 1.1.0 BETA 12
|
||||
version: 1.1.0 BETA 13
|
||||
main: com.projectkorra.ProjectKorra.ProjectKorra
|
||||
commands:
|
||||
projectkorra:
|
||||
|
|
Loading…
Reference in a new issue