Skip to content

Commit

Permalink
misc: Added deprecation message in legacy modules
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Sep 3, 2023
1 parent 0edda2b commit 08e9886
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public class LANBroadcasterBukkit extends JavaPlugin {
@SuppressWarnings("deprecation")
@Override
public void onEnable() {
Server server = getServer();
getLogger().warning("This version of LANBroadcaster is deprecated and will be removed in the future. Consider using Paper in conjunction with LANBroadcasterPaper");
final Server server = getServer();
this.broadcaster = new LANBroadcaster(
server.getPort(),
server::getMotd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class LANBroadcasterBungee extends Plugin {
@Override
@SuppressWarnings("unchecked")
public void onEnable() {
getLogger().warning("This version of LANBroadcaster is deprecated and will be removed in the future. Consider using Velocity in conjunction with LANBroadcasterVelocity");
final Collection<?> listeners = getProxy().getConfigurationAdapter()
.getList("listeners", Collections.emptyList());
for (final Object obj : listeners) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group = me.bhop
version = 2.3.0
version = 2.3.1-SNAPSHOT
description = Broadcasts a Minecraft server over LAN.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ velocity = "3.2.0-SNAPSHOT"
kotlin="1.9.10"
waterfall="1.19-R0.1-SNAPSHOT"
bukkit = "1.16.5-R0.1-SNAPSHOT"
paper = "1.19.4-R0.1-SNAPSHOT"
paper = "1.20.1-R0.1-SNAPSHOT"
runtask = "2.1.0"
plugin-yml = "0.6.0"
blossom = "1.3.1"
Expand Down
2 changes: 1 addition & 1 deletion paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tasks {
options.release.set(17)
}
runServer {
minecraftVersion("1.19.3")
minecraftVersion("1.20.1")
}
processResources {
filesMatching("paper-plugin.yml") {
Expand Down

0 comments on commit 08e9886

Please sign in to comment.