mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:34:44 +01:00
Fix line endings in CraftDefaultPermissions
By: md_5 <git@md-5.net>
This commit is contained in:
parent
0deb5e7d0a
commit
0d8ed5d869
1 changed files with 17 additions and 18 deletions
|
@ -1,18 +1,17 @@
|
||||||
package org.bukkit.craftbukkit.util.permissions;
|
package org.bukkit.craftbukkit.util.permissions;
|
||||||
|
|
||||||
import org.bukkit.permissions.Permission;
|
import org.bukkit.permissions.Permission;
|
||||||
import org.bukkit.permissions.PermissionDefault;
|
import org.bukkit.permissions.PermissionDefault;
|
||||||
import org.bukkit.util.permissions.DefaultPermissions;
|
import org.bukkit.util.permissions.DefaultPermissions;
|
||||||
|
|
||||||
public final class CraftDefaultPermissions {
|
public final class CraftDefaultPermissions {
|
||||||
private static final String ROOT= "minecraft";
|
private static final String ROOT= "minecraft";
|
||||||
|
|
||||||
private CraftDefaultPermissions() {}
|
private CraftDefaultPermissions() {}
|
||||||
|
|
||||||
public static void registerCorePermissions() {
|
public static void registerCorePermissions() {
|
||||||
Permission parent = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all vanilla utilities and commands");
|
Permission parent = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all vanilla utilities and commands");
|
||||||
CommandPermissions.registerPermissions(parent);
|
CommandPermissions.registerPermissions(parent);
|
||||||
DefaultPermissions.registerPermission(ROOT + ".autocraft", "Gives the user the ability to use autocraft functionality", PermissionDefault.OP, parent);
|
parent.recalculatePermissibles();
|
||||||
parent.recalculatePermissibles();
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue