Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BroadcastPermissions.java
1 package org.bukkit.util.permissions;
2 
5 
6 public final class BroadcastPermissions {
7  private static final String ROOT = "bukkit.broadcast";
8  private static final String PREFIX = ROOT + ".";
9 
10  private BroadcastPermissions() {}
11 
12  public static Permission registerPermissions(Permission parent) {
13  Permission broadcasts = DefaultPermissions.registerPermission(ROOT, "Allows the user to receive all broadcast messages", parent);
14 
15  DefaultPermissions.registerPermission(PREFIX + "admin", "Allows the user to receive administrative broadcasts", PermissionDefault.OP, broadcasts);
16  DefaultPermissions.registerPermission(PREFIX + "user", "Allows the user to receive user broadcasts", PermissionDefault.TRUE, broadcasts);
17 
18  broadcasts.recalculatePermissibles();
19 
20  return broadcasts;
21  }
22 }