From 3b27af0964cd436608ede2a9a568d83b908074bb Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Sun, 15 Dec 2024 10:06:57 +0100 Subject: [PATCH] Mark ViaPlatform#isPluginEnabled as deprecated (#4313) --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .../com/viaversion/viaversion/api/platform/ViaPlatform.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 2395d98ca..2f9381014 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -41,7 +41,7 @@ body: Describe the unexpected behavior. If you want to attach screenshots, use the comment field at the bottom of the page. placeholder: | - Example: "Placing signs on 1.13.2 causes text to disappear." + Example: "Placing signs on 1.21.3 causes text to disappear." validations: required: true diff --git a/api/src/main/java/com/viaversion/viaversion/api/platform/ViaPlatform.java b/api/src/main/java/com/viaversion/viaversion/api/platform/ViaPlatform.java index 3c09393e4..4b3e750c2 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/platform/ViaPlatform.java +++ b/api/src/main/java/com/viaversion/viaversion/api/platform/ViaPlatform.java @@ -163,7 +163,10 @@ public interface ViaPlatform { * * @return True if it is enabled */ - boolean isPluginEnabled(); + @Deprecated(forRemoval = true) + default boolean isPluginEnabled() { + return true; + } /** * Get the API for this platform