9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-19 14:59:19 +00:00

Allow deprecation message to be disabled

This commit is contained in:
SamB440
2025-09-02 18:44:23 +01:00
parent 9c5574033a
commit 7368dde19c
2 changed files with 3 additions and 1 deletions

View File

@@ -32,12 +32,13 @@ public enum IntegrationType {
return Optional.empty();
}
if (this == RPGREGIONS) {
if (this == RPGREGIONS && !plugin.getConfig().getBoolean("acknowledge-orbis", false)) {
plugin.getLogger().warning("The RPGRegions integration has been deprecated and will not receive updates.");
plugin.getLogger().warning("You are instead recommended to use the Orbis integration.");
plugin.getLogger().warning("Find download options for Orbis at: https://github.com/EmpireWar/Orbis?tab=readme-ov-file#-downloads.");
plugin.getLogger().warning("Migration tutorial can be found at: https://github.com/EmpireWar/Orbis/wiki/Migration-from-another-plugin.");
plugin.getLogger().warning("Orbis has better performance and more features and is maintained by me directly.");
plugin.getLogger().warning("You can silence this message by adding `acknowledge-orbis=true` to your config.yml under `settings.external`.");
}
Class<? extends IntegrationManager> clazz = (Class<? extends IntegrationManager>) Class

View File

@@ -25,6 +25,7 @@ settings:
name: RPGRegions # Name of the integration: WorldGuard, Residence, GriefPrevention, GriefDefender, UltraRegions, Lands, RPGRegions
external:
dynmap: true # Enable dynmap support
acknowledge-orbis: false # Enable to silence the RPGRegions integration deprecation warning.
teleport:
# Enable a permission for costing money on teleport.
# Example: rpgregions.teleport.10*n+100 means It costs $100 per teleport and 10 more per block away from the target location.