Skip to content

Commit c6cf0b6

Browse files
committed
Finish the maven abstraction
1 parent 4285f89 commit c6cf0b6

File tree

27 files changed

+227
-118
lines changed

27 files changed

+227
-118
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Maven
2-
/target
2+
**/target
33
/dependency-reduced-pom.xml
44

55
#IntelliJ

api/src/main/java/net/techcable/spawnshield/compat/BlockPos.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
* THE SOFTWARE.
2222
*/
23-
package net.techcable.spawnshield.forcefield;
23+
package net.techcable.spawnshield.compat;
2424

2525
import com.google.common.base.Preconditions;
2626
import lombok.experimental.Wither;

base/src/main/java/net/techcable/spawnshield/forcefield/ChunkPos.java renamed to api/src/main/java/net/techcable/spawnshield/compat/ChunkPos.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
* THE SOFTWARE.
2222
*/
23-
package net.techcable.spawnshield.forcefield;
23+
package net.techcable.spawnshield.compat;
2424

2525

2626
import lombok.Getter;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* The MIT License
3+
* Copyright (c) 2014-2015 Techcable
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in
13+
* all copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
* THE SOFTWARE.
22+
*/
23+
package net.techcable.spawnshield.compat;
24+
25+
import org.bukkit.World;
26+
27+
public interface ProtectionPlugin {
28+
public Region getRegion(World world, String name);
29+
public boolean hasRegion(World world, String name);
30+
}

api/src/main/java/net/techcable/spawnshield/compat/Region.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ public interface Region {
3333
public World getWorld();
3434
public BlockPos getMin();
3535
public BlockPos getMax();
36+
public String getName();
3637
}

api/target/SpawnShield.jar

100644100755
4.44 KB
Binary file not shown.

api/target/maven-archiver/pom.properties

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#Generated by Maven
2-
#Tue May 05 02:58:19 UTC 2015
3-
version=1.1.0-SNAPSHOT
4-
groupId=net.techcable.spawnshield
5-
artifactId=api
1+
#Generated by Maven
2+
#Thu May 14 09:46:34 MST 2015
3+
version=1.1.0-SNAPSHOT
4+
groupId=net.techcable.spawnshield
5+
artifactId=api
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
net\techcable\spawnshield\compat\BlockPos.class
2+
net\techcable\spawnshield\compat\ChunkPos.class
3+
net\techcable\spawnshield\compat\Region.class
4+
net\techcable\spawnshield\compat\ProtectionPlugin.class
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
/home/techcable/git/SpawnShield/api/src/main/java/net/techcable/spawnshield/compat/BlockPos.java
2-
/home/techcable/git/SpawnShield/api/src/main/java/net/techcable/spawnshield/compat/Region.java
1+
C:\Users\Nicholas Schlabach\git\SpawnShield\api\src\main\java\net\techcable\spawnshield\compat\BlockPos.java
2+
C:\Users\Nicholas Schlabach\git\SpawnShield\api\src\main\java\net\techcable\spawnshield\compat\ChunkPos.java
3+
C:\Users\Nicholas Schlabach\git\SpawnShield\api\src\main\java\net\techcable\spawnshield\compat\ProtectionPlugin.java
4+
C:\Users\Nicholas Schlabach\git\SpawnShield\api\src\main\java\net\techcable\spawnshield\compat\Region.java

api/target/original-SpawnShield.jar

100644100755
4.32 KB
Binary file not shown.

0 commit comments

Comments
 (0)