File tree Expand file tree Collapse file tree
common/src/main/java/com/tcoded/folialib
folia/src/main/java/com/tcoded/folialib/impl
legacy-spigot/src/main/java/com/tcoded/folialib/impl
spigot/src/main/java/com/tcoded/folialib/impl
unsupported/src/main/java/com/tcoded/folialib/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .tcoded .folialib .enums .ImplementationType ;
44import com .tcoded .folialib .impl .PlatformScheduler ;
55import com .tcoded .folialib .util .InvalidTickDelayNotifier ;
6- import org .bukkit .plugin .java . JavaPlugin ;
6+ import org .bukkit .plugin .Plugin ;
77
88import java .lang .reflect .InvocationTargetException ;
99import java .util .logging .Logger ;
1010
1111public class FoliaLib {
1212
13- private final JavaPlugin plugin ;
13+ private final Plugin plugin ;
1414
1515 private final ImplementationType implementationType ;
1616 private final PlatformScheduler scheduler ;
1717
18- public FoliaLib (JavaPlugin plugin ) {
18+ public FoliaLib (Plugin plugin ) {
1919 this .plugin = plugin ;
2020
2121 // Find the implementation type based on the class names
@@ -95,7 +95,7 @@ public boolean isUnsupported() {
9595 return implementationType == ImplementationType .UNKNOWN ;
9696 }
9797
98- public JavaPlugin getPlugin () {
98+ public Plugin getPlugin () {
9999 return plugin ;
100100 }
101101
Original file line number Diff line number Diff line change 1616import org .bukkit .entity .Entity ;
1717import org .bukkit .entity .Player ;
1818import org .bukkit .event .player .PlayerTeleportEvent ;
19- import org .bukkit .plugin .java . JavaPlugin ;
19+ import org .bukkit .plugin .Plugin ;
2020import org .jetbrains .annotations .NotNull ;
2121
2222import java .lang .reflect .Field ;
3333@ SuppressWarnings ("unused" )
3434public class FoliaImplementation implements PlatformScheduler {
3535
36- private final JavaPlugin plugin ;
36+ private final Plugin plugin ;
3737 private final GlobalRegionScheduler globalRegionScheduler ;
3838 private final AsyncScheduler asyncScheduler ;
3939
Original file line number Diff line number Diff line change 1414import org .bukkit .entity .Player ;
1515import org .bukkit .entity .Projectile ;
1616import org .bukkit .event .player .PlayerTeleportEvent ;
17- import org .bukkit .plugin .java . JavaPlugin ;
17+ import org .bukkit .plugin .Plugin ;
1818import org .bukkit .scheduler .BukkitScheduler ;
1919import org .bukkit .scheduler .BukkitTask ;
2020import org .jetbrains .annotations .NotNull ;
3232@ SuppressWarnings ("unused" )
3333public class LegacySpigotImplementation implements PlatformScheduler {
3434
35- private final JavaPlugin plugin ;
35+ private final Plugin plugin ;
3636 private final @ NotNull BukkitScheduler scheduler ;
3737
3838 public LegacySpigotImplementation (FoliaLib foliaLib ) {
Original file line number Diff line number Diff line change 1212import org .bukkit .entity .Player ;
1313import org .bukkit .entity .Projectile ;
1414import org .bukkit .event .player .PlayerTeleportEvent ;
15- import org .bukkit .plugin .java . JavaPlugin ;
15+ import org .bukkit .plugin .Plugin ;
1616import org .bukkit .scheduler .BukkitScheduler ;
1717import org .bukkit .scheduler .BukkitTask ;
1818import org .jetbrains .annotations .NotNull ;
3030@ SuppressWarnings ("unused" )
3131public class SpigotImplementation implements PlatformScheduler {
3232
33- private final JavaPlugin plugin ;
33+ private final Plugin plugin ;
3434 private final @ NotNull BukkitScheduler scheduler ;
3535
3636 public SpigotImplementation (FoliaLib foliaLib ) {
Original file line number Diff line number Diff line change 11package com .tcoded .folialib .impl ;
22
33import com .tcoded .folialib .FoliaLib ;
4- import org .bukkit .plugin .java . JavaPlugin ;
4+ import org .bukkit .plugin .Plugin ;
55
66import java .util .logging .Logger ;
77
@@ -11,7 +11,7 @@ public class UnsupportedImplementation extends LegacySpigotImplementation {
1111 public UnsupportedImplementation (FoliaLib foliaLib ) {
1212 super (foliaLib );
1313
14- JavaPlugin plugin = foliaLib .getPlugin ();
14+ Plugin plugin = foliaLib .getPlugin ();
1515 Logger logger = plugin .getLogger ();
1616
1717 logger .warning (
You can’t perform that action at this time.
0 commit comments