Skip to content

Commit a109c7a

Browse files
committed
Add 1.11 InternalHelper
1 parent 44e0da2 commit a109c7a

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

bukkit-v1_11_R1/pom.xml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>bukkit-v1_11_R1</artifactId>
8+
<version>${plugin.version}</version>
9+
<packaging>jar</packaging>
10+
11+
<parent>
12+
<groupId>de.themoep.resourcepacksplugin</groupId>
13+
<artifactId>parent</artifactId>
14+
<version>parent</version>
15+
</parent>
16+
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>org.spigotmc</groupId>
21+
<artifactId>spigot</artifactId>
22+
<version>1.11-R0.1-SNAPSHOT</version>
23+
<scope>provided</scope>
24+
</dependency>
25+
<dependency>
26+
<groupId>de.themoep.resourcepacksplugin</groupId>
27+
<artifactId>bukkit</artifactId>
28+
<version>${project.version}</version>
29+
</dependency>
30+
</dependencies>
31+
32+
<properties>
33+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34+
</properties>
35+
36+
<build>
37+
<plugins>
38+
<plugin>
39+
<groupId>org.apache.maven.plugins</groupId>
40+
<artifactId>maven-compiler-plugin</artifactId>
41+
<version>3.5.1</version>
42+
<configuration>
43+
<source>1.8</source>
44+
<target>1.8</target>
45+
</configuration>
46+
</plugin>
47+
</plugins>
48+
</build>
49+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package de.themoep.resourcepacksplugin.bukkit.internal;
2+
3+
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer;
4+
import org.bukkit.entity.Player;
5+
6+
/**
7+
* Created by Phoenix616 on 22.07.2016.
8+
*/
9+
public class InternalHelper_v1_11_R1 implements InternalHelper {
10+
11+
@Override
12+
public void setResourcePack(Player player, String url, String hash) {
13+
((CraftPlayer) player).getHandle().setResourcePack(url, hash);
14+
}
15+
}

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<module>bukkit-v1_9_R1</module>
1818
<module>bukkit-v1_9_R2</module>
1919
<module>bukkit-v1_10_R1</module>
20+
<module>bukkit-v1_11_R1</module>
2021
<module>worldresourcepacks</module>
2122
</modules>
2223

worldresourcepacks/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
<version>${project.version}</version>
2929
<scope>compile</scope>
3030
</dependency>
31+
<dependency>
32+
<groupId>de.themoep.resourcepacksplugin</groupId>
33+
<artifactId>bukkit-v1_11_R1</artifactId>
34+
<version>${project.version}</version>
35+
<scope>compile</scope>
36+
</dependency>
3137
<dependency>
3238
<groupId>de.themoep.resourcepacksplugin</groupId>
3339
<artifactId>bukkit-v1_10_R1</artifactId>

0 commit comments

Comments
 (0)