mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Merge branch 'v6' into v7
This commit is contained in:
commit
62197f3deb
2
.gitignore
vendored
2
.gitignore
vendored
@ -131,6 +131,8 @@ local.properties
|
|||||||
checkstyle.xml
|
checkstyle.xml
|
||||||
classes/
|
classes/
|
||||||
*.bat
|
*.bat
|
||||||
|
|
||||||
|
# Other
|
||||||
docs/
|
docs/
|
||||||
build/
|
build/
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ repositories {
|
|||||||
|
|
||||||
maven {
|
maven {
|
||||||
name = "PaperMC"
|
name = "PaperMC"
|
||||||
url = uri("https://papermc.io/repo/repository/maven-public/")
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
@ -85,6 +85,8 @@ tasks.named<ShadowJar>("shadowJar") {
|
|||||||
relocate("javax.annotation", "com.plotsquared.core.annotation")
|
relocate("javax.annotation", "com.plotsquared.core.annotation")
|
||||||
relocate("com.github.spotbugs", "com.plotsquared.core.spotbugs")
|
relocate("com.github.spotbugs", "com.plotsquared.core.spotbugs")
|
||||||
relocate("javax.inject", "com.plotsquared.core.annotation.inject")
|
relocate("javax.inject", "com.plotsquared.core.annotation.inject")
|
||||||
|
relocate("net.jcip", "com.plotsquared.core.annotations.jcip")
|
||||||
|
relocate("edu.umd.cs.findbugs", "com.plotsquared.core.annotations.findbugs")
|
||||||
|
|
||||||
// Get rid of all the libs which are 100% unused.
|
// Get rid of all the libs which are 100% unused.
|
||||||
minimize()
|
minimize()
|
||||||
|
@ -166,6 +166,7 @@ public class Deny extends SubCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleKick(PlotPlayer<?> player, Plot plot) {
|
private void handleKick(PlotPlayer<?> player, Plot plot) {
|
||||||
|
plot = plot.getBasePlot(false);
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ import com.plotsquared.core.player.PlotPlayer;
|
|||||||
import com.plotsquared.core.plot.Plot;
|
import com.plotsquared.core.plot.Plot;
|
||||||
import com.plotsquared.core.plot.flag.GlobalFlagContainer;
|
import com.plotsquared.core.plot.flag.GlobalFlagContainer;
|
||||||
import com.plotsquared.core.plot.flag.PlotFlag;
|
import com.plotsquared.core.plot.flag.PlotFlag;
|
||||||
|
import com.plotsquared.core.plot.flag.implementations.ServerPlotFlag;
|
||||||
import com.plotsquared.core.util.EventDispatcher;
|
import com.plotsquared.core.util.EventDispatcher;
|
||||||
import com.plotsquared.core.util.PlayerManager;
|
import com.plotsquared.core.util.PlayerManager;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
@ -109,6 +110,9 @@ public final class PlaceholderRegistry {
|
|||||||
return plot.getAlias();
|
return plot.getAlias();
|
||||||
});
|
});
|
||||||
this.createPlaceholder("currentplot_owner", (player, plot) -> {
|
this.createPlaceholder("currentplot_owner", (player, plot) -> {
|
||||||
|
if (plot.getFlag(ServerPlotFlag.class)){
|
||||||
|
return legacyComponent(TranslatableCaption.of("info.server"), player);
|
||||||
|
}
|
||||||
final UUID plotOwner = plot.getOwnerAbs();
|
final UUID plotOwner = plot.getOwnerAbs();
|
||||||
if (plotOwner == null) {
|
if (plotOwner == null) {
|
||||||
return legacyComponent(TranslatableCaption.of("generic.generic_unowned"), player);
|
return legacyComponent(TranslatableCaption.of("generic.generic_unowned"), player);
|
||||||
|
@ -17,7 +17,7 @@ adventure-platform-bukkit = "4.1.0"
|
|||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
worldedit = "7.2.10"
|
worldedit = "7.2.10"
|
||||||
fawe = "2.1.2"
|
fawe = "2.2.0"
|
||||||
vault = "1.7.1"
|
vault = "1.7.1"
|
||||||
placeholderapi = "2.11.1"
|
placeholderapi = "2.11.1"
|
||||||
luckperms = "5.4"
|
luckperms = "5.4"
|
||||||
|
Loading…
Reference in New Issue
Block a user