├── .gitignore ├── BungeeCord ├── src │ └── main │ │ ├── resources │ │ ├── default.js │ │ ├── config.yml │ │ ├── plugin.yml │ │ └── META-INF │ │ │ └── truffle │ │ │ └── language │ │ └── java │ │ └── net │ │ └── stacket │ │ └── drupi │ │ └── bungeecord │ │ ├── script │ │ ├── drupiHelper.java │ │ ├── ExpressManager.java │ │ ├── castManager.java │ │ ├── Globals.java │ │ ├── socketManager.java │ │ ├── labymod │ │ │ └── LabymodEvents.java │ │ └── commandManager.java │ │ ├── api │ │ └── BungeeConfig.java │ │ └── Events │ │ └── eventListener.java ├── libs │ └── LabyMod.jar ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── .project └── .classpath ├── Spigot-Legacy ├── src │ └── main │ │ ├── resources │ │ ├── default.js │ │ ├── config.yml │ │ ├── META-INF │ │ │ └── truffle │ │ │ │ └── language │ │ └── plugin.yml │ │ └── java │ │ └── net │ │ └── stacket │ │ └── drupi │ │ └── legacy │ │ ├── script │ │ ├── guiManager.java │ │ ├── placeholderAPIManager.java │ │ ├── drupiHelper.java │ │ ├── ExpressManager.java │ │ ├── castManager.java │ │ ├── socketManager.java │ │ ├── scoreboardManager.java │ │ ├── Globals.java │ │ └── materialManager.java │ │ ├── extra │ │ ├── eventsHandler.java │ │ ├── configHandler.java │ │ ├── ServerPackage.java │ │ └── VersionField.java │ │ ├── expansions │ │ ├── placeholderapi │ │ │ ├── PlaceholderAPIEventHandler.java │ │ │ ├── PlaceholderAPIManager.java │ │ │ ├── PlaceholderAPIExtension.java │ │ │ └── PlaceholderAPIEvent.java │ │ ├── skript │ │ │ ├── SkAddon.java │ │ │ ├── effects │ │ │ │ └── effCallDrupiFunction.java │ │ │ └── expressions │ │ │ │ └── expResultOfDrupiFunction.java │ │ └── labymod │ │ │ └── LabymodEvents.java │ │ ├── ReflectionUtil.java │ │ ├── addon │ │ └── DrupiAddon.java │ │ └── api │ │ └── handlers │ │ ├── EventHandler.java │ │ └── SpigotConfig.java ├── libs │ ├── LabyMod.jar │ ├── Skript.jar │ └── TitleManager-2.1.5.jar ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── .project └── .classpath ├── .vscode └── settings.json ├── .settings └── org.eclipse.m2e.core.prefs ├── version.v1_8 ├── target │ ├── version.v1.8-1.8.8.jar │ ├── maven-archiver │ │ └── pom.properties │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_8.iml ├── src │ └── main │ │ └── java │ │ └── net │ │ └── stacket │ │ └── drupi │ │ └── v1_8 │ │ ├── expansions │ │ └── worldguard │ │ │ ├── MovementWay.java │ │ │ ├── customEvents │ │ │ ├── RegionLeftEvent.java │ │ │ ├── RegionEnteredEvent.java │ │ │ ├── RegionEvent.java │ │ │ ├── RegionLeaveEvent.java │ │ │ └── RegionEnterEvent.java │ │ │ └── worldguardEvents.java │ │ ├── ActionBar.java │ │ └── utils.java ├── .project ├── .classpath └── pom.xml ├── version.v1_9 ├── target │ ├── version.v1.9-1.9.0.jar │ ├── maven-status │ │ └── maven-compiler-plugin │ │ │ └── compile │ │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ └── maven-archiver │ │ └── pom.properties ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_9.iml ├── .project ├── pom.xml ├── .classpath ├── .factorypath └── version.v1.9.iml ├── core ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── src │ └── main │ │ └── java │ │ └── net │ │ └── stacket │ │ └── drupi │ │ └── shared │ │ ├── api │ │ ├── Platform.java │ │ ├── interfaces │ │ │ ├── ScriptLoadMessage.java │ │ │ └── SetupMessage.java │ │ ├── config.java │ │ ├── utils │ │ │ ├── version.java │ │ │ └── http.java │ │ └── DrupiScript.java │ │ └── script │ │ ├── console.java │ │ ├── CastManager.java │ │ ├── DatabaseManager.java │ │ └── EventManager.java ├── .project └── .classpath ├── version.v1_10 ├── target │ ├── maven-status │ │ └── maven-compiler-plugin │ │ │ └── compile │ │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ ├── version.v1.10-1.10.0.jar │ └── maven-archiver │ │ └── pom.properties ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_10.iml ├── .project ├── pom.xml ├── .classpath └── .factorypath ├── version.v1_11 ├── target │ ├── maven-status │ │ └── maven-compiler-plugin │ │ │ └── compile │ │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ ├── version.v1.11-1.11.0.jar │ └── maven-archiver │ │ └── pom.properties ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_10.iml ├── .project ├── pom.xml ├── .classpath └── .factorypath ├── version.v1_12 ├── target │ ├── maven-status │ │ └── maven-compiler-plugin │ │ │ └── compile │ │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ ├── version.v1.12-1.12.0.jar │ └── maven-archiver │ │ └── pom.properties ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_10.iml ├── .project ├── pom.xml ├── .classpath ├── .factorypath └── version.v1.12.iml ├── version.v1_13 ├── target │ ├── version.v1.13-1.13.0.jar │ ├── maven-archiver │ │ └── pom.properties │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_10.iml ├── src │ └── main │ │ └── java │ │ └── net │ │ └── stacket │ │ └── drupi │ │ └── v1_13 │ │ ├── utils.java │ │ └── expansions │ │ └── worldguard │ │ ├── DrupiWGListener.java │ │ └── events │ │ ├── RegionLeftEvent.java │ │ ├── RegionEnteredEvent.java │ │ ├── RegionsLeftEvent.java │ │ └── RegionsEnteredEvent.java ├── .project ├── .classpath └── pom.xml ├── version.v1_14 ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── version.v1_10.iml ├── .project ├── pom.xml ├── .classpath ├── .factorypath └── version.v1.14.iml ├── version.v1_15 ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── .project ├── pom.xml ├── .classpath ├── .factorypath └── version.v1.15.iml ├── version.v1_16 ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ └── org.eclipse.jdt.core.prefs ├── .project ├── pom.xml ├── .factorypath ├── .classpath └── version.v1.16.iml ├── nukkitPlugin.iml ├── package-list ├── Addon ├── src │ └── main │ │ └── java │ │ └── hundeklemmen │ │ └── addon │ │ └── DrupiAddon.java ├── pom.xml └── addon.iml ├── .github └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── Drupi.iml ├── .project ├── plugin.iml ├── README.md ├── dependency-reduced-pom.xml ├── pom.xml └── CODE_OF_CONDUCT.md /.gitignore: -------------------------------------------------------------------------------- 1 | */target/* 2 | /.idea 3 | -------------------------------------------------------------------------------- /BungeeCord/src/main/resources/default.js: -------------------------------------------------------------------------------- 1 | //Default file -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/resources/default.js: -------------------------------------------------------------------------------- 1 | //Default file -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.configuration.updateBuildConfiguration": "interactive" 3 | } -------------------------------------------------------------------------------- /BungeeCord/libs/LabyMod.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/BungeeCord/libs/LabyMod.jar -------------------------------------------------------------------------------- /Spigot-Legacy/libs/LabyMod.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/Spigot-Legacy/libs/LabyMod.jar -------------------------------------------------------------------------------- /Spigot-Legacy/libs/Skript.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/Spigot-Legacy/libs/Skript.jar -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Spigot-Legacy/libs/TitleManager-2.1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/Spigot-Legacy/libs/TitleManager-2.1.5.jar -------------------------------------------------------------------------------- /version.v1_8/target/version.v1.8-1.8.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/version.v1_8/target/version.v1.8-1.8.8.jar -------------------------------------------------------------------------------- /version.v1_9/target/version.v1.9-1.9.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/version.v1_9/target/version.v1.9-1.9.0.jar -------------------------------------------------------------------------------- /core/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_10/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | net\stacket\drupi\v1_10\loadEvents.class 2 | -------------------------------------------------------------------------------- /version.v1_10/target/version.v1.10-1.10.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/version.v1_10/target/version.v1.10-1.10.0.jar -------------------------------------------------------------------------------- /version.v1_11/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | net\stacket\drupi\v1_11\loadEvents.class 2 | -------------------------------------------------------------------------------- /version.v1_11/target/version.v1.11-1.11.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/version.v1_11/target/version.v1.11-1.11.0.jar -------------------------------------------------------------------------------- /version.v1_12/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | net\stacket\drupi\v1_12\loadEvents.class 2 | -------------------------------------------------------------------------------- /version.v1_12/target/version.v1.12-1.12.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/version.v1_12/target/version.v1.12-1.12.0.jar -------------------------------------------------------------------------------- /version.v1_13/target/version.v1.13-1.13.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drupijs/Drupi-JS/HEAD/version.v1_13/target/version.v1.13-1.13.0.jar -------------------------------------------------------------------------------- /version.v1_9/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | net\stacket\drupi\v1_9\loadEvents.class 2 | -------------------------------------------------------------------------------- /BungeeCord/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Spigot-Legacy/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_10/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_11/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_12/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_13/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_14/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_15/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_16/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_8/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /version.v1_9/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /BungeeCord/src/main/resources/config.yml: -------------------------------------------------------------------------------- 1 | config: 2 | version: 2.1 3 | 4 | settings: 5 | compileMethod: modern 6 | checkOnLoad: true 7 | notifyOP: true 8 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/resources/config.yml: -------------------------------------------------------------------------------- 1 | config: 2 | version: 2.1 3 | 4 | settings: 5 | compileMethod: modern 6 | checkOnLoad: true 7 | notifyOP: true 8 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/Platform.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api; 2 | 3 | public enum Platform { 4 | Spigot, Bungeecord, Nukkit; 5 | } 6 | -------------------------------------------------------------------------------- /version.v1_8/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sun Mar 28 08:33:24 CEST 2021 3 | version=1.8.8 4 | groupId=drupi.xyz 5 | artifactId=version.v1.8 6 | -------------------------------------------------------------------------------- /version.v1_9/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sun Mar 28 08:33:26 CEST 2021 3 | version=1.9.0 4 | groupId=drupi.xyz 5 | artifactId=version.v1.9 6 | -------------------------------------------------------------------------------- /version.v1_10/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sun Mar 28 08:33:28 CEST 2021 3 | version=1.10.0 4 | groupId=drupi.xyz 5 | artifactId=version.v1.10 6 | -------------------------------------------------------------------------------- /version.v1_11/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sun Mar 28 08:33:29 CEST 2021 3 | version=1.11.0 4 | groupId=drupi.xyz 5 | artifactId=version.v1.11 6 | -------------------------------------------------------------------------------- /version.v1_12/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sun Mar 28 08:33:31 CEST 2021 3 | version=1.12.0 4 | groupId=drupi.xyz 5 | artifactId=version.v1.12 6 | -------------------------------------------------------------------------------- /version.v1_13/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sun Mar 28 08:33:33 CEST 2021 3 | version=1.13.0 4 | groupId=drupi.xyz 5 | artifactId=version.v1.13 6 | -------------------------------------------------------------------------------- /version.v1_8/version.v1_8.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_9/version.v1_9.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_10/version.v1_10.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_11/version.v1_10.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_12/version.v1_10.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_13/version.v1_10.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_14/version.v1_10.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /version.v1_10/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_10\src\main\java\net\stacket\drupi\v1_10\loadEvents.java 2 | -------------------------------------------------------------------------------- /version.v1_11/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_11\src\main\java\net\stacket\drupi\v1_11\loadEvents.java 2 | -------------------------------------------------------------------------------- /version.v1_12/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_12\src\main\java\net\stacket\drupi\v1_12\loadEvents.java 2 | -------------------------------------------------------------------------------- /version.v1_9/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_9\src\main\java\net\stacket\drupi\v1_9\loadEvents.java 2 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/interfaces/ScriptLoadMessage.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api.interfaces; 2 | 3 | public interface ScriptLoadMessage { 4 | void onSuccess(); 5 | void onError(String ScriptError); 6 | } 7 | -------------------------------------------------------------------------------- /nukkitPlugin.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /package-list: -------------------------------------------------------------------------------- 1 | hundeklemmen 2 | net.stacket.drupi.api 3 | net.stacket.drupi.events 4 | net.stacket.drupi.extra 5 | net.stacket.drupi.script 6 | net.stacket.drupi.worldedit 7 | net.stacket.drupi.worldguard 8 | net.stacket.drupi.worldguard.customEvents 9 | -------------------------------------------------------------------------------- /BungeeCord/src/main/resources/plugin.yml: -------------------------------------------------------------------------------- 1 | name: Drupi 2 | main: net.stacket.drupi.bungeecord.MainPlugin 3 | version: "1.0.0" 4 | author: "Stacket Group" 5 | description: "Minecraft development made easy." 6 | website: "https://stacket.net/drupi" 7 | softdepend: [LabyModAPI] -------------------------------------------------------------------------------- /core/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /BungeeCord/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /Spigot-Legacy/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_10/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_11/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_12/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_13/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_14/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_15/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_16/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_8/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /version.v1_9/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=true 3 | org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations 4 | org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations 5 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/interfaces/SetupMessage.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api.interfaces; 2 | 3 | import org.graalvm.polyglot.Context; 4 | public interface SetupMessage { 5 | 6 | void onMessage(String message); 7 | void loadManagers(Context engine); 8 | } 9 | -------------------------------------------------------------------------------- /Addon/src/main/java/hundeklemmen/addon/DrupiAddon.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.addon; 2 | 3 | public class DrupiAddon { 4 | 5 | private String name; 6 | 7 | public DrupiAddon(String name){ 8 | this.name = name; 9 | } 10 | 11 | 12 | public String getName(){ 13 | return this.name; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /BungeeCord/src/main/resources/META-INF/truffle/language: -------------------------------------------------------------------------------- 1 | #https://github.com/graalvm/graaljs/issues/125 2 | 3 | language1.characterMimeType.0=application/tregex 4 | language1.className=com.oracle.truffle.regex.RegexLanguage 5 | language1.id=regex 6 | language1.implementationName= 7 | language1.interactive=false 8 | language1.internal=true 9 | language1.name=REGEX 10 | language1.version=0.1 -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/resources/META-INF/truffle/language: -------------------------------------------------------------------------------- 1 | #https://github.com/graalvm/graaljs/issues/125 2 | 3 | language1.characterMimeType.0=application/tregex 4 | language1.className=com.oracle.truffle.regex.RegexLanguage 5 | language1.id=regex 6 | language1.implementationName= 7 | language1.interactive=false 8 | language1.internal=true 9 | language1.name=REGEX 10 | language1.version=0.1 -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/resources/plugin.yml: -------------------------------------------------------------------------------- 1 | name: Drupi 2 | api: "1.0.0" 3 | main: net.stacket.drupi.legacy.MainPlugin 4 | author: ["Hundeklemmen", "Stacket Group", "SlickNicky10"] 5 | version: "1.0.0" 6 | description: "Minecraft development made easy." 7 | website: "https://stacket.net/drupi" 8 | softdepend: [PlaceholderAPI, WorldGuard, Skript, TitleManager, LabyModAPI] 9 | commands: 10 | drupi: 11 | description: Interacting with the plugin 12 | usage: /drupi [args] -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/guiManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import org.bukkit.Material; 5 | import org.bukkit.inventory.ItemStack; 6 | 7 | public class guiManager { 8 | 9 | private MainPlugin plugin; 10 | 11 | public guiManager(MainPlugin plugin){ 12 | this.plugin = plugin; 13 | } 14 | 15 | public ItemStack newItemStack(Material obj){ 16 | return new ItemStack(obj); 17 | } 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /core/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /BungeeCord/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_8/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_9/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /Spigot-Legacy/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/extra/eventsHandler.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.extra; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import net.stacket.drupi.shared.api.Drupi; 5 | 6 | public class eventsHandler { 7 | 8 | private MainPlugin plugin; 9 | private Drupi drupi; 10 | 11 | public eventsHandler(MainPlugin plugin, Drupi drupi){ 12 | this.plugin = plugin; 13 | this.drupi = drupi; 14 | } 15 | 16 | public void register(String event, Runnable func){ 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /version.v1_10/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_11/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_12/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_13/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_14/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_15/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /version.v1_16/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=enabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/placeholderapi/PlaceholderAPIEventHandler.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.placeholderapi; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import org.bukkit.event.EventHandler; 5 | import org.bukkit.event.Listener; 6 | 7 | public class PlaceholderAPIEventHandler implements Listener { 8 | 9 | @EventHandler 10 | public String get(PlaceholderAPIEvent event){ 11 | MainPlugin.drupi.callEvent("onPlaceholderRequest", event); 12 | return null; 13 | } 14 | } -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/extra/configHandler.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.extra; 2 | 3 | import org.bukkit.configuration.file.YamlConfiguration; 4 | 5 | import java.io.File; 6 | import java.io.IOException; 7 | 8 | 9 | public class configHandler extends YamlConfiguration { 10 | public boolean exists(String index){ 11 | return this.contains(index); 12 | } 13 | public void save(){ 14 | try { 15 | this.save(new File("")); 16 | } catch (IOException e) { 17 | e.printStackTrace(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /version.v1_13/src/main/java/net/stacket/drupi/v1_13/utils.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_13; 2 | 3 | import java.lang.reflect.Field; 4 | 5 | public class utils { 6 | 7 | public static Object getPrivateField(Object object, String field) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException { 8 | Class clazz = object.getClass(); 9 | Field objectField = clazz.getSuperclass().getDeclaredField(field); 10 | objectField.setAccessible(true); 11 | Object result = objectField.get(object); 12 | return result; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/placeholderAPIManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import me.clip.placeholderapi.PlaceholderAPI; 5 | import org.bukkit.entity.Player; 6 | 7 | public class placeholderAPIManager { 8 | 9 | private MainPlugin plugin; 10 | 11 | public placeholderAPIManager(MainPlugin plugin){ 12 | this.plugin = plugin; 13 | } 14 | 15 | public String translateString(Player player, String text){ 16 | return PlaceholderAPI.setPlaceholders(player, text); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/drupiHelper.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | 5 | import javax.script.Invocable; 6 | import javax.script.ScriptException; 7 | 8 | public class drupiHelper { 9 | 10 | MainPlugin plugin; 11 | 12 | public drupiHelper(MainPlugin plugin){ 13 | this.plugin = plugin; 14 | } 15 | 16 | public void moduleLoaded(String name, String version){ 17 | if(!plugin.loadedModules.contains(name + "@" + version)) { 18 | plugin.loadedModules.add(name + "@" + version); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/script/console.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.script; 2 | 3 | import net.stacket.drupi.shared.api.Drupi; 4 | 5 | public class console { 6 | 7 | public static Drupi drupi; 8 | private console instance; 9 | 10 | public console(Drupi drupi){ 11 | this.drupi = drupi; 12 | this.instance = this; 13 | } 14 | 15 | public void log(String info){ 16 | drupi.log.info(info); 17 | } 18 | public void warn(String info){ 19 | drupi.log.warning(info); 20 | } 21 | public void error(String info){ 22 | drupi.log.warning(info); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/drupiHelper.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script; 2 | 3 | 4 | import net.stacket.drupi.bungeecord.MainPlugin; 5 | 6 | import javax.script.Invocable; 7 | import javax.script.ScriptException; 8 | 9 | public class drupiHelper { 10 | 11 | MainPlugin plugin; 12 | 13 | public drupiHelper(MainPlugin plugin){ 14 | this.plugin = plugin; 15 | } 16 | 17 | public void moduleLoaded(String name, String version){ 18 | if(!plugin.loadedModules.contains(name + "@" + version)) { 19 | plugin.loadedModules.add(name + "@" + version); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /version.v1_13/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | net\stacket\drupi\v1_13\expansions\worldguard\DrupiWGListener.class 2 | net\stacket\drupi\v1_13\expansions\worldguard\events\RegionsLeftEvent.class 3 | net\stacket\drupi\v1_13\expansions\worldguard\events\RegionLeftEvent.class 4 | net\stacket\drupi\v1_13\expansions\worldguard\events\RegionsEnteredEvent.class 5 | net\stacket\drupi\v1_13\expansions\worldguard\Listeners.class 6 | net\stacket\drupi\v1_13\expansions\worldguard\events\RegionEnteredEvent.class 7 | net\stacket\drupi\v1_13\expansions\worldguard\WorldguardAPIManager.class 8 | net\stacket\drupi\v1_13\loadEvents.class 9 | net\stacket\drupi\v1_13\utils.class 10 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /Addon/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | addon 13 | 14 | 1.8 15 | 1.8 16 | 17 | 18 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/ExpressManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import express.Express; 4 | import net.stacket.drupi.legacy.MainPlugin; 5 | 6 | public class ExpressManager { 7 | 8 | MainPlugin instance; 9 | 10 | public ExpressManager(MainPlugin instance){ 11 | this.instance = instance; 12 | } 13 | 14 | public Express New(){ 15 | Express ex = new Express(); 16 | instance.ExpressRunning.add(ex); 17 | return ex; 18 | } 19 | public Express New(String hostName){ 20 | Express ex = new Express(hostName); 21 | instance.ExpressRunning.add(ex); 22 | return ex; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/config.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api; 2 | 3 | public class config { 4 | 5 | //VersionChecker 6 | public boolean VC_notifyOP = true; 7 | public boolean VC_checkOnLoad = true; 8 | public int configVersion = 1; 9 | public String compileMethod = "modern"; 10 | 11 | 12 | public config(int VC_configVersion, String VC_compileMethod, boolean _VC_notifyOP, boolean _VC_checkOnLoad){ 13 | this.configVersion = VC_configVersion; 14 | this.compileMethod = VC_compileMethod; 15 | this.VC_notifyOP = _VC_notifyOP; 16 | this.VC_checkOnLoad = _VC_checkOnLoad; 17 | }; 18 | 19 | public config() { 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/ExpressManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script; 2 | 3 | import express.Express; 4 | import net.stacket.drupi.bungeecord.MainPlugin; 5 | 6 | public class ExpressManager { 7 | 8 | MainPlugin instance; 9 | 10 | public ExpressManager(MainPlugin instance){ 11 | this.instance = instance; 12 | } 13 | 14 | public Express New(){ 15 | Express ex = new Express(); 16 | instance.ExpressRunning.add(ex); 17 | return ex; 18 | } 19 | public Express New(String hostName){ 20 | Express ex = new Express(hostName); 21 | instance.ExpressRunning.add(ex); 22 | return ex; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/MovementWay.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard; 2 | 3 | /** 4 | * describes the way how a player left/entered a region 5 | * @author mewin 6 | */ 7 | public enum MovementWay { 8 | /** 9 | * this way is used if a player entered/left a region by walking 10 | */ 11 | MOVE, 12 | /** 13 | * this way is used if a player teleported into a region / out of a region 14 | */ 15 | TELEPORT, 16 | /** 17 | * this way is used if a player spawned in a region 18 | */ 19 | SPAWN, 20 | /** 21 | * this way is used if a player left a region by disconnecting 22 | */ 23 | DISCONNECT 24 | } -------------------------------------------------------------------------------- /Drupi.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Addon/addon.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/castManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script; 2 | 3 | import net.stacket.drupi.shared.script.CastManager; 4 | import net.md_5.bungee.api.CommandSender; 5 | import net.md_5.bungee.api.connection.ProxiedPlayer; 6 | 7 | public class castManager extends CastManager { 8 | 9 | public ProxiedPlayer asPlayer(CommandSender sender){ 10 | return (ProxiedPlayer) sender; 11 | } 12 | 13 | public Object as(String type, Object obj){ 14 | try { 15 | return Class.forName(type).cast(obj); 16 | } catch (ClassNotFoundException e) { 17 | e.printStackTrace(); 18 | return null; 19 | //(CraftPlayer) obj 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | plugin 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | 19 | 1616902039203 20 | 21 | 30 22 | 23 | org.eclipse.core.resources.regexFilterMatcher 24 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/placeholderapi/PlaceholderAPIManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.placeholderapi; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import me.clip.placeholderapi.PlaceholderAPI; 5 | import org.bukkit.OfflinePlayer; 6 | import org.bukkit.entity.Player; 7 | 8 | public class PlaceholderAPIManager { 9 | private MainPlugin plugin; 10 | 11 | public PlaceholderAPIManager(MainPlugin plugin){ 12 | this.plugin = plugin; 13 | } 14 | public String translateString(Player player, String text){ 15 | return PlaceholderAPI.setPlaceholders(player, text); 16 | } 17 | public String translateString(OfflinePlayer player, String text){ 18 | return PlaceholderAPI.setPlaceholders(player, text); 19 | } 20 | 21 | 22 | } -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/script/CastManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.script; 2 | 3 | public class CastManager { 4 | public String asString(Object text){ 5 | return String.valueOf(text); 6 | } 7 | public int asInt(Object text){ 8 | return Integer.parseInt(String.valueOf(text)); 9 | } 10 | public double asDouble(Object text){ 11 | return Double.parseDouble(String.valueOf(text)); 12 | } 13 | public float asFloat(Object text){ 14 | return Float.parseFloat(String.valueOf(text)); 15 | } 16 | public byte asByte(Object text){ 17 | return (byte) text; 18 | } 19 | public Number asNumber(Object text){ 20 | return (Number) text; 21 | } 22 | public Class asClass(Class text){ 23 | return text; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /plugin.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/extra/ServerPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package net.stacket.drupi.legacy.extra; 3 | 4 | import org.bukkit.Bukkit; 5 | 6 | enum ServerPackage { 7 | 8 | MINECRAFT("net.minecraft.server." + getServerVersion()), 9 | CRAFTBUKKIT("org.bukkit.craftbukkit." + getServerVersion()); 10 | 11 | private final String path; 12 | 13 | ServerPackage(String path) { 14 | this.path = path; 15 | } 16 | 17 | public static String getServerVersion() { 18 | return Bukkit.getServer().getClass().getPackage().getName().substring(23); 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return path; 24 | } 25 | 26 | public Class getClass(String className) throws ClassNotFoundException { 27 | return Class.forName(this.toString() + "." + className); 28 | } 29 | 30 | } -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/utils/version.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api.utils; 2 | 3 | import com.google.gson.Gson; 4 | 5 | import java.io.IOException; 6 | import java.util.Map; 7 | 8 | public class version { 9 | 10 | public boolean updateAvailable(String current){ 11 | try { 12 | String githubLatest = http.fireGet("https://api.github.com/repos/drupijs/Drupi-JS/releases/latest").toString(); 13 | Map javaMap = new Gson().fromJson(githubLatest, Map.class); 14 | String latestVersion = javaMap.get("tag_name").toString(); 15 | if(latestVersion.equalsIgnoreCase(current)){ 16 | return true; 17 | } else { 18 | return false; 19 | } 20 | } catch (IOException e) { 21 | return false; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/utils/http.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api.utils; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.IOException; 5 | import java.io.InputStreamReader; 6 | import java.net.HttpURLConnection; 7 | import java.net.URL; 8 | 9 | public class http { 10 | public static String fireGet(String urlParam) throws IOException { 11 | StringBuilder result = new StringBuilder(); 12 | URL url = new URL(urlParam); 13 | HttpURLConnection conn = (HttpURLConnection) url.openConnection(); 14 | conn.setRequestMethod("GET"); 15 | BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); 16 | String line; 17 | while ((line = rd.readLine()) != null) { 18 | result.append(line); 19 | } 20 | rd.close(); 21 | return result.toString(); 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/ReflectionUtil.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy; 2 | 3 | import java.lang.reflect.Field; 4 | 5 | /** 6 | * @author zml2008 7 | */ 8 | public class ReflectionUtil { 9 | @SuppressWarnings("unchecked") 10 | public static T getField(Object from, String name) { 11 | Class checkClass = from.getClass(); 12 | do { 13 | try { 14 | Field field = checkClass.getDeclaredField(name); 15 | field.setAccessible(true); 16 | return (T) field.get(from); 17 | } catch (NoSuchFieldException e) { 18 | e.printStackTrace(); 19 | } catch (IllegalAccessException e) { 20 | e.printStackTrace(); 21 | } 22 | } while (checkClass.getSuperclass() != Object.class && ((checkClass = checkClass.getSuperclass()) != null)); 23 | return null; 24 | } 25 | } -------------------------------------------------------------------------------- /core/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | core 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039186 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /BungeeCord/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | BungeeCord 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039158 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_8/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.8 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039401 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_9/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.9 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039411 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Spigot-Legacy/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Spigot-Legacy 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039171 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_10/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.10 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039213 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_11/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.11 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039239 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_12/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.12 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039264 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_13/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.13 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039319 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_14/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.14 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039355 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_15/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.15 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039367 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_16/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | version.v1.16 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1616902039384 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/ActionBar.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8; 2 | 3 | 4 | import net.minecraft.server.v1_8_R3.IChatBaseComponent; 5 | import net.minecraft.server.v1_8_R3.PacketPlayOutChat; 6 | import org.bukkit.Bukkit; 7 | import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer; 8 | import org.bukkit.entity.Player; 9 | 10 | public class ActionBar { 11 | private PacketPlayOutChat packet; 12 | 13 | public ActionBar(String text) { 14 | PacketPlayOutChat packet = new PacketPlayOutChat(IChatBaseComponent.ChatSerializer.a("{\"text\":\"" + text + "\"}"), (byte) 2); 15 | this.packet = packet; 16 | } 17 | 18 | public void sendToPlayer(Player p) { 19 | ((CraftPlayer)p).getHandle().playerConnection.sendPacket(packet); 20 | } 21 | 22 | public void sendToAll() { 23 | for (Player p : Bukkit.getServer().getOnlinePlayers()) { 24 | ((CraftPlayer)p).getHandle().playerConnection.sendPacket(packet);; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/customEvents/RegionLeftEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard.customEvents; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import net.stacket.drupi.v1_8.expansions.worldguard.MovementWay; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.player.PlayerEvent; 7 | 8 | /** 9 | * event that is triggered after a player left a WorldGuard region 10 | * @author mewin 11 | */ 12 | public class RegionLeftEvent extends RegionEvent 13 | { 14 | /** 15 | * creates a new RegionLeftEvent 16 | * @param region the region the player has left 17 | * @param player the player who triggered the event 18 | * @param movement the type of movement how the player left the region 19 | */ 20 | public RegionLeftEvent(ProtectedRegion region, Player player, MovementWay movement, PlayerEvent parent) 21 | { 22 | super(region, player, movement, parent); 23 | } 24 | } -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/customEvents/RegionEnteredEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard.customEvents; 2 | 3 | 4 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 5 | import net.stacket.drupi.v1_8.expansions.worldguard.MovementWay; 6 | import org.bukkit.entity.Player; 7 | import org.bukkit.event.player.PlayerEvent; 8 | 9 | /** 10 | * event that is triggered after a player entered a WorldGuard region 11 | * @author mewin 12 | */ 13 | public class RegionEnteredEvent extends RegionEvent { 14 | /** 15 | * creates a new RegionEnteredEvent 16 | * 17 | * @param region the region the player entered 18 | * @param player the player who triggered the event 19 | * @param movement the type of movement how the player entered the region 20 | */ 21 | public RegionEnteredEvent(ProtectedRegion region, Player player, MovementWay movement, PlayerEvent parent) { 22 | super(region, player, movement, parent); 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /version.v1_8/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | net\stacket\drupi\v1_8\expansions\worldguard\WGRegionEventsListener$2.class 2 | net\stacket\drupi\v1_8\expansions\worldguard\WGRegionEventsListener.class 3 | net\stacket\drupi\v1_8\ActionBar.class 4 | net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionEvent.class 5 | net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionEnteredEvent.class 6 | net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionLeftEvent.class 7 | net\stacket\drupi\v1_8\expansions\worldguard\WorldguardAPIManager.class 8 | net\stacket\drupi\v1_8\expansions\worldguard\MovementWay.class 9 | net\stacket\drupi\v1_8\loadEvents.class 10 | net\stacket\drupi\v1_8\utils.class 11 | net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionEnterEvent.class 12 | net\stacket\drupi\v1_8\expansions\worldguard\worldguardEvents.class 13 | net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionLeaveEvent.class 14 | net\stacket\drupi\v1_8\expansions\worldguard\WGRegionEventsListener$1.class 15 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/castManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.shared.script.CastManager; 4 | import org.bukkit.block.Sign; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.material.Wool; 7 | 8 | public class castManager extends CastManager { 9 | 10 | public Player asPlayer(Object sender){ 11 | return (Player) sender; 12 | } 13 | public Wool asWool(Object obj){ 14 | return (Wool) obj; 15 | } 16 | public Sign asSign(Object obj){ 17 | return (Sign) obj; 18 | } 19 | //public int getPing(Player p) { 20 | // CraftPlayer cp = (CraftPlayer) p; 21 | // EntityPlayer ep = cp.getHandle(); 22 | // return ep.ping; 23 | //} 24 | public Object as(String type, Object obj){ 25 | try { 26 | return Class.forName(type).cast(obj); 27 | } catch (ClassNotFoundException e) { 28 | e.printStackTrace(); 29 | return null; 30 | //(CraftPlayer) obj 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/skript/SkAddon.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.skript; 2 | 3 | import ch.njol.skript.Skript; 4 | import ch.njol.skript.SkriptAddon; 5 | import ch.njol.skript.lang.ExpressionType; 6 | import net.stacket.drupi.legacy.MainPlugin; 7 | import net.stacket.drupi.legacy.expansions.skript.effects.effCallDrupiFunction; 8 | import net.stacket.drupi.legacy.expansions.skript.expressions.expResultOfDrupiFunction; 9 | import net.stacket.drupi.shared.api.Drupi; 10 | 11 | public class SkAddon { 12 | 13 | public static SkriptAddon skaddon; 14 | public static Drupi drupi; 15 | 16 | public SkAddon(Drupi drupi){ 17 | this.drupi = drupi; 18 | skaddon = Skript.registerAddon(MainPlugin.instance); 19 | 20 | Skript.registerEffect(effCallDrupiFunction.class, "call drupi function %string% [with [argument[s]] %objects%]"); 21 | Skript.registerExpression(expResultOfDrupiFunction.class, Object.class, ExpressionType.SIMPLE,"result [of] drupi function %string% [with [argument[s]] %objects%]"); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/script/DatabaseManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.script; 2 | 3 | import com.mongodb.BasicDBObject; 4 | import com.mongodb.MongoClient; 5 | import com.mongodb.MongoClientURI; 6 | 7 | import java.net.UnknownHostException; 8 | import java.util.Map; 9 | 10 | public class DatabaseManager { 11 | 12 | public MongoClientURI newUrl(String url){ 13 | return new MongoClientURI(url); 14 | } 15 | 16 | public MongoClient newClient(MongoClientURI url){ 17 | try { 18 | return new MongoClient(url); 19 | } catch (UnknownHostException e) { 20 | e.printStackTrace(); 21 | } 22 | return null; 23 | } 24 | 25 | public BasicDBObject newObj(){ 26 | return new BasicDBObject(); 27 | } 28 | 29 | public BasicDBObject convertJSON(Map objectMap){ 30 | BasicDBObject obj = new BasicDBObject(); 31 | for(Map.Entry entry : objectMap.entrySet()){ 32 | obj.put(String.valueOf(entry.getKey()), entry.getValue()); 33 | }; 34 | return obj; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/addon/DrupiAddon.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.addon; 2 | 3 | import org.graalvm.polyglot.Value; 4 | 5 | import net.stacket.drupi.legacy.MainPlugin; 6 | import net.stacket.drupi.shared.api.Drupi; 7 | 8 | public class DrupiAddon { 9 | 10 | private String name; 11 | private DrupiAddon instance; 12 | private Drupi drupi; 13 | 14 | public DrupiAddon(String name, Object clas){ 15 | this.name = name; 16 | this.instance = this; 17 | this.drupi = MainPlugin.drupi; 18 | drupi.registerManager(name, clas); 19 | if(Drupi.engine != null) { 20 | final Value bindings = Drupi.engine.getBindings("js"); 21 | bindings.putMember(name, clas); 22 | } 23 | drupi.log.info("Registered Addon: " + name); 24 | } 25 | 26 | public void callEvent(String name, Object... event){ 27 | drupi.callFunction(this.name + "_" + name, event); 28 | } 29 | public Object callEventWithResult(String name, Object... event){ 30 | return drupi.callFunctionWithResult(this.name + "_" + name, event); 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/placeholderapi/PlaceholderAPIExtension.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.placeholderapi; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import me.clip.placeholderapi.expansion.PlaceholderExpansion; 5 | import org.bukkit.Bukkit; 6 | import org.bukkit.entity.Player; 7 | 8 | public class PlaceholderAPIExtension extends PlaceholderExpansion { 9 | 10 | @Override 11 | public boolean canRegister(){ 12 | return true; 13 | } 14 | 15 | @Override 16 | public String getAuthor(){ 17 | return "Hundeklemmen"; 18 | } 19 | 20 | @Override 21 | public String getIdentifier(){ 22 | return "drupi"; 23 | } 24 | 25 | @Override 26 | public String getVersion(){ 27 | return MainPlugin.instance.getDescription().getVersion(); 28 | } 29 | 30 | @Override 31 | public boolean persist(){ 32 | return true; 33 | } 34 | 35 | @Override 36 | public String onPlaceholderRequest(Player player, String identifier){ 37 | PlaceholderAPIEvent event = new PlaceholderAPIEvent(identifier, player, "drupi"); 38 | Bukkit.getServer().getPluginManager().callEvent(event); 39 | return event.getResult(); 40 | } 41 | 42 | 43 | } -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/script/EventManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.script; 2 | 3 | import net.stacket.drupi.shared.api.Drupi; 4 | 5 | import java.util.ArrayList; 6 | import java.util.Arrays; 7 | 8 | import org.graalvm.polyglot.Value; 9 | 10 | 11 | public class EventManager { 12 | private Drupi drupi; 13 | 14 | public EventManager(Drupi drupi){ 15 | this.drupi = drupi; 16 | } 17 | 18 | public Value addListener(String eventName, Value invokeFunction){ 19 | if(this.drupi.registeredEvents.containsKey(eventName)) { 20 | this.drupi.registeredEvents.get(eventName).add(invokeFunction); 21 | return invokeFunction; 22 | } else { 23 | this.drupi.registeredEvents.put(eventName, new ArrayList(Arrays.asList(new Value[]{invokeFunction}))); 24 | return invokeFunction; 25 | } 26 | } 27 | 28 | 29 | public void removeListener(String eventName, Value invokeFunction){ 30 | if(this.drupi.registeredEvents.containsKey(eventName)) { 31 | if(this.drupi.registeredEvents.get(eventName).contains(invokeFunction)) { 32 | this.drupi.registeredEvents.get(eventName).remove(invokeFunction); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /version.v1_13/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\events\RegionsEnteredEvent.java 2 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\utils.java 3 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\loadEvents.java 4 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\WorldguardAPIManager.java 5 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\events\RegionsLeftEvent.java 6 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\events\RegionLeftEvent.java 7 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\DrupiWGListener.java 8 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\Listeners.java 9 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_13\src\main\java\net\stacket\drupi\v1_13\expansions\worldguard\events\RegionEnteredEvent.java 10 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/utils.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8; 2 | 3 | import org.bukkit.Bukkit; 4 | import org.bukkit.command.CommandMap; 5 | import org.bukkit.command.SimpleCommandMap; 6 | 7 | import java.lang.reflect.Field; 8 | 9 | public class utils { 10 | 11 | 12 | public static T getField(Object from, String name) { 13 | Class checkClass = from.getClass(); 14 | do { 15 | try { 16 | Field field = checkClass.getDeclaredField(name); 17 | field.setAccessible(true); 18 | return (T) field.get(from); 19 | } catch (NoSuchFieldException e) { 20 | e.printStackTrace(); 21 | } catch (IllegalAccessException e) { 22 | e.printStackTrace(); 23 | } 24 | } while (checkClass.getSuperclass() != Object.class && ((checkClass = checkClass.getSuperclass()) != null)); 25 | return null; 26 | } 27 | 28 | public static CommandMap getCommandMap(){ 29 | CommandMap commandMap=getField(Bukkit.getServer().getPluginManager(),"commandMap"); 30 | if (commandMap == null) { 31 | commandMap = new SimpleCommandMap(Bukkit.getServer()); 32 | } 33 | return commandMap; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/Globals.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script; 2 | 3 | import org.graalvm.polyglot.Value; 4 | 5 | import net.md_5.bungee.api.scheduler.TaskScheduler; 6 | import net.stacket.drupi.bungeecord.MainPlugin; 7 | 8 | public class Globals { 9 | private final TaskScheduler scheduler = MainPlugin.instance.getProxy().getScheduler(); 10 | 11 | public Globals(){} 12 | 13 | public int setTimeout(Value fn, int delay){ 14 | return scheduler.schedule(MainPlugin.instance, () -> { 15 | if(fn.canExecute()) fn.executeVoid(); 16 | }, delay, java.util.concurrent.TimeUnit.SECONDS).getId(); 17 | } 18 | 19 | public int runAsync(Value fn, int delay){ 20 | return scheduler.runAsync(MainPlugin.instance, () -> { 21 | if(fn.canExecute()) fn.executeVoid(); 22 | }).getId(); 23 | } 24 | 25 | 26 | public int setInterval(Value fn, int delay){ 27 | return scheduler.schedule(MainPlugin.instance, () -> { 28 | if(fn.canExecute()) fn.executeVoid(); 29 | }, 0, delay, java.util.concurrent.TimeUnit.SECONDS).getId(); 30 | } 31 | 32 | 33 | public void clearInterval(int id){ 34 | scheduler.cancel(id); 35 | } 36 | 37 | public void clearTimeout(int id){ 38 | scheduler.cancel(id); 39 | } 40 | } -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/socketManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import io.socket.client.IO; 5 | import io.socket.client.Socket; 6 | import io.socket.engineio.client.transports.WebSocket; 7 | 8 | import java.net.URISyntaxException; 9 | 10 | import static io.socket.client.IO.socket; 11 | 12 | public class socketManager { 13 | 14 | private MainPlugin plugin; 15 | 16 | public socketManager(MainPlugin plugin){ 17 | this.plugin = plugin; 18 | } 19 | 20 | public Socket newConnection(String url){ 21 | return newConnection(url, true, true, true); 22 | } 23 | 24 | public Socket newConnection(String url, boolean websocketOnly, boolean forceNew, boolean reconnection){ 25 | 26 | try { 27 | IO.Options opt = new IO.Options(); 28 | if(websocketOnly == true){ 29 | opt.transports = new String[]{WebSocket.NAME}; 30 | } 31 | opt.forceNew = forceNew; 32 | opt.reconnection = reconnection; 33 | 34 | Socket sock = socket(url, opt); 35 | plugin.sockets.add(sock); 36 | return sock; 37 | 38 | 39 | } catch (URISyntaxException e) { 40 | e.printStackTrace(); 41 | } 42 | return null; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/socketManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script; 2 | 3 | import net.stacket.drupi.bungeecord.MainPlugin; 4 | import io.socket.client.IO; 5 | import io.socket.client.Socket; 6 | import io.socket.engineio.client.transports.WebSocket; 7 | 8 | import java.net.URISyntaxException; 9 | 10 | import static io.socket.client.IO.socket; 11 | 12 | 13 | public class socketManager { 14 | 15 | private MainPlugin plugin; 16 | 17 | public socketManager(MainPlugin plugin){ 18 | this.plugin = plugin; 19 | } 20 | 21 | public Socket newConnection(String url){ 22 | return newConnection(url, true, true, true); 23 | } 24 | 25 | public Socket newConnection(String url, boolean websocketOnly, boolean forceNew, boolean reconnection){ 26 | 27 | try { 28 | IO.Options opt = new IO.Options(); 29 | if(websocketOnly == true){ 30 | opt.transports = new String[]{WebSocket.NAME}; 31 | } 32 | opt.forceNew = forceNew; 33 | opt.reconnection = reconnection; 34 | 35 | Socket sock = socket(url, opt); 36 | plugin.sockets.add(sock); 37 | return sock; 38 | 39 | 40 | } catch (URISyntaxException e) { 41 | e.printStackTrace(); 42 | } 43 | return null; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/placeholderapi/PlaceholderAPIEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.placeholderapi; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.event.Event; 5 | import org.bukkit.event.HandlerList; 6 | 7 | public class PlaceholderAPIEvent extends Event { 8 | private static final HandlerList handlerList = new HandlerList(); 9 | 10 | private String identifier; 11 | private Player player; 12 | private String prefix; 13 | private String result; 14 | 15 | @Override 16 | public HandlerList getHandlers() { 17 | return handlerList; 18 | } 19 | 20 | public static HandlerList getHandlerList() { 21 | return handlerList; 22 | } 23 | 24 | public PlaceholderAPIEvent(String identifier, Player player, String prefix) { 25 | this.prefix = prefix; 26 | this.identifier = identifier; 27 | this.player = player; 28 | } 29 | 30 | public Player getPlayer() { 31 | return player; 32 | } 33 | 34 | public String getIdentifier() { 35 | return identifier; 36 | } 37 | 38 | public String getPrefix() { 39 | return prefix; 40 | } 41 | 42 | public String getResult() { 43 | return result; 44 | } 45 | 46 | public void setResult(String result) { 47 | this.result = result; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/labymod/LabymodEvents.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.labymod; 2 | 3 | import net.stacket.drupi.shared.api.Drupi; 4 | import net.labymod.serverapi.bukkit.event.LabyModPlayerJoinEvent; 5 | import net.labymod.serverapi.bukkit.event.MessageReceiveEvent; 6 | import net.labymod.serverapi.bukkit.event.MessageSendEvent; 7 | import net.labymod.serverapi.bukkit.event.PermissionsSendEvent; 8 | import org.bukkit.event.EventHandler; 9 | import org.bukkit.event.Listener; 10 | 11 | public class LabymodEvents implements Listener { 12 | 13 | private Drupi drupi; 14 | 15 | public LabymodEvents(Drupi drupi){ 16 | this.drupi = drupi; 17 | } 18 | 19 | @EventHandler 20 | public void LabyMessageReceive(MessageReceiveEvent event){ 21 | drupi.callEvent("LabyModMessageReceiveEvent", event); 22 | } 23 | 24 | @EventHandler 25 | public void LabyModPlayerJoin(LabyModPlayerJoinEvent event){ 26 | drupi.callEvent("LabyModLabyModPlayerJoinEvent", event); 27 | } 28 | 29 | @EventHandler 30 | public void PermissionsSend(PermissionsSendEvent event){ 31 | drupi.callEvent("LabyModPermissionsSendEvent", event); 32 | } 33 | 34 | @EventHandler 35 | public void MessageSend(MessageSendEvent event){ 36 | drupi.callEvent("LabyModMessageSendEvent", event); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/labymod/LabymodEvents.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script.labymod; 2 | 3 | import net.stacket.drupi.shared.api.Drupi; 4 | import net.labymod.serverapi.bungee.event.LabyModPlayerJoinEvent; 5 | import net.labymod.serverapi.bungee.event.MessageReceiveEvent; 6 | import net.labymod.serverapi.bungee.event.MessageSendEvent; 7 | import net.labymod.serverapi.bungee.event.PermissionsSendEvent; 8 | import net.md_5.bungee.api.plugin.Listener; 9 | import net.md_5.bungee.event.EventHandler; 10 | 11 | public class LabymodEvents implements Listener { 12 | 13 | private Drupi drupi; 14 | 15 | public LabymodEvents(Drupi drupi){ 16 | this.drupi = drupi; 17 | } 18 | 19 | @EventHandler 20 | public void LabyMessageReceive(MessageReceiveEvent event){ 21 | drupi.callEvent("LabyModMessageReceiveEvent", event); 22 | } 23 | 24 | @EventHandler 25 | public void LabyModPlayerJoin(LabyModPlayerJoinEvent event){ 26 | drupi.callEvent("LabyModPlayerJoinEvent", event); 27 | } 28 | 29 | @EventHandler 30 | public void PermissionsSend(PermissionsSendEvent event){ 31 | drupi.callEvent("LabyModPermissionsSendEvent", event); 32 | } 33 | 34 | @EventHandler 35 | public void MessageSend(MessageSendEvent event){ 36 | drupi.callEvent("LabyModMessageSendEvent", event); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/scoreboardManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import org.bukkit.Bukkit; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.scoreboard.DisplaySlot; 7 | import org.bukkit.scoreboard.Objective; 8 | import org.bukkit.scoreboard.Score; 9 | import org.bukkit.scoreboard.Scoreboard; 10 | 11 | public class scoreboardManager { 12 | 13 | private MainPlugin plugin; 14 | 15 | public scoreboardManager(MainPlugin plugin) { 16 | this.plugin = plugin; 17 | } 18 | 19 | public Scoreboard create(){ 20 | return MainPlugin.instance.getServer().getScoreboardManager().getNewScoreboard(); 21 | } 22 | public Objective newDisplay(Scoreboard sc, String title){ 23 | Objective obj = sc.registerNewObjective("dummy", "dummy"); 24 | obj.setDisplaySlot(DisplaySlot.SIDEBAR); 25 | obj.setDisplayName(title); 26 | return obj; 27 | } 28 | public void setLine(Objective dis, String text, int numb){ 29 | Score sc = dis.getScore(text); 30 | sc.setScore(numb); 31 | } 32 | public void set(Player player, Scoreboard scoreboard){ 33 | player.setScoreboard(scoreboard); 34 | } 35 | public void remove(Player player){ 36 | player.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard()); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /version.v1_13/src/main/java/net/stacket/drupi/v1_13/expansions/worldguard/DrupiWGListener.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_13.expansions.worldguard; 2 | 3 | import net.stacket.drupi.shared.api.Drupi; 4 | import net.stacket.drupi.v1_13.expansions.worldguard.events.RegionEnteredEvent; 5 | import net.stacket.drupi.v1_13.expansions.worldguard.events.RegionLeftEvent; 6 | import net.stacket.drupi.v1_13.expansions.worldguard.events.RegionsEnteredEvent; 7 | import net.stacket.drupi.v1_13.expansions.worldguard.events.RegionsLeftEvent; 8 | import org.bukkit.event.EventHandler; 9 | import org.bukkit.event.Listener; 10 | 11 | public class DrupiWGListener implements Listener { 12 | 13 | 14 | Drupi drupi; 15 | public DrupiWGListener(Drupi drupi){ 16 | this.drupi = drupi; 17 | } 18 | 19 | 20 | @EventHandler 21 | public void regionEnter(RegionEnteredEvent event){ 22 | drupi.callEvent("WorldGuard_RegionEnterEvent", event); 23 | } 24 | @EventHandler 25 | public void regionsEnter(RegionsEnteredEvent event){ 26 | drupi.callEvent("WorldGuard_RegionsEnterEvent", event); 27 | } 28 | 29 | @EventHandler 30 | public void regionLeft(RegionLeftEvent event){ 31 | drupi.callEvent("WorldGuard_RegionLeaveEvent", event); 32 | } 33 | @EventHandler 34 | public void regionsLeft(RegionsLeftEvent event){ 35 | drupi.callEvent("WorldGuard_RegionsLeaveEvent", event); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/skript/effects/effCallDrupiFunction.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.skript.effects; 2 | 3 | import ch.njol.skript.lang.Effect; 4 | import ch.njol.skript.lang.Expression; 5 | import ch.njol.skript.lang.SkriptParser; 6 | import ch.njol.util.Kleenean; 7 | import net.stacket.drupi.legacy.MainPlugin; 8 | import org.bukkit.event.Event; 9 | 10 | public class effCallDrupiFunction extends Effect { 11 | 12 | private Expression function; 13 | private Expression obj; 14 | 15 | @Override 16 | public boolean init(Expression[] expressions, int arg1, Kleenean arg2, SkriptParser.ParseResult arg3){ 17 | function = (Expression) expressions[0]; 18 | if(expressions.length == 2) { 19 | obj = (Expression) expressions[1]; 20 | } 21 | return true; 22 | } 23 | 24 | @Override 25 | public String toString(Event arg0, boolean arg1){ 26 | return null; 27 | } 28 | 29 | @Override 30 | protected void execute(Event event){ 31 | if(function == null) return; 32 | 33 | String _function = function.getSingle(event); 34 | 35 | if(obj != null){ 36 | MainPlugin.drupi.callFunction(_function, obj.getArray(event)); 37 | } else { 38 | MainPlugin.drupi.callFunction(_function); 39 | } 40 | } 41 | //set {_response} to result of drupi function "" 42 | //call drupi function "test" with argument[s] x, x2 and x3 43 | } 44 | -------------------------------------------------------------------------------- /version.v1_14/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.14 16 | 1.14.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.14-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 27 | org.bukkit 28 | bukkit 29 | 1.14-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | drupi.xyz 34 | core 35 | 0.0.1 36 | provided 37 | 38 | 39 | -------------------------------------------------------------------------------- /version.v1_15/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.15 16 | 1.15.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.15-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 27 | org.bukkit 28 | bukkit 29 | 1.15-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | drupi.xyz 34 | core 35 | 0.0.1 36 | provided 37 | 38 | 39 | -------------------------------------------------------------------------------- /version.v1_9/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.9 16 | 1.9.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.9.2-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 27 | org.bukkit 28 | bukkit 29 | 1.9.2-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | drupi.xyz 34 | core 35 | 0.0.1 36 | provided 37 | 38 | 39 | -------------------------------------------------------------------------------- /version.v1_10/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.10 16 | 1.10.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.10.2-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 27 | org.bukkit 28 | bukkit 29 | 1.10.2-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | drupi.xyz 34 | core 35 | 0.0.1 36 | provided 37 | 38 | 39 | -------------------------------------------------------------------------------- /version.v1_11/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.11 16 | 1.11.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.11.2-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 27 | org.bukkit 28 | bukkit 29 | 1.11.2-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | drupi.xyz 34 | core 35 | 0.0.1 36 | provided 37 | 38 | 39 | -------------------------------------------------------------------------------- /version.v1_12/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.12 16 | 1.12.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.12.2-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 27 | org.bukkit 28 | bukkit 29 | 1.12.2-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | drupi.xyz 34 | core 35 | 0.0.1 36 | provided 37 | 38 | 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Drupi 2 | Welcome to the Drupi's github! 3 | 4 | **Drupi** is a plugin that allows anyone to customize their Minecraft server using simple scripts written in JavaScript. The possibilities for what you can do with Drupi are near limitless. You could create a simple command, or create a complex minigame easily using Drupi! If you already know how to use JavaScript, you'll be able to enjoy using Drupi right away! If you're new to JavaScript, you may want to visit our wiki https://github.com/drupijs/Drupi-JS/wiki/Getting-Started for some help with getting started! 5 | 6 | # Introduction 7 | To write a Drupi script it will be a good idea to learn the basics of javascript. Drupi is relying on functions to register, listen and interact with bukkit. We have some examples on our GitHub page that you can find here https://github.com/drupijs/Drupi-JS/wiki/Getting-Started 8 | 9 | # Need any help? 10 | You can join our community Discord at https://discord.gg/hEwaxsN 11 | 12 | # Metrics 13 | *This plugin uses bStats, to track anonymous data about servers using this plugin. It will help the future development and has no impact on your server's performance. If you really want to disable it, go to the folder /plugins/bStats/config.yml and set "enabled: false"* 14 | 15 | Website: [https://drupi.js.org](https://drupi.js.org)\ 16 | Discord: [https://discord.gg/hEwaxsN](https://discord.gg/hEwaxsN)\ 17 | Github: [https://github.com/drupijs/Drupi-JS](https://github.com/drupijs/Drupi-JS)\ 18 | bStats: [https://bstats.org/plugin/bukkit/Drupi](https://bstats.org/plugin/bukkit/Drupi)\ 19 | -------------------------------------------------------------------------------- /version.v1_16/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.16 16 | 1.16.0 17 | 18 | 19 | 20 | org.spigotmc 21 | spigot-api 22 | 1.16.1-R0.1-SNAPSHOT 23 | jar 24 | provided 25 | 26 | 33 | 34 | drupi.xyz 35 | core 36 | 0.0.1 37 | provided 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/customEvents/RegionEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard.customEvents; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import net.stacket.drupi.v1_8.expansions.worldguard.MovementWay; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.HandlerList; 7 | import org.bukkit.event.player.*; 8 | 9 | /** 10 | * 11 | * @author mewin 12 | */ 13 | public abstract class RegionEvent extends PlayerEvent { 14 | 15 | private static final HandlerList handlerList = new HandlerList(); 16 | 17 | private ProtectedRegion region; 18 | private MovementWay movement; 19 | public PlayerEvent parentEvent; 20 | 21 | public RegionEvent(ProtectedRegion region, Player player, MovementWay movement, PlayerEvent parent) 22 | { 23 | super(player); 24 | this.region = region; 25 | this.movement = movement; 26 | this.parentEvent = parent; 27 | } 28 | 29 | @Override 30 | public HandlerList getHandlers() { 31 | return handlerList; 32 | } 33 | 34 | public ProtectedRegion getRegion() 35 | { 36 | return region; 37 | } 38 | 39 | public String getRegionName(){ 40 | return region.getId(); 41 | } 42 | 43 | public static HandlerList getHandlerList() 44 | { 45 | return handlerList; 46 | } 47 | 48 | public MovementWay getMovementWay() 49 | { 50 | return this.movement; 51 | } 52 | 53 | 54 | public PlayerEvent getParentEvent() 55 | { 56 | return parentEvent; 57 | } 58 | } -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/extra/VersionField.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.extra; 2 | 3 | /** 4 | * VersionField 5 | * 6 | * Reflection class that contains an object value 7 | * Allow to chain the call 8 | * 9 | * Vanilla Java 10 | * myObject.afield.anotherfield 11 | * 12 | * Reflection VersionField 13 | * VersionField.from(myObject).get("afield").get("anotherfield").value() 14 | */ 15 | class VersionField { 16 | 17 | /** 18 | * Field value 19 | */ 20 | private Object object; 21 | 22 | /** 23 | * The constructor 24 | * 25 | * @param obj value to assign to object 26 | */ 27 | VersionField(Object obj) { 28 | this.object = obj; 29 | } 30 | 31 | /** 32 | * Create classe instance 33 | */ 34 | public static VersionField from(Object obj) { 35 | return new VersionField(obj); 36 | } 37 | 38 | /** 39 | * Reflection method to get a field value 40 | * Store the field value and return a new instance of VersionField 41 | * 42 | * @param name field name 43 | * @return a new instance of VersionField 44 | * @throws NoSuchFieldException 45 | * @throws IllegalAccessException 46 | */ 47 | VersionField get(String name) throws NoSuchFieldException, IllegalAccessException { 48 | Object ret = this.object.getClass().getField(name).get(this.object); 49 | return new VersionField(ret); 50 | } 51 | 52 | /** 53 | * Return the object value stored 54 | * 55 | * @return 56 | */ 57 | Object value() { 58 | return this.object; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /version.v1_8/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\loadEvents.java 2 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionLeftEvent.java 3 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\WorldguardAPIManager.java 4 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\ActionBar.java 5 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\worldguardEvents.java 6 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionEnterEvent.java 7 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\WGRegionEventsListener.java 8 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionEnteredEvent.java 9 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\MovementWay.java 10 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionEvent.java 11 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\utils.java 12 | C:\Users\xande\Documents\GitHub\Drupi-JS\version.v1_8\src\main\java\net\stacket\drupi\v1_8\expansions\worldguard\customEvents\RegionLeaveEvent.java 13 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/worldguardEvents.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard; 2 | 3 | import com.sk89q.worldguard.protection.events.DisallowedPVPEvent; 4 | import net.stacket.drupi.shared.api.Drupi; 5 | import net.stacket.drupi.v1_8.expansions.worldguard.customEvents.RegionEnterEvent; 6 | import net.stacket.drupi.v1_8.expansions.worldguard.customEvents.RegionEnteredEvent; 7 | import net.stacket.drupi.v1_8.expansions.worldguard.customEvents.RegionLeaveEvent; 8 | import net.stacket.drupi.v1_8.expansions.worldguard.customEvents.RegionLeftEvent; 9 | import org.bukkit.event.EventHandler; 10 | import org.bukkit.event.Listener; 11 | 12 | public class worldguardEvents implements Listener { 13 | 14 | Drupi drupi; 15 | public worldguardEvents(Drupi drupi){ 16 | this.drupi = drupi; 17 | } 18 | 19 | @EventHandler 20 | public void pvpDisallowedEvent(DisallowedPVPEvent event){ 21 | drupi.callEvent("WorldGuard_"+event.getClass().getSimpleName(), event); 22 | } 23 | 24 | @EventHandler 25 | public void regionEnter(RegionEnterEvent event){ 26 | drupi.callEvent("WorldGuard_"+event.getClass().getSimpleName(), event); 27 | } 28 | @EventHandler 29 | public void regionEntered(RegionEnteredEvent event){ 30 | drupi.callEvent("WorldGuard_"+event.getClass().getSimpleName(), event); 31 | } 32 | @EventHandler 33 | public void regionLeave(RegionLeaveEvent event){ 34 | drupi.callEvent("WorldGuard_"+event.getClass().getSimpleName(), event); 35 | } 36 | @EventHandler 37 | public void regionLeave(RegionLeftEvent event){ 38 | drupi.callEvent("WorldGuard_"+event.getClass().getSimpleName(), event); 39 | } 40 | } -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/expansions/skript/expressions/expResultOfDrupiFunction.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.expansions.skript.expressions; 2 | 3 | import ch.njol.skript.lang.Expression; 4 | import ch.njol.skript.lang.SkriptParser; 5 | import ch.njol.skript.lang.util.SimpleExpression; 6 | import ch.njol.util.Kleenean; 7 | import net.stacket.drupi.legacy.MainPlugin; 8 | import org.bukkit.event.Event; 9 | 10 | public class expResultOfDrupiFunction extends SimpleExpression { 11 | 12 | private Expression function; 13 | private Expression obj; 14 | 15 | @Override 16 | public boolean isSingle() { 17 | return true; 18 | } 19 | 20 | @Override 21 | public Class getReturnType() { 22 | return Object.class; 23 | } 24 | 25 | 26 | @Override 27 | public boolean init(Expression[] expressions, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parser) { 28 | function = (Expression) expressions[0]; 29 | if(expressions.length == 2) { 30 | obj = (Expression) expressions[1]; 31 | } 32 | return true; 33 | } 34 | 35 | @Override 36 | public String toString(Event event, boolean debug) { 37 | return null; 38 | } 39 | 40 | @Override 41 | protected Object[] get(Event event) { 42 | if(function == null) return null; 43 | 44 | String _function = function.getSingle(event); 45 | 46 | if(obj != null){ 47 | return new Object[]{MainPlugin.drupi.callFunctionWithResult(_function, obj.getArray(event))}; 48 | } else { 49 | return new Object[]{MainPlugin.drupi.callFunctionWithResult(_function)}; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/Globals.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import org.bukkit.scheduler.BukkitRunnable; 4 | import org.bukkit.scheduler.BukkitScheduler; 5 | import org.bukkit.scheduler.BukkitTask; 6 | import org.graalvm.polyglot.Value; 7 | 8 | import net.stacket.drupi.legacy.MainPlugin; 9 | 10 | public class Globals { 11 | 12 | private final BukkitScheduler scheduler = MainPlugin.instance.getServer().getScheduler(); 13 | 14 | public Globals(){} 15 | 16 | public int setTimeout(Value fn, int delay){ 17 | return scheduler.scheduleSyncDelayedTask(MainPlugin.instance, () -> { 18 | if(fn.canExecute()) fn.executeVoid(); 19 | }, delay); 20 | } 21 | 22 | public int setInterval(Value fn, int delay){ 23 | return scheduler.scheduleSyncRepeatingTask(MainPlugin.instance, () -> { 24 | if(fn.canExecute()) fn.executeVoid(); 25 | }, 0, delay); 26 | } 27 | 28 | public int setAsyncTimeout(Value fn, int delay){ 29 | BukkitTask id = new BukkitRunnable() { 30 | public void run() { 31 | if(fn.canExecute()) fn.executeVoid(); 32 | } 33 | }.runTaskLaterAsynchronously(MainPlugin.instance, delay); 34 | return id.getTaskId(); 35 | } 36 | 37 | public int setAsyncInterval(Value fn, int delay){ 38 | BukkitTask id = new BukkitRunnable() { 39 | public void run() { 40 | if(fn.canExecute()) fn.executeVoid(); 41 | } 42 | }.runTaskTimerAsynchronously(MainPlugin.instance, 0, delay); 43 | return id.getTaskId(); 44 | } 45 | 46 | public void clearInterval(int id){ 47 | scheduler.cancelTask(id); 48 | } 49 | 50 | public void clearTimeout(int id){ 51 | scheduler.cancelTask(id); 52 | } 53 | 54 | } -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/script/commandManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.script; 2 | ; 3 | import net.stacket.drupi.bungeecord.MainPlugin; 4 | import net.stacket.drupi.shared.api.Drupi; 5 | import net.md_5.bungee.api.CommandSender; 6 | import net.md_5.bungee.api.connection.ProxiedPlayer; 7 | import net.md_5.bungee.api.plugin.Command; 8 | 9 | import org.graalvm.polyglot.Value; 10 | 11 | public class commandManager { 12 | 13 | private Drupi drupi; 14 | 15 | public commandManager(Drupi drupi){ 16 | this.drupi = drupi; 17 | } 18 | 19 | public void create(String command, Value invokeFunction) { 20 | try { 21 | MainPlugin.instance.getProxy().getPluginManager().registerCommand(MainPlugin.instance, new drupiCommand(command, invokeFunction)); 22 | MainPlugin.drupi.registeredCommands.add(command); 23 | } catch(Exception e) { 24 | e.printStackTrace(); 25 | } 26 | } 27 | 28 | public boolean isConsoleSender(CommandSender sender){ 29 | if(!(sender instanceof ProxiedPlayer)){ 30 | return true; 31 | } else { 32 | return false; 33 | } 34 | } 35 | public boolean isPlayerSender(CommandSender sender){ 36 | if(sender instanceof ProxiedPlayer){ 37 | return true; 38 | } else { 39 | return false; 40 | } 41 | } 42 | 43 | public class drupiCommand extends Command { 44 | 45 | private Value function; 46 | public drupiCommand(String name, Value function) { 47 | super(name); 48 | this.function = function; 49 | } 50 | 51 | @Override 52 | public void execute(CommandSender sender, String[] args) { 53 | if(function.canExecute()) function.executeVoid(sender, args); 54 | } 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /version.v1_13/src/main/java/net/stacket/drupi/v1_13/expansions/worldguard/events/RegionLeftEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_13.expansions.worldguard.events; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import org.bukkit.Bukkit; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.Cancellable; 7 | import org.bukkit.event.Event; 8 | import org.bukkit.event.HandlerList; 9 | 10 | import javax.annotation.Nullable; 11 | import java.util.UUID; 12 | 13 | /** 14 | * @author weby@we-bb.com [Nicolas Glassey] 15 | * @version 1.0.0 16 | * @since 2/24/19 17 | */ 18 | public class RegionLeftEvent extends Event implements Cancellable { 19 | private static final HandlerList handlers = new HandlerList(); 20 | 21 | private boolean cancelled = false; 22 | 23 | private final UUID uuid; 24 | private final ProtectedRegion region; 25 | private final String regionName; 26 | 27 | public RegionLeftEvent(UUID playerUUID, ProtectedRegion region) 28 | { 29 | this.uuid = playerUUID; 30 | this.region = region; 31 | this.regionName = region.getId(); 32 | } 33 | 34 | public static HandlerList getHandlerList() { 35 | return handlers; 36 | } 37 | 38 | public HandlerList getHandlers() { 39 | return handlers; 40 | } 41 | 42 | public UUID getUUID() { 43 | return uuid; 44 | } 45 | 46 | @Nullable 47 | public Player getPlayer() { 48 | return Bukkit.getPlayer(uuid); 49 | } 50 | 51 | public String getRegionName() { 52 | return regionName; 53 | } 54 | 55 | public ProtectedRegion getRegion() { 56 | return region; 57 | } 58 | 59 | @Override 60 | public boolean isCancelled() { 61 | return this.cancelled; 62 | } 63 | 64 | @Override 65 | public void setCancelled(boolean cancelled) { 66 | this.cancelled=cancelled; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /dependency-reduced-pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | Hundeklemmen.com 5 | nukkitPlugin 6 | 1.0-SNAPSHOT 7 | 8 | 9 | 10 | maven-shade-plugin 11 | 2.1 12 | 13 | 14 | package 15 | 16 | shade 17 | 18 | 19 | 20 | 21 | 22 | 23 | *:* 24 | 25 | META-INF/*.SF 26 | META-INF/*.DSA 27 | META-INF/*.RSA 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | nukkit-repo 38 | https://repo.nukkitx.com/snapshot 39 | 40 | 41 | 42 | 43 | cn.nukkit 44 | nukkit 45 | 1.0-SNAPSHOT 46 | provided 47 | 48 | 49 | 50 | 1.8 51 | 1.8 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /version.v1_13/src/main/java/net/stacket/drupi/v1_13/expansions/worldguard/events/RegionEnteredEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_13.expansions.worldguard.events; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import org.bukkit.Bukkit; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.Cancellable; 7 | import org.bukkit.event.Event; 8 | import org.bukkit.event.HandlerList; 9 | 10 | import javax.annotation.Nullable; 11 | import java.util.UUID; 12 | 13 | /** 14 | * @author weby@we-bb.com [Nicolas Glassey] 15 | * @version 1.0.0 16 | * @since 2/24/19 17 | */ 18 | public class RegionEnteredEvent extends Event implements Cancellable { 19 | private static final HandlerList handlers = new HandlerList(); 20 | 21 | private boolean cancelled = false; 22 | 23 | private final UUID uuid; 24 | private final ProtectedRegion region; 25 | private final String regionName; 26 | 27 | public RegionEnteredEvent(UUID playerUUID, ProtectedRegion region) 28 | { 29 | this.uuid = playerUUID; 30 | this.region = region; 31 | this.regionName = region.getId(); 32 | } 33 | 34 | public static HandlerList getHandlerList() { 35 | return handlers; 36 | } 37 | 38 | public HandlerList getHandlers() { 39 | return handlers; 40 | } 41 | 42 | public UUID getUUID() { 43 | return uuid; 44 | } 45 | 46 | @Nullable 47 | public Player getPlayer() { 48 | return Bukkit.getPlayer(uuid); 49 | } 50 | 51 | 52 | public String getRegionName() { 53 | return regionName; 54 | } 55 | 56 | public ProtectedRegion getRegion() { 57 | return region; 58 | } 59 | 60 | @Override 61 | public boolean isCancelled() { 62 | return this.cancelled; 63 | } 64 | 65 | @Override 66 | public void setCancelled(boolean cancelled) { 67 | this.cancelled=cancelled; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /core/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_10/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_11/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_12/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_13/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_14/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_15/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_8/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_9/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /version.v1_13/src/main/java/net/stacket/drupi/v1_13/expansions/worldguard/events/RegionsLeftEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_13.expansions.worldguard.events; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import org.bukkit.Bukkit; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.Cancellable; 7 | import org.bukkit.event.Event; 8 | import org.bukkit.event.HandlerList; 9 | 10 | import javax.annotation.Nullable; 11 | import java.util.HashSet; 12 | import java.util.Set; 13 | import java.util.UUID; 14 | 15 | /** 16 | * @author weby@we-bb.com [Nicolas Glassey] 17 | * @version 1.0.0 18 | * @since 2/24/19 19 | */ 20 | public class RegionsLeftEvent extends Event implements Cancellable { 21 | 22 | private static final HandlerList handlers = new HandlerList(); 23 | 24 | private boolean cancelled=false; 25 | 26 | private final UUID uuid; 27 | private final Set regions; 28 | private final Set regionsNames; 29 | 30 | public RegionsLeftEvent(UUID playerUUID, @Nullable Set regions) 31 | { 32 | this.uuid = playerUUID; 33 | this.regionsNames = new HashSet<>(); 34 | this.regions = new HashSet<>(); 35 | 36 | if (regions != null) { 37 | this.regions.addAll(regions); 38 | for (ProtectedRegion region : regions) { 39 | this.regionsNames.add(region.getId()); 40 | } 41 | } 42 | } 43 | 44 | public static HandlerList getHandlerList() { 45 | return handlers; 46 | } 47 | 48 | public HandlerList getHandlers() { 49 | return handlers; 50 | } 51 | 52 | public UUID getUUID() { 53 | return uuid; 54 | } 55 | 56 | @Nullable 57 | public Player getPlayer() { 58 | return Bukkit.getPlayer(uuid); 59 | } 60 | 61 | public Set getRegions() { 62 | return regions; 63 | } 64 | 65 | public Set getRegionsNames() { 66 | return regionsNames; 67 | } 68 | 69 | @Override 70 | public boolean isCancelled() { 71 | return this.cancelled; 72 | } 73 | 74 | @Override 75 | public void setCancelled(boolean cancelled) { 76 | this.cancelled=cancelled; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /version.v1_13/src/main/java/net/stacket/drupi/v1_13/expansions/worldguard/events/RegionsEnteredEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_13.expansions.worldguard.events; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import org.bukkit.Bukkit; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.Cancellable; 7 | import org.bukkit.event.Event; 8 | import org.bukkit.event.HandlerList; 9 | 10 | import javax.annotation.Nullable; 11 | import java.util.HashSet; 12 | import java.util.Set; 13 | import java.util.UUID; 14 | 15 | /** 16 | * @author weby@we-bb.com [Nicolas Glassey] 17 | * @version 1.0.0 18 | * @since 2/24/19 19 | */ 20 | public class RegionsEnteredEvent extends Event implements Cancellable { 21 | 22 | private static final HandlerList handlers = new HandlerList(); 23 | 24 | private boolean cancelled=false; 25 | 26 | private final UUID uuid; 27 | private final Set regions; 28 | private final Set regionsNames; 29 | 30 | public RegionsEnteredEvent(UUID playerUUID, @Nullable Set regions) 31 | { 32 | this.uuid = playerUUID; 33 | this.regionsNames = new HashSet<>(); 34 | this.regions = new HashSet<>(); 35 | 36 | if(regions != null) 37 | { 38 | this.regions.addAll(regions); 39 | for(ProtectedRegion region : regions) 40 | { 41 | this.regionsNames.add(region.getId()); 42 | } 43 | } 44 | } 45 | 46 | public static HandlerList getHandlerList() { 47 | return handlers; 48 | } 49 | 50 | public HandlerList getHandlers() { 51 | return handlers; 52 | } 53 | 54 | public UUID getUUID() { 55 | return uuid; 56 | } 57 | 58 | public Player getPlayer() { 59 | return Bukkit.getPlayer(uuid); 60 | } 61 | 62 | public Set getRegions() { 63 | return regions; 64 | } 65 | 66 | public Set getRegionsNames() { 67 | return regionsNames; 68 | } 69 | 70 | @Override 71 | public boolean isCancelled() { 72 | return this.cancelled; 73 | } 74 | 75 | @Override 76 | public void setCancelled(boolean cancelled) { 77 | this.cancelled=cancelled; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /version.v1_16/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/api/handlers/EventHandler.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.api.handlers; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import net.stacket.drupi.shared.api.Drupi; 5 | import net.stacket.drupi.shared.script.EventManager; 6 | import org.bukkit.Bukkit; 7 | import org.bukkit.event.Event; 8 | import org.bukkit.event.EventPriority; 9 | import org.bukkit.event.Listener; 10 | import org.bukkit.plugin.EventExecutor; 11 | import org.graalvm.polyglot.Value; 12 | 13 | import java.util.ArrayList; 14 | import java.util.Arrays; 15 | 16 | public class EventHandler extends EventManager { 17 | 18 | private Drupi drupi; 19 | 20 | public EventHandler(Drupi drupi) { 21 | super(drupi); 22 | this.drupi = drupi; 23 | } 24 | 25 | 26 | public Value addListenerExternal(Class event, Value invokeFunction){ 27 | if(this.drupi.registeredEvents.containsKey(event.getSimpleName())) { 28 | this.drupi.registeredEvents.get(event.getSimpleName()).add(invokeFunction);; 29 | return invokeFunction; 30 | } else { 31 | drupiCustomEvent listener = new drupiCustomEvent(); 32 | Bukkit.getPluginManager().registerEvent(event, listener, EventPriority.NORMAL, listener, MainPlugin.instance, false); 33 | this.drupi.registeredEvents.put(event.getSimpleName(), new ArrayList(Arrays.asList(new Value[]{invokeFunction}))); 34 | return invokeFunction; 35 | } 36 | } 37 | public class drupiCustomEvent implements EventExecutor, Listener { 38 | 39 | public drupiCustomEvent() { 40 | super(); 41 | } 42 | 43 | 44 | @Override 45 | public void execute(Listener l, Event event) { 46 | if (MainPlugin.drupi.registeredEvents.containsKey(event.getEventName())) { 47 | for (Value function : MainPlugin.drupi.registeredEvents.get(event.getEventName())) { 48 | if(function.canExecute()) function.executeVoid(event); 49 | } 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /BungeeCord/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Spigot-Legacy/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /version.v1_16/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /version.v1_8/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.8 16 | 1.8.8 17 | 18 | 19 | 20 | sk89q-repo 21 | http://maven.sk89q.com/repo/ 22 | 23 | 24 | 25 | 26 | 27 | org.spigotmc 28 | spigot 29 | 1.8.8-R0.1-SNAPSHOT 30 | provided 31 | 32 | 33 | org.spigotmc 34 | spigot-api 35 | 1.8.8-R0.1-SNAPSHOT 36 | provided 37 | 38 | 39 | org.bukkit 40 | bukkit 41 | 1.8.8-R0.1-SNAPSHOT 42 | provided 43 | 44 | 45 | drupi.xyz 46 | core 47 | 0.0.1 48 | provided 49 | 50 | 51 | 52 | com.sk89q 53 | worldguard 54 | 6.1 55 | provided 56 | 57 | 58 | -------------------------------------------------------------------------------- /core/src/main/java/net/stacket/drupi/shared/api/DrupiScript.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.shared.api; 2 | 3 | import net.stacket.drupi.shared.api.interfaces.ScriptLoadMessage; 4 | 5 | import org.graalvm.polyglot.Context; 6 | 7 | import java.io.*; 8 | 9 | public class DrupiScript { 10 | 11 | public File File; 12 | 13 | public DrupiScript(File File) { 14 | this.File = File; 15 | } 16 | 17 | public void Load(Drupi Drupi, Context engine, Boolean useBabel, ScriptLoadMessage SLM) { 18 | try (final BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(File), "UTF-8"))) { 19 | //Loaded file 20 | StringBuffer stringBuffer = new StringBuffer(); 21 | String line = null; 22 | 23 | while ((line = br.readLine()) != null) { 24 | stringBuffer.append(line + System.lineSeparator()); 25 | } 26 | boolean isModule = stringBuffer.toString().contains("module.exports") || stringBuffer.toString().contains("exports"); 27 | if(stringBuffer.toString().startsWith("\"skip babel\";") == true || stringBuffer.toString().startsWith("'skip babel';") == true){ 28 | useBabel = false; 29 | } 30 | if(isModule && !this.File.getName().equalsIgnoreCase("utils.js") && !this.File.getName().equalsIgnoreCase("babel.js")) return; 31 | engine.eval("js", stringBuffer.toString()); 32 | String filePath = File.getPath(); 33 | String scriptsPath = Drupi.DataFolder.toString() + java.io.File.separator + "scripts" + java.io.File.separator; 34 | String finalPath = filePath.replace(scriptsPath, ""); 35 | Drupi.log.info("Loaded Script: " + finalPath); 36 | SLM.onSuccess(); 37 | } catch (final Exception e) { 38 | String filePath = File.getPath(); 39 | String scriptsPath = Drupi.DataFolder.toString() + java.io.File.separator + "scripts" + java.io.File.separator; 40 | String finalPath = filePath.replace(scriptsPath, ""); 41 | Drupi.log.warning("An error while loading " + finalPath); 42 | SLM.onError(e.getMessage().replaceAll("", finalPath)); 43 | e.printStackTrace(); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /version.v1_14/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /version.v1_15/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | drupi.xyz 8 | plugin 9 | pom 10 | 11.0.1 11 | 12 | 13 | 1.8 14 | 1.8 15 | 16 | 17 | 18 | core 19 | 20 | version.v1_8 21 | version.v1_9 22 | version.v1_10 23 | version.v1_11 24 | version.v1_12 25 | version.v1_13 26 | version.v1_14 27 | version.v1_15 28 | version.v1_16 29 | 30 | BungeeCord 31 | Spigot-Legacy 32 | 33 | 34 | 35 | 36 | 37 | 38 | spigot-repo 39 | https://hub.spigotmc.org/nexus/content/repositories/snapshots/ 40 | 41 | 42 | oss-sonatype-snapshots 43 | https://oss.sonatype.org/content/repositories/snapshots/ 44 | 45 | 46 | bungeecord-repo 47 | https://oss.sonatype.org/content/repositories/snapshots 48 | 49 | 50 | nukkit-repo 51 | https://repo.nukkitx.com/snapshot 52 | 53 | 54 | 55 | 56 | 57 | org.projectlombok 58 | lombok 59 | 1.18.2 60 | provided 61 | 62 | 63 | -------------------------------------------------------------------------------- /version.v1_13/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | plugin 7 | drupi.xyz 8 | 11.0.1 9 | 10 | 4.0.0 11 | 12 | 1.8 13 | 1.8 14 | 15 | version.v1.13 16 | 1.13.0 17 | 18 | 19 | 20 | sk89q-repo 21 | http://maven.sk89q.com/repo/ 22 | 23 | 24 | 25 | 26 | 27 | org.spigotmc 28 | spigot-api 29 | 1.13.2-R0.1-SNAPSHOT 30 | jar 31 | provided 32 | 33 | 34 | org.bukkit 35 | bukkit 36 | 1.13.2-R0.1-SNAPSHOT 37 | provided 38 | 39 | 40 | drupi.xyz 41 | core 42 | 0.0.1 43 | provided 44 | 45 | 46 | 47 | 48 | 49 | com.sk89q.worldguard 50 | worldguard-core 51 | 7.0.0-SNAPSHOT 52 | provided 53 | 54 | 55 | 56 | com.sk89q.worldedit 57 | worldedit-bukkit 58 | 7.0.0-SNAPSHOT 59 | provided 60 | 61 | 62 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/api/handlers/SpigotConfig.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.api.handlers; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | 5 | import org.bukkit.configuration.InvalidConfigurationException; 6 | import org.bukkit.configuration.file.YamlConfiguration; 7 | 8 | import java.io.File; 9 | import java.io.IOException; 10 | 11 | public class SpigotConfig extends net.stacket.drupi.shared.api.config { 12 | 13 | public YamlConfiguration config; 14 | public MainPlugin instance; 15 | 16 | public SpigotConfig(MainPlugin instance) { 17 | super(1, "modern", true, true); 18 | this.instance = instance; 19 | File configFile = new File(instance.getDataFolder(), "config.yml"); 20 | 21 | try { 22 | if(!configFile.exists()){ 23 | instance.saveResource("config.yml", false); 24 | } 25 | config = new YamlConfiguration(); 26 | config.load(configFile); 27 | if(!config.contains("config.version")){ 28 | instance.drupi.log.warning("Outdated config, resetting it!"); 29 | instance.saveResource("config.yml", true); 30 | } 31 | if(!config.get("config.version").toString().equalsIgnoreCase("2.1")){ 32 | instance.drupi.log.warning("Outdated config, resetting it!"); 33 | instance.saveResource("config.yml", true); 34 | 35 | } 36 | 37 | if(config.contains("settings.compileMethod") == true){ 38 | String method = config.getString("settings.compileMethod"); 39 | if(method.equalsIgnoreCase("none")||method.equalsIgnoreCase("legacy")||method.equalsIgnoreCase("modern")){ 40 | this.compileMethod = method.toLowerCase(); 41 | } else { 42 | instance.getLogger().warning("Invalid compile method! Defaulting to modern"); 43 | } 44 | } 45 | 46 | if(config.contains("settings.notifyOP") == true) { 47 | this.VC_notifyOP = config.getBoolean("versionChecker.notifyOP"); 48 | } 49 | if(config.contains("settings.checkOnLoad") == true) { 50 | this.VC_checkOnLoad = config.getBoolean("versionChecker.checkOnLoad"); 51 | } 52 | } catch (IOException | InvalidConfigurationException e) { 53 | e.printStackTrace(); 54 | } 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/api/BungeeConfig.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.api; 2 | 3 | 4 | import net.stacket.drupi.bungeecord.MainPlugin; 5 | import net.stacket.drupi.bungeecord.util; 6 | import net.md_5.bungee.config.Configuration; 7 | import net.md_5.bungee.config.ConfigurationProvider; 8 | import net.md_5.bungee.config.YamlConfiguration; 9 | 10 | import java.io.File; 11 | import java.io.IOException; 12 | 13 | public class BungeeConfig extends net.stacket.drupi.shared.api.config { 14 | 15 | public Configuration config; 16 | 17 | public BungeeConfig(MainPlugin instance) { 18 | super(1, "modern", true, true); 19 | 20 | File configFile = new File(instance.getDataFolder(), "config.yml"); 21 | util.copy(instance.getResourceAsStream("config.yml"), configFile); 22 | 23 | 24 | try { 25 | if(!configFile.exists()){ 26 | util.copy(instance.getResourceAsStream("config.yml"), configFile); 27 | } 28 | config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(configFile); 29 | if(!config.contains("config.version")){ 30 | instance.drupi.log.warning("Outdated config, resetting it!"); 31 | configFile.delete(); 32 | util.copy(instance.getResourceAsStream("config.yml"), configFile); 33 | } 34 | if(!config.get("config.version").toString().equalsIgnoreCase("2.1")){ 35 | instance.drupi.log.warning("Outdated config, resetting it!"); 36 | configFile.delete(); 37 | util.copy(instance.getResourceAsStream("config.yml"), configFile); 38 | 39 | } 40 | 41 | if(config.contains("settings.compileMethod") == true){ 42 | String method = config.getString("settings.compileMethod"); 43 | if(method.equalsIgnoreCase("none")||method.equalsIgnoreCase("legacy")||method.equalsIgnoreCase("modern")){ 44 | this.compileMethod = method.toLowerCase(); 45 | } else { 46 | instance.getLogger().warning("Invalid compile method! Defaulting to modern"); 47 | } 48 | } 49 | 50 | if(config.contains("settings.notifyOP") == true) { 51 | this.VC_notifyOP = config.getBoolean("versionChecker.notifyOP"); 52 | } 53 | if(config.contains("settings.checkOnLoad") == true) { 54 | this.VC_checkOnLoad = config.getBoolean("versionChecker.checkOnLoad"); 55 | } 56 | } catch (IOException e) { 57 | e.printStackTrace(); 58 | } 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /version.v1_12/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/customEvents/RegionLeaveEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard.customEvents; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import net.stacket.drupi.v1_8.expansions.worldguard.MovementWay; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.Cancellable; 7 | import org.bukkit.event.player.PlayerEvent; 8 | 9 | /** 10 | * event that is triggered before a player leaves a WorldGuard region, can be cancelled sometimes 11 | * @author mewin 12 | */ 13 | public class RegionLeaveEvent extends RegionEvent implements Cancellable { 14 | private boolean cancelled, cancellable; 15 | /** 16 | * creates a new RegionLeaveEvent 17 | * @param region the region the player is leaving 18 | * @param player the player who triggered the event 19 | * @param movement the type of movement how the player leaves the region 20 | */ 21 | public RegionLeaveEvent(ProtectedRegion region, Player player, MovementWay movement, PlayerEvent parent) 22 | { 23 | super(region, player, movement, parent); 24 | cancelled = false; 25 | cancellable = true; 26 | 27 | if (movement == MovementWay.SPAWN 28 | || movement == MovementWay.DISCONNECT) 29 | { 30 | cancellable = false; 31 | } 32 | } 33 | 34 | /** 35 | * sets whether this event should be cancelled 36 | * when the event is cancelled the player will not be able to move out of the region 37 | * @param cancelled true if the player should be stopped from moving out of the region 38 | */ 39 | @Override 40 | public void setCancelled(boolean cancelled) 41 | { 42 | if (!this.cancellable) 43 | { 44 | return; 45 | } 46 | 47 | this.cancelled = cancelled; 48 | } 49 | 50 | /** 51 | * retrieves whether this event will be cancelled/has been cancelled by any plugin 52 | * @return true if this event will be cancelled and the player will be stopped from moving 53 | */ 54 | @Override 55 | public boolean isCancelled() 56 | { 57 | return this.cancelled; 58 | } 59 | 60 | 61 | /** 62 | * sometimes you can not cancel an event, i.e. if a player left a region by dying inside of it 63 | * @return true, if you can cancel this event 64 | */ 65 | public boolean isCancellable() 66 | { 67 | return this.cancellable; 68 | } 69 | 70 | protected void setCancellable(boolean cancellable) 71 | { 72 | this.cancellable = cancellable; 73 | 74 | if (!this.cancellable) 75 | { 76 | this.cancelled = false; 77 | } 78 | } 79 | } -------------------------------------------------------------------------------- /version.v1_8/src/main/java/net/stacket/drupi/v1_8/expansions/worldguard/customEvents/RegionEnterEvent.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.v1_8.expansions.worldguard.customEvents; 2 | 3 | import com.sk89q.worldguard.protection.regions.ProtectedRegion; 4 | import net.stacket.drupi.v1_8.expansions.worldguard.MovementWay; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.Cancellable; 7 | import org.bukkit.event.player.PlayerEvent; 8 | 9 | /** 10 | * event that is triggered before a player enters a WorldGuard region, can be cancelled sometimes 11 | * @author mewin 12 | */ 13 | public class RegionEnterEvent extends RegionEvent implements Cancellable 14 | { 15 | private boolean cancelled, cancellable; 16 | /** 17 | * creates a new RegionEnterEvent 18 | * @param region the region the player is entering 19 | * @param player the player who triggered the event 20 | * @param movement the type of movement how the player enters the region 21 | */ 22 | public RegionEnterEvent(ProtectedRegion region, Player player, MovementWay movement, PlayerEvent parent) 23 | { 24 | super(region, player, movement, parent); 25 | cancelled = false; 26 | cancellable = true; 27 | 28 | if (movement == MovementWay.SPAWN 29 | || movement == MovementWay.DISCONNECT) 30 | { 31 | cancellable = false; 32 | } 33 | } 34 | 35 | /** 36 | * sets whether this event should be cancelled 37 | * when the event is cancelled the player will not be able to move into the region 38 | * @param cancelled true if the player should be stopped from moving into the region 39 | */ 40 | @Override 41 | public void setCancelled(boolean cancelled) 42 | { 43 | if (!this.cancellable) 44 | { 45 | return; 46 | } 47 | 48 | this.cancelled = cancelled; 49 | } 50 | 51 | /** 52 | * retrieves whether this event will be cancelled/has been cancelled by any plugin 53 | * @return true if this event will be cancelled and the player will be stopped from moving 54 | */ 55 | @Override 56 | public boolean isCancelled() 57 | { 58 | return this.cancelled; 59 | } 60 | 61 | 62 | /** 63 | * sometimes you can not cancel an event, i.e. if a player entered a region by spawning inside of it 64 | * @return true, if you can cancel this event 65 | */ 66 | public boolean isCancellable() 67 | { 68 | return this.cancellable; 69 | } 70 | 71 | protected void setCancellable(boolean cancellable) 72 | { 73 | this.cancellable = cancellable; 74 | 75 | if (!this.cancellable) 76 | { 77 | this.cancelled = false; 78 | } 79 | } 80 | } -------------------------------------------------------------------------------- /version.v1_9/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /version.v1_10/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /version.v1_11/.factorypath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /version.v1_14/version.v1.14.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_15/version.v1.15.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /version.v1_16/version.v1.16.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /version.v1_12/version.v1.12.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /BungeeCord/src/main/java/net/stacket/drupi/bungeecord/Events/eventListener.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.bungeecord.Events; 2 | 3 | import net.stacket.drupi.shared.api.Drupi; 4 | import net.md_5.bungee.api.event.*; 5 | import net.md_5.bungee.api.plugin.Listener; 6 | import net.md_5.bungee.event.EventHandler; 7 | 8 | public class eventListener implements Listener { 9 | 10 | private Drupi drupi; 11 | 12 | public eventListener(Drupi drupi){ 13 | this.drupi = drupi; 14 | } 15 | 16 | @EventHandler 17 | public void ChatEvent(ChatEvent event){ 18 | drupi.callEvent("ChatEvent", event); 19 | } 20 | 21 | @EventHandler 22 | public void LoginEvent(LoginEvent event){ 23 | drupi.callEvent("LoginEvent", event); 24 | } 25 | 26 | @EventHandler 27 | public void PermissionCheckEvent(PermissionCheckEvent event){ 28 | drupi.callEvent("PermissionCheckEvent", event); 29 | } 30 | 31 | @EventHandler 32 | public void PlayerDisconnectEvent(PlayerDisconnectEvent event){ 33 | drupi.callEvent("PlayerDisconnectEvent", event); 34 | } 35 | 36 | @EventHandler 37 | public void PlayerHandshakeEvent(PlayerHandshakeEvent event){ 38 | drupi.callEvent("PlayerHandshakeEvent", event); 39 | } 40 | 41 | @EventHandler 42 | public void PluginMessageEvent(PluginMessageEvent event){ 43 | drupi.callEvent("PluginMessageEvent", event); 44 | } 45 | 46 | @EventHandler 47 | public void PostLoginEvent(PostLoginEvent event){ 48 | drupi.callEvent("PostLoginEvent", event); 49 | } 50 | 51 | @EventHandler 52 | public void PreLoginEvent(PreLoginEvent event){ 53 | drupi.callEvent("PreLoginEvent", event); 54 | } 55 | 56 | @EventHandler 57 | public void ProxyPingEvent(ProxyPingEvent event){ 58 | drupi.callEvent("ProxyPingEvent", event); 59 | } 60 | 61 | @EventHandler 62 | public void ProxyReloadEvent(ProxyReloadEvent event){ 63 | drupi.callEvent("ProxyReloadEvent", event); 64 | } 65 | 66 | @EventHandler 67 | public void ServerConnectedEvent(ServerConnectedEvent event){ 68 | drupi.callEvent("ServerConnectedEvent", event); 69 | } 70 | 71 | @EventHandler 72 | public void ServerConnectEvent(ServerConnectEvent event){ 73 | drupi.callEvent("ServerConnectEvent", event); 74 | } 75 | 76 | @EventHandler 77 | public void ServerDisconnectEvent(ServerDisconnectEvent event){ 78 | drupi.callEvent("ServerDisconnectEvent", event); 79 | } 80 | 81 | @EventHandler 82 | public void ServerKickEvent(ServerKickEvent event){ 83 | drupi.callEvent("ServerKickEvent", event); 84 | } 85 | 86 | @EventHandler 87 | public void ServerSwitchEvent(ServerSwitchEvent event){ 88 | drupi.callEvent("ServerSwitchEvent", event); 89 | } 90 | 91 | @EventHandler 92 | public void SettingsChangedEvent(SettingsChangedEvent event){ 93 | drupi.callEvent("SettingsChangedEvent", event); 94 | } 95 | 96 | @EventHandler 97 | public void TabCompleteEvent(TabCompleteEvent event){ 98 | drupi.callEvent("TabCompleteEvent", event); 99 | } 100 | 101 | @EventHandler 102 | public void TabCompleteResponseEvent(TabCompleteResponseEvent event){ 103 | drupi.callEvent("TabCompleteResponseEvent", event); 104 | } 105 | 106 | @EventHandler 107 | public void TargetedEvent(TargetedEvent event){ 108 | drupi.callEvent("TargetedEvent", event); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /Spigot-Legacy/src/main/java/net/stacket/drupi/legacy/script/materialManager.java: -------------------------------------------------------------------------------- 1 | package net.stacket.drupi.legacy.script; 2 | 3 | import net.stacket.drupi.legacy.MainPlugin; 4 | import org.bukkit.Color; 5 | import org.bukkit.DyeColor; 6 | import org.bukkit.Material; 7 | import org.bukkit.enchantments.Enchantment; 8 | import org.bukkit.inventory.ItemStack; 9 | import org.bukkit.inventory.meta.ItemMeta; 10 | 11 | import java.util.List; 12 | 13 | public class materialManager { 14 | 15 | private MainPlugin plugin; 16 | 17 | public materialManager(MainPlugin plugin){ 18 | this.plugin = plugin; 19 | } 20 | 21 | 22 | public Material get(int search){ 23 | return Material.getMaterial(search); 24 | } 25 | 26 | 27 | public ItemStack setName(ItemStack it, String name){ 28 | ItemMeta meta = it.getItemMeta(); 29 | meta.setDisplayName(name); 30 | it.setItemMeta(meta); 31 | return it; 32 | } 33 | 34 | public ItemStack setLore(ItemStack it, List lines){ 35 | ItemMeta meta = it.getItemMeta(); 36 | meta.setLore(lines); 37 | it.setItemMeta(meta); 38 | return it; 39 | } 40 | 41 | public ItemStack addEnchantment(ItemStack it,Enchantment enchantment, int lvl) { 42 | ItemMeta meta = it.getItemMeta(); 43 | meta.addEnchant(enchantment, lvl, false); 44 | it.setItemMeta(meta); 45 | return it; 46 | } 47 | 48 | public ItemStack getWoolColored(Color color){ 49 | DyeColor col = DyeColor.getByColor(color); 50 | byte data = (byte) col.getData(); 51 | return new ItemStack(Material.WOOL, 1, data); 52 | } 53 | 54 | public ItemStack newItemStack(Material obj){ 55 | return new ItemStack(obj); 56 | } 57 | 58 | public ItemStack newItemStackWithData(Material obj, byte i){ 59 | return new ItemStack(obj, i); 60 | } 61 | 62 | public Color getColor(String name){ 63 | switch (name.toLowerCase().replaceAll("_", " ")) { 64 | case "black": 65 | return(Color.fromRGB(0, 0, 0)); 66 | case "dark blue": 67 | return(Color.fromRGB(0, 0, 170)); 68 | case "dark green": 69 | return(Color.fromRGB(0, 170, 0)); 70 | case "dark aqua": 71 | return(Color.fromRGB(0, 170, 170)); 72 | case "dark red": 73 | return(Color.fromRGB(170, 0, 0)); 74 | case "dark purple": 75 | return(Color.fromRGB(170, 0, 170)); 76 | case "gold": 77 | return(Color.fromRGB(255, 170, 0)); 78 | case "gray": 79 | return(Color.fromRGB(170, 170, 170)); 80 | case "dark gray": 81 | return(Color.fromRGB(85, 85, 85)); 82 | case "blue": 83 | return(Color.fromRGB(85, 85, 255)); 84 | case "green": 85 | return(Color.fromRGB(85, 255, 85)); 86 | case "aqua": 87 | return(Color.fromRGB(85, 255, 255)); 88 | case "red": 89 | return(Color.fromRGB(255, 85, 85)); 90 | case "light purple": 91 | return(Color.fromRGB(255, 85, 255)); 92 | case "yellow": 93 | return(Color.fromRGB(255, 255, 85)); 94 | case "white": 95 | return(Color.fromRGB(255, 255, 255)); 96 | default: 97 | return(Color.fromRGB(255, 255, 255)); 98 | } 99 | }; 100 | } 101 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at thehundeklemmen@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /version.v1_9/version.v1.9.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | --------------------------------------------------------------------------------