geforkt von Mirrors/Paper
Fix line endings in CraftDefaultPermissions
Dieser Commit ist enthalten in:
Ursprung
822ff72934
Commit
cb98c6eaef
@ -1,18 +1,17 @@
|
||||
package org.bukkit.craftbukkit.util.permissions;
|
||||
|
||||
import org.bukkit.permissions.Permission;
|
||||
import org.bukkit.permissions.PermissionDefault;
|
||||
import org.bukkit.util.permissions.DefaultPermissions;
|
||||
|
||||
public final class CraftDefaultPermissions {
|
||||
private static final String ROOT= "minecraft";
|
||||
|
||||
private CraftDefaultPermissions() {}
|
||||
|
||||
public static void registerCorePermissions() {
|
||||
Permission parent = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all vanilla utilities and commands");
|
||||
CommandPermissions.registerPermissions(parent);
|
||||
DefaultPermissions.registerPermission(ROOT + ".autocraft", "Gives the user the ability to use autocraft functionality", PermissionDefault.OP, parent);
|
||||
parent.recalculatePermissibles();
|
||||
}
|
||||
}
|
||||
package org.bukkit.craftbukkit.util.permissions;
|
||||
|
||||
import org.bukkit.permissions.Permission;
|
||||
import org.bukkit.permissions.PermissionDefault;
|
||||
import org.bukkit.util.permissions.DefaultPermissions;
|
||||
|
||||
public final class CraftDefaultPermissions {
|
||||
private static final String ROOT= "minecraft";
|
||||
|
||||
private CraftDefaultPermissions() {}
|
||||
|
||||
public static void registerCorePermissions() {
|
||||
Permission parent = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all vanilla utilities and commands");
|
||||
CommandPermissions.registerPermissions(parent);
|
||||
parent.recalculatePermissibles();
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren