mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Merge v5/v6
This commit is contained in:
commit
cba2474df7
32
.github/dependabot.yml
vendored
Normal file
32
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: gradle
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: v6
|
||||||
|
ignore:
|
||||||
|
- dependency-name: com.google.guava:guava
|
||||||
|
versions:
|
||||||
|
- ">= 22.a"
|
||||||
|
- "< 23"
|
||||||
|
- dependency-name: com.google.guava:guava
|
||||||
|
versions:
|
||||||
|
- ">= 23.a"
|
||||||
|
- "< 24"
|
||||||
|
- dependency-name: com.squareup.okhttp3:okhttp
|
||||||
|
versions:
|
||||||
|
- "> 4.2.2"
|
||||||
|
- dependency-name: com.squareup.okio:okio
|
||||||
|
versions:
|
||||||
|
- "> 2.4.1"
|
||||||
|
- "< 3"
|
||||||
|
- dependency-name: com.squareup.retrofit2:retrofit
|
||||||
|
versions:
|
||||||
|
- "> 2.4.0"
|
||||||
|
- "< 3"
|
||||||
|
- dependency-name: net.kyori:text-adapter-bukkit
|
||||||
|
versions:
|
||||||
|
- "> 3.0.3"
|
||||||
|
- "< 3.1"
|
@ -31,6 +31,7 @@ import com.plotsquared.bukkit.placeholder.MVdWPlaceholders;
|
|||||||
import com.plotsquared.core.PlotSquared;
|
import com.plotsquared.core.PlotSquared;
|
||||||
import com.plotsquared.core.configuration.caption.TranslatableCaption;
|
import com.plotsquared.core.configuration.caption.TranslatableCaption;
|
||||||
import com.plotsquared.core.player.ConsolePlayer;
|
import com.plotsquared.core.player.ConsolePlayer;
|
||||||
|
import com.plotsquared.core.configuration.Settings;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
@ -47,7 +48,7 @@ public class ServerListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler public void onServerLoad(ServerLoadEvent event) {
|
@EventHandler public void onServerLoad(ServerLoadEvent event) {
|
||||||
if (Bukkit.getPluginManager().getPlugin("MVdWPlaceholderAPI") != null) {
|
if (Bukkit.getPluginManager().getPlugin("MVdWPlaceholderAPI") != null && Settings.Enabled_Components.USE_MVDWAPI) {
|
||||||
new MVdWPlaceholders(this.plugin, PlotSquared.get().getPlaceholderRegistry());
|
new MVdWPlaceholders(this.plugin, PlotSquared.get().getPlaceholderRegistry());
|
||||||
ConsolePlayer.getConsole().sendMessage(TranslatableCaption.of("placeholder.hooked"));
|
ConsolePlayer.getConsole().sendMessage(TranslatableCaption.of("placeholder.hooked"));
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ repositories {
|
|||||||
def textVersion = "3.0.2"
|
def textVersion = "3.0.2"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.yaml:snakeyaml:1.25")
|
implementation("org.yaml:snakeyaml:1.26")
|
||||||
implementation("com.google.code.gson:gson:2.8.6") {
|
implementation("com.google.code.gson:gson:2.8.6") {
|
||||||
because("Minecraft uses GSON 2.8.0")
|
because("Minecraft uses GSON 2.8.0")
|
||||||
force = true
|
force = true
|
||||||
|
@ -587,6 +587,8 @@ public class Settings extends Config {
|
|||||||
public static boolean EXTENDED_USERNAME_COMPLETION = true;
|
public static boolean EXTENDED_USERNAME_COMPLETION = true;
|
||||||
@Comment("Command aliases that will be tab completed")
|
@Comment("Command aliases that will be tab completed")
|
||||||
public static List<String> TAB_COMPLETED_ALIASES = Arrays.asList("plot", "plots", "p", "plotsquared", "plot2", "p2", "ps", "2", "plotme", "plotz", "ap");
|
public static List<String> TAB_COMPLETED_ALIASES = Arrays.asList("plot", "plots", "p", "plotsquared", "plot2", "p2", "ps", "2", "plotme", "plotz", "ap");
|
||||||
|
@Comment("Whether PlotSquared should hook into MvDWPlaceholderAPI or not")
|
||||||
|
public static boolean USE_MVDWAPI = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,14 +14,14 @@ buildscript {
|
|||||||
configurations.all {
|
configurations.all {
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
force("org.ow2.asm:asm:8.0.1")
|
force("org.ow2.asm:asm:8.0.1")
|
||||||
force("org.jetbrains:annotations:20.0.0")
|
force("org.jetbrains:annotations:20.1.0")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id "org.ajoberstar.grgit" version "4.0.1"
|
id "org.ajoberstar.grgit" version "4.0.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.plotsquared"
|
group = "com.plotsquared"
|
||||||
@ -96,7 +96,7 @@ subprojects { subproject ->
|
|||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
force("junit:junit:4.12")
|
force("junit:junit:4.12")
|
||||||
force("com.google.guava:guava:21.0")
|
force("com.google.guava:guava:21.0")
|
||||||
force("org.jetbrains:annotations:20.0.0")
|
force("org.jetbrains:annotations:20.1.0")
|
||||||
force("com.google.code.findbugs:jsr305:3.0.2")
|
force("com.google.code.findbugs:jsr305:3.0.2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user