File tree 5 files changed +60
-9
lines changed
src/main/java/net/pandorianmc
5 files changed +60
-9
lines changed Original file line number Diff line number Diff line change 4
4
! ** /src /test /** /target /
5
5
6
6
# ## IntelliJ IDEA ###
7
- .idea /modules.xml
8
- .idea /jarRepositories.xml
9
- .idea /compiler.xml
7
+ .idea /* .xml
10
8
.idea /libraries /
11
9
* .iws
12
10
* .iml
Original file line number Diff line number Diff line change 63
63
<id >bungeecord-repo</id >
64
64
<url >https://oss.sonatype.org/content/repositories/snapshots</url >
65
65
</repository >
66
+ <repository >
67
+ <!-- > Velocity <-->
68
+ <id >papermc</id >
69
+ <url >https://repo.papermc.io/repository/maven-public/</url >
70
+ </repository >
66
71
</repositories >
67
72
68
73
<dependencies >
69
74
<dependency >
70
75
<groupId >org.spigotmc</groupId >
71
76
<artifactId >spigot-api</artifactId >
72
- <version >1.20-R0.1-SNAPSHOT</version >
77
+ <version >1.20.4 -R0.1-SNAPSHOT</version >
73
78
<scope >provided</scope >
74
79
</dependency >
75
80
<dependency >
81
86
<dependency >
82
87
<groupId >net.pandorianmc</groupId >
83
88
<artifactId >PandorCore</artifactId >
84
- <version >0.6.6</version >
89
+ <version >1.0.0</version >
90
+ </dependency >
91
+ <dependency >
92
+ <!-- > Velocity <-->
93
+ <groupId >com.velocitypowered</groupId >
94
+ <artifactId >velocity-api</artifactId >
95
+ <version >3.3.0-SNAPSHOT</version >
96
+ <scope >provided</scope >
97
+ </dependency >
98
+ <dependency >
99
+ <groupId >org.projectlombok</groupId >
100
+ <artifactId >lombok</artifactId >
101
+ <version >1.18.30</version >
102
+ <scope >provided</scope >
85
103
</dependency >
86
104
</dependencies >
87
105
Original file line number Diff line number Diff line change 1
1
package net .pandorianmc .bungee .api ;
2
2
3
+ import lombok .SneakyThrows ;
3
4
import net .pandorianmc .bungee .data .PandorianProxyPlayer ;
4
- import org .bukkit .plugin .IllegalPluginAccessException ;
5
5
6
6
import java .util .UUID ;
7
7
@@ -16,16 +16,18 @@ public class PandorCoreAPI {
16
16
/**
17
17
* @return Is the PandorCoreAPI enabled and registered?
18
18
*/
19
+ @ SneakyThrows
19
20
public static boolean isRegistered () {
20
- throw new IllegalPluginAccessException ("PandorCoreAPI is not registered!" );
21
+ throw new Exception ("PandorCoreAPI is not registered!" );
21
22
}
22
23
23
24
/**
24
25
* The #getPlayerData method allows you to access player data
25
26
*
26
27
* @return player's profile.
27
28
*/
29
+ @ SneakyThrows
28
30
public PandorianProxyPlayer getPlayerData (UUID player ) {
29
- throw new IllegalPluginAccessException ("PandorCoreAPI is not registered!" );
31
+ throw new Exception ("PandorCoreAPI is not registered!" );
30
32
}
31
33
}
Original file line number Diff line number Diff line change
1
+ package net .pandorianmc .velocity .api ;
2
+
3
+ import lombok .SneakyThrows ;
4
+ import net .pandorianmc .velocity .data .PandorianProxyPlayer ;
5
+
6
+ import java .util .UUID ;
7
+
8
+ /**
9
+ * The PandorCoreAPI allows you to hook into PandorCore to either modify and grab data
10
+ * or to add new features and events. Questions? https://discord.pandorianmc.net/
11
+ */
12
+ public class PandorCoreAPI {
13
+
14
+ public static net .pandorianmc .bungee .api .PandorCoreAPI INSTANCE ;
15
+
16
+ /**
17
+ * @return Is the PandorCoreAPI enabled and registered?
18
+ */
19
+ @ SneakyThrows
20
+ public static boolean isRegistered () {
21
+ throw new Exception ("PandorCoreAPI is not registered!" );
22
+ }
23
+
24
+ /**
25
+ * The #getPlayerData method allows you to access player data
26
+ *
27
+ * @return player's profile.
28
+ */
29
+ @ SneakyThrows
30
+ public PandorianProxyPlayer getPlayerData (UUID player ) {
31
+ throw new Exception ("PandorCoreAPI is not registered!" );
32
+ }
33
+ }
You can’t perform that action at this time.
0 commit comments