diff --git a/pom.xml b/pom.xml index 1f33dbe..3a08cfa 100644 --- a/pom.xml +++ b/pom.xml @@ -3,9 +3,9 @@ 4.0.0 com.sk89q dummypermscompat - 1.5 + 1.6 DummyPermsCompat - PermissionsEx classes to compile against + Permissions, bPermissions, and PermissionsEx classes to compile against bukkit-repo @@ -16,7 +16,7 @@ org.bukkit bukkit - 1.1-R1-SNAPSHOT + 0.0.1-SNAPSHOT jar compile diff --git a/src/main/java/com/nijiko/permissions/PermissionHandler.java b/src/main/java/com/nijiko/permissions/PermissionHandler.java new file mode 100644 index 0000000..7bc6cc0 --- /dev/null +++ b/src/main/java/com/nijiko/permissions/PermissionHandler.java @@ -0,0 +1,57 @@ +// $Id$ +/* + * Copyright (C) 2011 sk89q + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +package com.nijiko.permissions; + +import org.bukkit.entity.Player; + +public class PermissionHandler { + + public boolean has(Player player, String perm) { + throw new UnsupportedOperationException("Not implemented"); + } + + public boolean has(String worldName, String player, String perm) { + throw new UnsupportedOperationException("Not implemented"); + } + + public boolean permission(Player player, String perm) { + throw new UnsupportedOperationException("Not implemented"); + } + + public boolean inGroup(String name, String group) { + throw new UnsupportedOperationException("Not implemented"); + } + + public boolean inGroup(String worldName, String name, String group) { + throw new UnsupportedOperationException("Not implemented"); + } + + public String getGroup(String worldName, String name) { + throw new UnsupportedOperationException("Not implemented"); + } + + public String getGroup(String name) { + throw new UnsupportedOperationException("Not implemented"); + } + + public String[] getGroups(String world, String name) { + throw new UnsupportedOperationException("Not implemented"); + } + +} diff --git a/src/main/java/com/nijikokun/bukkit/Permissions/Permissions.java b/src/main/java/com/nijikokun/bukkit/Permissions/Permissions.java new file mode 100644 index 0000000..31aa28a --- /dev/null +++ b/src/main/java/com/nijikokun/bukkit/Permissions/Permissions.java @@ -0,0 +1,30 @@ +// $Id$ +/* + * Copyright (C) 2011 sk89q + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +package com.nijikokun.bukkit.Permissions; + +import com.nijiko.permissions.PermissionHandler; + +public class Permissions { + + public static PermissionHandler Security = new PermissionHandler(); + + public PermissionHandler getHandler() { + throw new UnsupportedOperationException("Not implemented"); + } +} diff --git a/src/main/java/de/bananaco/bpermissions/api/ApiLayer.java b/src/main/java/de/bananaco/bpermissions/api/ApiLayer.java new file mode 100644 index 0000000..a248b61 --- /dev/null +++ b/src/main/java/de/bananaco/bpermissions/api/ApiLayer.java @@ -0,0 +1,43 @@ +/* + * dummypermscompat + * Copyright (C) 2012 sk89q + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package de.bananaco.bpermissions.api; + +import de.bananaco.bpermissions.api.util.CalculableType; + +/** + * @author zml2008 + */ +public class ApiLayer { + + public static String[] getGroups(String world, CalculableType type, String name) { + throw new UnsupportedOperationException("Not supported yet."); + } + + public static boolean hasGroup(String world, CalculableType type, String name, String group) { + throw new UnsupportedOperationException("Not supported yet."); + } + + public static boolean hasGroupRecursive(String world, CalculableType type, String name, String group) { + throw new UnsupportedOperationException("Not supported yet."); + } + + public static boolean hasPermission(String world, CalculableType type, String name, String node) { + throw new UnsupportedOperationException("Not supported yet."); + } +} diff --git a/src/main/java/de/bananaco/bpermissions/api/util/CalculableType.java b/src/main/java/de/bananaco/bpermissions/api/util/CalculableType.java new file mode 100644 index 0000000..ed526da --- /dev/null +++ b/src/main/java/de/bananaco/bpermissions/api/util/CalculableType.java @@ -0,0 +1,27 @@ +/* + * dummypermscompat + * Copyright (C) 2012 sk89q + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package de.bananaco.bpermissions.api.util; + +/** + * @author zml2008 + */ +public enum CalculableType { + USER, + GROUP +} diff --git a/src/main/java/ru/tehkode/permissions/PermissionManager.java b/src/main/java/ru/tehkode/permissions/PermissionManager.java index 676d559..15883ab 100644 --- a/src/main/java/ru/tehkode/permissions/PermissionManager.java +++ b/src/main/java/ru/tehkode/permissions/PermissionManager.java @@ -18,6 +18,7 @@ public boolean has(String playerName, String permission, String world) { throw new UnsupportedOperationException("Not implemented."); } + public PermissionUser getUser(String username) { throw new UnsupportedOperationException("Not implemented."); }