Missing javadoc.
This commit is contained in:
parent
3f09fbd710
commit
109582335b
|
@ -140,6 +140,12 @@ public class MVPermissions implements PermissionsInterface {
|
||||||
return this.hasPermission(p, d.getRequiredPermission(), false);
|
return this.hasPermission(p, d.getRequiredPermission(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tells a {@link CommandSender} why another {@link CommandSender} can or can not access a certain {@link MVDestination}.
|
||||||
|
* @param asker The {@link CommandSender} that's asking.
|
||||||
|
* @param playerInQuestion The {@link CommandSender} whose permissions we want to know.
|
||||||
|
* @param d The {@link MVDestination}.
|
||||||
|
*/
|
||||||
public void tellMeWhyICantDoThis(CommandSender asker, CommandSender playerInQuestion, MVDestination d) {
|
public void tellMeWhyICantDoThis(CommandSender asker, CommandSender playerInQuestion, MVDestination d) {
|
||||||
boolean cango = true;
|
boolean cango = true;
|
||||||
if (!(playerInQuestion instanceof Player)) {
|
if (!(playerInQuestion instanceof Player)) {
|
||||||
|
@ -148,7 +154,7 @@ public class MVPermissions implements PermissionsInterface {
|
||||||
}
|
}
|
||||||
Player p = (Player) playerInQuestion;
|
Player p = (Player) playerInQuestion;
|
||||||
if (d == null) {
|
if (d == null) {
|
||||||
asker.sendMessage(String.format("The provided Destination is %sNULL%s, and therefore %sNVALID%s.",
|
asker.sendMessage(String.format("The provided Destination is %sNULL%s, and therefore %sINVALID%s.",
|
||||||
ChatColor.RED, ChatColor.WHITE, ChatColor.RED, ChatColor.WHITE));
|
ChatColor.RED, ChatColor.WHITE, ChatColor.RED, ChatColor.WHITE));
|
||||||
cango = false;
|
cango = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue