mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-02 03:02:49 +02:00
2.1 prerelease, part 2 of 3
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk2.1@1015 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
74
EssentialsGroupBridge/build.xml
Normal file
74
EssentialsGroupBridge/build.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- You may freely edit this file. See commented blocks below for -->
|
||||
<!-- some examples of how to customize the build. -->
|
||||
<!-- (If you delete it and reopen the project it will be recreated.) -->
|
||||
<!-- By default, only the Clean and Build commands use this build script. -->
|
||||
<!-- Commands such as Run, Debug, and Test only use this build script if -->
|
||||
<!-- the Compile on Save feature is turned off for the project. -->
|
||||
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
||||
<!-- in the project's Project Properties dialog box.-->
|
||||
<project name="EssentialsGroupBridge" default="default" basedir=".">
|
||||
<description>Builds, tests, and runs the project EssentialsGroupBridge.</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
<!--
|
||||
|
||||
There exist several targets which are by default empty and which can be
|
||||
used for execution of your tasks. These targets are usually executed
|
||||
before and after some main targets. They are:
|
||||
|
||||
-pre-init: called before initialization of project properties
|
||||
-post-init: called after initialization of project properties
|
||||
-pre-compile: called before javac compilation
|
||||
-post-compile: called after javac compilation
|
||||
-pre-compile-single: called before javac compilation of single file
|
||||
-post-compile-single: called after javac compilation of single file
|
||||
-pre-compile-test: called before javac compilation of JUnit tests
|
||||
-post-compile-test: called after javac compilation of JUnit tests
|
||||
-pre-compile-test-single: called before javac compilation of single JUnit test
|
||||
-post-compile-test-single: called after javac compilation of single JUunit test
|
||||
-pre-jar: called before JAR building
|
||||
-post-jar: called after JAR building
|
||||
-post-clean: called after cleaning build products
|
||||
|
||||
(Targets beginning with '-' are not intended to be called on their own.)
|
||||
|
||||
Example of inserting an obfuscator after compilation could look like this:
|
||||
|
||||
<target name="-post-compile">
|
||||
<obfuscate>
|
||||
<fileset dir="${build.classes.dir}"/>
|
||||
</obfuscate>
|
||||
</target>
|
||||
|
||||
For list of available properties check the imported
|
||||
nbproject/build-impl.xml file.
|
||||
|
||||
|
||||
Another way to customize the build is by overriding existing main targets.
|
||||
The targets of interest are:
|
||||
|
||||
-init-macrodef-javac: defines macro for javac compilation
|
||||
-init-macrodef-junit: defines macro for junit execution
|
||||
-init-macrodef-debug: defines macro for class debugging
|
||||
-init-macrodef-java: defines macro for class execution
|
||||
-do-jar-with-manifest: JAR building (if you are using a manifest)
|
||||
-do-jar-without-manifest: JAR building (if you are not using a manifest)
|
||||
run: execution of project
|
||||
-javadoc-build: Javadoc generation
|
||||
test-report: JUnit report generation
|
||||
|
||||
An example of overriding the target for project execution could look like this:
|
||||
|
||||
<target name="run" depends="EssentialsGroupBridge-impl.jar">
|
||||
<exec dir="bin" executable="launcher.exe">
|
||||
<arg file="${dist.jar}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
Notice that the overridden target depends on the jar target and not only on
|
||||
the compile target as the regular run target does. Again, for a list of available
|
||||
properties which you can use, check the target you are overriding in the
|
||||
nbproject/build-impl.xml file.
|
||||
|
||||
-->
|
||||
</project>
|
1047
EssentialsGroupBridge/nbproject/build-impl.xml
Normal file
1047
EssentialsGroupBridge/nbproject/build-impl.xml
Normal file
File diff suppressed because it is too large
Load Diff
8
EssentialsGroupBridge/nbproject/genfiles.properties
Normal file
8
EssentialsGroupBridge/nbproject/genfiles.properties
Normal file
@@ -0,0 +1,8 @@
|
||||
build.xml.data.CRC32=475c8f4d
|
||||
build.xml.script.CRC32=674d9b15
|
||||
build.xml.stylesheet.CRC32=28e38971@1.38.2.45
|
||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||
nbproject/build-impl.xml.data.CRC32=475c8f4d
|
||||
nbproject/build-impl.xml.script.CRC32=5fe43282
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=19debb58@1.42.1.45
|
@@ -0,0 +1 @@
|
||||
user.properties.file=C:\\Users\\Paul\\.netbeans\\7.0beta2\\build.properties
|
78
EssentialsGroupBridge/nbproject/project.properties
Normal file
78
EssentialsGroupBridge/nbproject/project.properties
Normal file
@@ -0,0 +1,78 @@
|
||||
annotation.processing.enabled=true
|
||||
annotation.processing.enabled.in.editor=false
|
||||
annotation.processing.run.all.processors=true
|
||||
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
||||
application.title=EssentialsGroupBridge
|
||||
application.vendor=gabrielcouto
|
||||
build.classes.dir=${build.dir}/classes
|
||||
build.classes.excludes=**/*.java,**/*.form
|
||||
# This directory is removed when the project is cleaned:
|
||||
build.dir=build
|
||||
build.generated.dir=${build.dir}/generated
|
||||
build.generated.sources.dir=${build.dir}/generated-sources
|
||||
# Only compile against the classpath explicitly listed here:
|
||||
build.sysclasspath=ignore
|
||||
build.test.classes.dir=${build.dir}/test/classes
|
||||
build.test.results.dir=${build.dir}/test/results
|
||||
# Uncomment to specify the preferred debugger connection transport:
|
||||
#debug.transport=dt_socket
|
||||
debug.classpath=\
|
||||
${run.classpath}
|
||||
debug.test.classpath=\
|
||||
${run.test.classpath}
|
||||
# This directory is removed when the project is cleaned:
|
||||
dist.dir=dist
|
||||
dist.jar=${dist.dir}/EssentialsGroupBridge.jar
|
||||
dist.javadoc.dir=${dist.dir}/javadoc
|
||||
endorsed.classpath=
|
||||
excludes=
|
||||
file.reference.craftbukkit-0.0.1-SNAPSHOT.jar=..\\lib\\craftbukkit-0.0.1-SNAPSHOT.jar
|
||||
file.reference.Permissions.jar=..\\lib\\Permissions.jar
|
||||
includes=**
|
||||
jar.compress=false
|
||||
javac.classpath=\
|
||||
${reference.EssentialsGroupManager.jar}:\
|
||||
${file.reference.craftbukkit-0.0.1-SNAPSHOT.jar}:\
|
||||
${file.reference.Permissions.jar}
|
||||
# Space-separated list of extra javac options
|
||||
javac.compilerargs=
|
||||
javac.deprecation=false
|
||||
javac.processorpath=\
|
||||
${javac.classpath}
|
||||
javac.source=1.6
|
||||
javac.target=1.6
|
||||
javac.test.classpath=\
|
||||
${javac.classpath}:\
|
||||
${build.classes.dir}
|
||||
javac.test.processorpath=\
|
||||
${javac.test.classpath}
|
||||
javadoc.additionalparam=
|
||||
javadoc.author=false
|
||||
javadoc.encoding=${source.encoding}
|
||||
javadoc.noindex=false
|
||||
javadoc.nonavbar=false
|
||||
javadoc.notree=false
|
||||
javadoc.private=false
|
||||
javadoc.splitindex=true
|
||||
javadoc.use=true
|
||||
javadoc.version=false
|
||||
javadoc.windowtitle=
|
||||
main.class=
|
||||
manifest.file=manifest.mf
|
||||
meta.inf.dir=${src.dir}/META-INF
|
||||
platform.active=default_platform
|
||||
project.EssentialsGroupManager=../EssentialsGroupManager
|
||||
reference.EssentialsGroupManager.jar=${project.EssentialsGroupManager}/dist/EssentialsGroupManager.jar
|
||||
run.classpath=\
|
||||
${javac.classpath}:\
|
||||
${build.classes.dir}
|
||||
# Space-separated list of JVM arguments used when running the project
|
||||
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
|
||||
# or test-sys-prop.name=value to set system properties for unit tests):
|
||||
run.jvmargs=
|
||||
run.test.classpath=\
|
||||
${javac.test.classpath}:\
|
||||
${build.test.classes.dir}
|
||||
source.encoding=UTF-8
|
||||
src.dir=src
|
||||
test.src.dir=test
|
25
EssentialsGroupBridge/nbproject/project.xml
Normal file
25
EssentialsGroupBridge/nbproject/project.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.java.j2seproject</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
|
||||
<name>EssentialsGroupBridge</name>
|
||||
<source-roots>
|
||||
<root id="src.dir"/>
|
||||
</source-roots>
|
||||
<test-roots>
|
||||
<root id="test.src.dir"/>
|
||||
</test-roots>
|
||||
</data>
|
||||
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
|
||||
<reference>
|
||||
<foreign-project>EssentialsGroupManager</foreign-project>
|
||||
<artifact-type>jar</artifact-type>
|
||||
<script>build.xml</script>
|
||||
<target>jar</target>
|
||||
<clean-target>clean</clean-target>
|
||||
<id>jar</id>
|
||||
</reference>
|
||||
</references>
|
||||
</configuration>
|
||||
</project>
|
BIN
EssentialsGroupBridge/src/com/nijiko/Messaging.class
Normal file
BIN
EssentialsGroupBridge/src/com/nijiko/Messaging.class
Normal file
Binary file not shown.
BIN
EssentialsGroupBridge/src/com/nijiko/Misc$string.class
Normal file
BIN
EssentialsGroupBridge/src/com/nijiko/Misc$string.class
Normal file
Binary file not shown.
BIN
EssentialsGroupBridge/src/com/nijiko/Misc.class
Normal file
BIN
EssentialsGroupBridge/src/com/nijiko/Misc.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
EssentialsGroupBridge/src/com/nijiko/database/Wrapper$Type.class
Normal file
BIN
EssentialsGroupBridge/src/com/nijiko/database/Wrapper$Type.class
Normal file
Binary file not shown.
BIN
EssentialsGroupBridge/src/com/nijiko/database/Wrapper.class
Normal file
BIN
EssentialsGroupBridge/src/com/nijiko/database/Wrapper.class
Normal file
Binary file not shown.
BIN
EssentialsGroupBridge/src/com/nijiko/permissions/Control.class
Normal file
BIN
EssentialsGroupBridge/src/com/nijiko/permissions/Control.class
Normal file
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,102 @@
|
||||
package com.nijikokun.bukkit.Permissions;
|
||||
|
||||
import com.nijiko.Misc;
|
||||
import com.nijiko.configuration.DefaultConfiguration;
|
||||
import com.nijiko.permissions.PermissionHandler;
|
||||
import java.util.logging.Logger;
|
||||
import org.anjocaido.groupmanager.GroupManager;
|
||||
import org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.event.player.PlayerChatEvent;
|
||||
import org.bukkit.event.player.PlayerListener;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.PluginDescriptionFile;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class Permissions extends JavaPlugin {
|
||||
|
||||
private class Listener extends PlayerListener {
|
||||
|
||||
private Permissions plugin;
|
||||
|
||||
public Listener(Permissions plugin) {
|
||||
//compiled code
|
||||
throw new RuntimeException("Compiled Code");
|
||||
}
|
||||
|
||||
public void onPlayerCommand(PlayerChatEvent event) {
|
||||
//compiled code
|
||||
throw new RuntimeException("Compiled Code");
|
||||
}
|
||||
}
|
||||
public static final Logger log = Logger.getLogger("Fake Permissions");
|
||||
public static String name = "Permissions";
|
||||
public static String codename = "Hacked Permissions by AnjoCaido";
|
||||
public static String version = "2.0";
|
||||
public static PermissionHandler Security = null;
|
||||
public static Misc Misc = new Misc();
|
||||
public static Server Server;
|
||||
private Listener Listener = null;
|
||||
private DefaultConfiguration config = null;
|
||||
private GroupManager groupManager;
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
//compiled code
|
||||
//throw new RuntimeException("Compiled Code");
|
||||
// EXAMPLE: Custom code, here we just output some info so we can check all is well
|
||||
PluginDescriptionFile pdfFile = this.getDescription();
|
||||
System.out.println("Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " is disabled!");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
Server = this.getServer();
|
||||
PluginDescriptionFile pdfFile = this.getDescription();
|
||||
|
||||
if (Security == null) {//make sure we have only one instance
|
||||
Plugin p = (Plugin)(this.getServer() == null ? new GroupManager() : this.getServer().getPluginManager().getPlugin("GroupManager"));
|
||||
if (p != null) {
|
||||
if (!p.isEnabled()) {
|
||||
if (this.getServer() == null) {
|
||||
p.onEnable();
|
||||
} else {
|
||||
this.getServer().getPluginManager().enablePlugin(p);
|
||||
}
|
||||
}
|
||||
GroupManager gm = (GroupManager) p;
|
||||
groupManager = gm;
|
||||
Security = new NijikoPermissionsProxy(gm);
|
||||
} else {
|
||||
System.err.println("OOOPS! Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " couldn't find GroupManager!");
|
||||
this.getPluginLoader().disablePlugin(this);
|
||||
}
|
||||
}
|
||||
// EXAMPLE: Custom code, here we just output some info so we can check all is well
|
||||
if (pdfFile != null)
|
||||
System.out.println("Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
|
||||
}
|
||||
|
||||
private void registerEvents() {
|
||||
//compiled code
|
||||
//throw new RuntimeException("Compiled Code");
|
||||
}
|
||||
|
||||
public PermissionHandler getHandler() {
|
||||
//compiled code
|
||||
//throw new RuntimeException("Compiled Code");
|
||||
//System.out.println("Alguem chamou o handler");
|
||||
checkEnable();
|
||||
return Security;
|
||||
}
|
||||
|
||||
public void setupPermissions() {
|
||||
checkEnable();
|
||||
}
|
||||
|
||||
private void checkEnable() {
|
||||
if (!this.isEnabled() && Security == null && this.getServer() != null) {
|
||||
this.getServer().getPluginManager().enablePlugin(this);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,428 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.anjocaido.groupmanager.permissions;
|
||||
|
||||
import com.nijiko.permissions.Control;
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import org.anjocaido.groupmanager.GroupManager;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.config.Configuration;
|
||||
|
||||
/**
|
||||
* Everything here maintains the model created by Nijikokun
|
||||
*
|
||||
* But implemented to use GroupManager system. Which provides instant changes,
|
||||
* without file access.
|
||||
*
|
||||
* @author gabrielcouto
|
||||
*/
|
||||
public class NijikoPermissionsProxy extends Control {
|
||||
GroupManager plugin;
|
||||
public NijikoPermissionsProxy(GroupManager plugin){
|
||||
super(null);
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addGroupPermission(String world, String group, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeGroupPermission(String world, String group, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addGroupInfo(String world, String group, String node, Object data) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeGroupInfo(String world, String group, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addUserPermission(String world, String user, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeUserPermission(String world, String user, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addUserInfo(String world, String user, String node, Object data) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeUserInfo(String world, String user, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeUserInfo(String user, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addGroupPermission(String group, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeGroupPermission(String group, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addGroupInfo(String group, String node, Object data) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeGroupInfo(String group, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addUserPermission(String user, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeUserPermission(String user, String node) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addUserInfo(String user, String node, Object data) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefaultWorld(String world) {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDirectory(File directory) {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean loadWorld(String world) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forceLoadWorld(String world) {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkWorld(String world) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load(String world, Configuration config) {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reload() {
|
||||
plugin.getWorldsHolder().reloadAll();
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean reload(String world) {
|
||||
plugin.getWorldsHolder().reloadWorld(world);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCache(Map<String, Boolean> Cache) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCache(String world, Map<String, Boolean> Cache) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCacheItem(String player, String permission, boolean data) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCacheItem(String world, String player, String permission, boolean data) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Boolean> getCache() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Boolean> getCache(String world) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getCacheItem(String player, String permission) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getCacheItem(String world, String player, String permission) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCachedItem(String player, String permission) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCachedItem(String world, String player, String permission) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearCache() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearCache(String world) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearAllCache() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean has(Player player, String permission) {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
return permission(player, permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean permission(Player player, String permission) {
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
if(permission==null || permission.equals("")){
|
||||
return false;
|
||||
}
|
||||
if(player==null){
|
||||
GroupManager.logger.severe("A plugin is asking permission '"+permission+"' for a null player... Which plugin does that? Bastards!");
|
||||
return false;
|
||||
}
|
||||
if(player.getWorld()==null){
|
||||
GroupManager.logger.warning("The player "+player.getName()+" has a null world? Treating as default world!");
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().has(player, permission);
|
||||
}
|
||||
return plugin.getWorldsHolder().getWorldData(player.getWorld().getName()).getPermissionsHandler().has(player, permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroup(String world, String name) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroup(name);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public String getGroup(String name) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroup(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getGroups(String world, String name) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroups(name);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public String[] getGroups(String name) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroups(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean inGroup(String world, String name, String group) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().inGroup(name,group);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public boolean inGroup(String name, String group) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().inGroup(name,group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupPrefix(String world, String group) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroupPrefix(group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupPrefix(String group) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroupPrefix(group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupSuffix(String world, String group) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroupSuffix(group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupSuffix(String group) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroupSuffix(group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canGroupBuild(String world, String group) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().canGroupBuild(group);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public boolean canGroupBuild(String group) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().canGroupBuild(group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupPermissionString(String world, String group, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroupPermissionString(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupPermissionString(String group, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroupPermissionString(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getGroupPermissionInteger(String world, String group, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroupPermissionInteger(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getGroupPermissionInteger(String group, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroupPermissionInteger(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getGroupPermissionBoolean(String world, String group, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroupPermissionBoolean(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getGroupPermissionBoolean(String group, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroupPermissionBoolean(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getGroupPermissionDouble(String world, String group, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getGroupPermissionDouble(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getGroupPermissionDouble(String group, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getGroupPermissionDouble(group,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUserPermissionString(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getUserPermissionString(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUserPermissionString(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getUserPermissionString(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getUserPermissionInteger(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getUserPermissionInteger(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getUserPermissionInteger(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getUserPermissionInteger(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getUserPermissionBoolean(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getUserPermissionBoolean(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getUserPermissionBoolean(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getUserPermissionBoolean(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getUserPermissionDouble(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getUserPermissionDouble(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getUserPermissionDouble(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getUserPermissionDouble(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPermissionString(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getPermissionString(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPermissionString(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getPermissionString(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPermissionInteger(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getPermissionInteger(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPermissionInteger(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getPermissionInteger(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getPermissionBoolean(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getPermissionBoolean(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getPermissionBoolean(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getPermissionBoolean(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getPermissionDouble(String world, String name, String permission) {
|
||||
return plugin.getWorldsHolder().getWorldData(world).getPermissionsHandler().getPermissionDouble(name,permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getPermissionDouble(String name, String permission) {
|
||||
return plugin.getWorldsHolder().getDefaultWorld().getPermissionsHandler().getPermissionDouble(name,permission);
|
||||
}
|
||||
|
||||
}
|
3
EssentialsGroupBridge/src/plugin.yml
Normal file
3
EssentialsGroupBridge/src/plugin.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: Permissions
|
||||
version: 2.5.1
|
||||
main: com.nijikokun.bukkit.Permissions.Permissions
|
Reference in New Issue
Block a user