mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 14:04:49 +01:00
Fix line endings in CraftDefaultPermissions
This commit is contained in:
parent
822ff72934
commit
cb98c6eaef
1 changed files with 17 additions and 18 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue