mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
parent
c8406681d7
commit
cc48f273c0
@ -180,7 +180,9 @@ public class Deny extends SubCommand {
|
|||||||
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
|
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
|
||||||
if (plot.equals(newSpawn.getPlot())) {
|
if (plot.equals(newSpawn.getPlot())) {
|
||||||
// Kick from server if you can't be teleported to spawn
|
// Kick from server if you can't be teleported to spawn
|
||||||
player.sendMessage(TranslatableCaption.of("deny.you_got_denied"));
|
// Use string based message here for legacy uses
|
||||||
|
player.kick("You got kicked from the plot! This server did not set up a loaded spawn, so you got " +
|
||||||
|
"kicked from the server.");
|
||||||
} else {
|
} else {
|
||||||
player.teleport(newSpawn);
|
player.teleport(newSpawn);
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,9 @@ public class Kick extends SubCommand {
|
|||||||
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
|
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
|
||||||
if (plot.equals(newSpawn.getPlot())) {
|
if (plot.equals(newSpawn.getPlot())) {
|
||||||
// Kick from server if you can't be teleported to spawn
|
// Kick from server if you can't be teleported to spawn
|
||||||
player2.sendMessage(TranslatableCaption.of("kick.you_got_kicked"));
|
// Use string based message here for legacy uses
|
||||||
|
player2.kick("You got kicked from the plot! This server did not set up a loaded spawn, so you got " +
|
||||||
|
"kicked from the server.");
|
||||||
} else {
|
} else {
|
||||||
player2.plotkick(newSpawn);
|
player2.plotkick(newSpawn);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user