├── .github
├── dependabot.yml
└── workflows
│ └── maven.yml
├── .gitignore
├── .idea
├── compiler.xml
├── dictionaries
│ └── Ghost_chu.xml
├── misc.xml
└── vcs.xml
├── CoreProtectTNT.iml
├── README.md
├── pom.xml
└── src
└── main
├── java
└── com
│ └── mcsunnyside
│ └── coreprotecttnt
│ ├── CTNTQueue.java
│ ├── Main.java
│ └── Util.java
└── resources
├── config.yml
└── plugin.yml
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: maven
4 | directory: "/"
5 | schedule:
6 | interval: daily
7 | open-pull-requests-limit: 10
8 |
--------------------------------------------------------------------------------
/.github/workflows/maven.yml:
--------------------------------------------------------------------------------
1 | # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3 |
4 | name: Java CI with Maven
5 |
6 | on:
7 | push:
8 | branches: [ master ]
9 | pull_request:
10 | branches: [ master ]
11 |
12 | jobs:
13 | build:
14 |
15 | runs-on: ubuntu-latest
16 |
17 | steps:
18 | - uses: actions/checkout@v2
19 | - name: Set up JDK 16
20 | uses: actions/setup-java@v2
21 | with:
22 | java-version: '16'
23 | distribution: 'adopt'
24 | cache: maven
25 | - name: Build with Maven
26 | run: mvn -B package --file pom.xml
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 | .settings/
3 | target/
4 | .idea/
5 | *.iml
6 | .classpath
7 | .project
8 | /bin/
9 | /.idea/
10 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/dictionaries/Ghost_chu.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
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 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CoreProtectTNT.iml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CoreProtectTNT
2 | CoreProtect addon allow you log the tnt and creeper explosion souce
3 |
4 | Please check https://github.com/Ghost-chu/CoreProtectTNT for new version
5 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | com.mcsunnyside.coreprotecttnt
8 | CoreProtectTNT
9 | 2.0
10 |
11 |
12 |
13 | spigot-repo
14 | https://hub.spigotmc.org/nexus/content/repositories/snapshots/
15 |
16 |
17 | coreprotect-repo
18 | https://maven.playpro.com/
19 |
20 |
21 |
22 |
23 | UTF-8
24 |
25 |
26 |
27 |
28 | org.spigotmc
29 | spigot-api
30 | 1.16.5-R0.1-SNAPSHOT
31 | provided
32 |
33 |
34 | net.coreprotect
35 | coreprotect
36 | 20.4
37 | provided
38 |
39 |
40 |
41 |
42 |
43 | org.apache.maven.plugins
44 | maven-compiler-plugin
45 | 3.9.0
46 |
47 | 1.8
48 | 1.8
49 | UTF-8
50 |
51 |
52 |
53 | org.apache.maven.plugins
54 | maven-javadoc-plugin
55 | 3.3.2
56 |
57 | UTF-8
58 |
61 |
62 |
63 |
64 | attach-javadocs
65 |
66 | jar
67 |
68 |
69 | false
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | org.apache.maven.plugins
78 | maven-source-plugin
79 | 3.2.1
80 |
81 |
82 | attach-sources
83 |
84 | jar
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | true
93 | src/main/resources
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/src/main/java/com/mcsunnyside/coreprotecttnt/CTNTQueue.java:
--------------------------------------------------------------------------------
1 | //package com.mcsunnyside.coreprotecttnt;
2 | //
3 | //import net.coreprotect.consumer.Queue;
4 | //import org.bukkit.Location;
5 | //import org.bukkit.Material;
6 | //import org.bukkit.block.Block;
7 | //import org.bukkit.block.BlockState;
8 | //import org.bukkit.entity.EntityType;
9 | //
10 | //import java.lang.reflect.InvocationTargetException;
11 | //import java.lang.reflect.Method;
12 | //import java.util.HashMap;
13 | //import java.util.List;
14 | //import java.util.Map;
15 | //
16 | //public class CTNTQueue {
17 | // private static Map methodMapping = new HashMap<>();
18 | // static{
19 | // Class> clazz = Queue.class;
20 | // for (Method declaredMethod : clazz.getDeclaredMethods()) {
21 | // declaredMethod.setAccessible(true);
22 | // methodMapping.put(declaredMethod.getName(),declaredMethod);
23 | // }
24 | // }
25 | //
26 | // protected static synchronized int getChestId(String id) {
27 | // try {
28 | // return (int)methodMapping.get("getChestId").invoke(null,id);
29 | // } catch (IllegalAccessException | InvocationTargetException e) {
30 | // e.printStackTrace();
31 | // }
32 | // return 0;
33 | // }
34 | //
35 | // protected static synchronized int getItemId(String id) {
36 | // try {
37 | // return (int)methodMapping.get("getItemId").invoke(null,id);
38 | // } catch (IllegalAccessException | InvocationTargetException e) {
39 | // e.printStackTrace();
40 | // }
41 | // return 0;
42 | // }
43 | // protected static synchronized void queueContainerTransaction(String user, Location location, Material type, Object inventory, int chestId) {
44 | // try {
45 | // methodMapping.get("queueContainerTransaction").invoke(null,user,location,type,inventory,chestId);
46 | // } catch (IllegalAccessException | InvocationTargetException e) {
47 | // e.printStackTrace();
48 | // }
49 | // }
50 | //
51 | // protected static void queueItemTransaction(String user, Location location, int time, int itemId) {
52 | // try {
53 | // methodMapping.get("queueItemTransaction").invoke(null,user,location,time,itemId);
54 | // } catch (IllegalAccessException | InvocationTargetException e) {
55 | // e.printStackTrace();
56 | // }
57 | // }
58 | //
59 | // protected static void queueEntityInsert(int id, String name) {
60 | // try {
61 | // methodMapping.get("queueEntityInsert").invoke(null,id,name);
62 | // } catch (IllegalAccessException | InvocationTargetException e) {
63 | // e.printStackTrace();
64 | // }
65 | // }
66 | // protected static void queueNaturalBlockBreak(String user, BlockState block, Block relative, Material type, int data) {
67 | // try {
68 | // methodMapping.get("queueNaturalBlockBreak").invoke(null,user,block,relative,type,data);
69 | // } catch (IllegalAccessException | InvocationTargetException e) {
70 | // e.printStackTrace();
71 | // }
72 | // }
73 | // protected static void queueEntityKill(String user, Location location, List