Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.6 - added bPermissions compatibliity and readded Permissions1/2/3 s…
…upport
- Loading branch information
Showing
6 changed files
with
161 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/main/java/com/nijiko/permissions/PermissionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
30
src/main/java/com/nijikokun/bukkit/Permissions/Permissions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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."); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/de/bananaco/bpermissions/api/util/CalculableType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters