Skip to content

Commit 687a39a

Browse files
committed
Use maven abstraction for combat tagging plugins
Update license
1 parent aa7c9d6 commit 687a39a

File tree

42 files changed

+732
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+732
-305
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>net.techcable.spawnshield</groupId>
55
<artifactId>parent</artifactId>
6-
<version>1.1.0</version>
6+
<version>1.1.0-stable-SNAPSHOT</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<artifactId>api</artifactId>
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/**
2+
* The MIT License
3+
* Copyright (c) 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.combattag;
24+
25+
import org.bukkit.entity.Entity;
26+
import org.bukkit.entity.Player;
27+
28+
public interface CombatTagPlugin {
29+
30+
/**
31+
* Returns if a player is combat tagged
32+
*
33+
* @param player the player to check
34+
* @return true if combat tagged
35+
* @throws UnsupportedOperationException if no combat tag plugin is installed
36+
*/
37+
public boolean isTagged(Player player);
38+
39+
/**
40+
* Returns the time a player has left in combat
41+
* <p>
42+
* Returns -1 if not in combat
43+
*
44+
* @param player the player to check
45+
* @return time in milliseconds until the player is no longer in combat
46+
* @throws UnsupportedOperationException if no combat tag plugin is installed
47+
*/
48+
public long getRemainingTagTime(Player player);
49+
50+
/**
51+
* Checks if an entity is a NPC
52+
*
53+
* @param entity the entity to check
54+
* @return true if entity is a NPC
55+
* @throws UnsupportedOperationException if no combat tag plugin is installed
56+
*/
57+
public boolean isNPC(Entity entity);
58+
59+
/**
60+
* Tag this player
61+
*
62+
* @param player player to tag
63+
* @throws UnsupportedOperationException if no combat tag plugin is installed
64+
*/
65+
public void tag(Player player);
66+
67+
/**
68+
* UnTag this player
69+
*
70+
* @param player player to un-tag
71+
* @throws UnsupportedOperationException if no combat tag plugin is installed
72+
*/
73+
public void unTag(Player player);
74+
75+
/**
76+
* Return whether this combat tag plugin is installed
77+
*
78+
* @return true if this combat tag plugin is installed
79+
*/
80+
public boolean isInstalled();
81+
82+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* The MIT License
3-
* Copyright (c) 2014-2015 Techcable
3+
* Copyright (c) 2015 Techcable
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* The MIT License
3-
* Copyright (c) 2014-2015 Techcable
3+
* Copyright (c) 2015 Techcable
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* The MIT License
3-
* Copyright (c) 2014-2015 Techcable
3+
* Copyright (c) 2015 Techcable
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* The MIT License
3-
* Copyright (c) 2014-2015 Techcable
3+
* Copyright (c) 2015 Techcable
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal

api/target/SpawnShield.jar

-5.94 KB
Binary file not shown.

api/target/maven-archiver/pom.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

api/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

Lines changed: 0 additions & 4 deletions
This file was deleted.

api/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)