Permalink
Browse files

1.6 - added bPermissions compatibliity and readded Permissions1/2/3 s…

…upport
  • Loading branch information...
1 parent 2ece634 commit 608080d4c87fb9623a9948e89d085022211f91b4 @zml2008 zml2008 committed Jan 23, 2012
View
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sk89q</groupId>
<artifactId>dummypermscompat</artifactId>
- <version>1.5</version>
+ <version>1.6</version>
<name>DummyPermsCompat</name>
- <description>PermissionsEx classes to compile against</description>
+ <description>Permissions, bPermissions, and PermissionsEx classes to compile against</description>
<repositories>
<repository>
<id>bukkit-repo</id>
@@ -16,7 +16,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
- <version>1.1-R1-SNAPSHOT</version>
+ <version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
@@ -0,0 +1,57 @@
+// $Id$
+/*
+ * Copyright (C) 2011 sk89q <http://www.sk89q.com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+*/
+
+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");
+ }
+
+}
@@ -0,0 +1,30 @@
+// $Id$
+/*
+ * Copyright (C) 2011 sk89q <http://www.sk89q.com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+*/
+
+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");
+ }
+}
@@ -0,0 +1,43 @@
+/*
+ * dummypermscompat
+ * Copyright (C) 2012 sk89q <http://www.sk89q.com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+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.");
+ }
+}
@@ -0,0 +1,27 @@
+/*
+ * dummypermscompat
+ * Copyright (C) 2012 sk89q <http://www.sk89q.com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+package de.bananaco.bpermissions.api.util;
+
+/**
+ * @author zml2008
+ */
+public enum CalculableType {
+ USER,
+ GROUP
+}
@@ -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.");
}

0 comments on commit 608080d

Please sign in to comment.