Skip to content

Commit

Permalink
1.6 - added bPermissions compatibliity and readded Permissions1/2/3 s…
Browse files Browse the repository at this point in the history
…upport
  • Loading branch information
zml2008 committed Jan 23, 2012
1 parent 2ece634 commit 608080d
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
57 changes: 57 additions & 0 deletions src/main/java/com/nijiko/permissions/PermissionHandler.java
@@ -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");
}

}
30 changes: 30 additions & 0 deletions src/main/java/com/nijikokun/bukkit/Permissions/Permissions.java
@@ -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");
}
}
43 changes: 43 additions & 0 deletions src/main/java/de/bananaco/bpermissions/api/ApiLayer.java
@@ -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
}
Expand Up @@ -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.");
}
Expand Down

0 comments on commit 608080d

Please sign in to comment.