mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-05 09:20:52 +01:00
parent
c8406681d7
commit
cc48f273c0
@ -180,7 +180,9 @@ public class Deny extends SubCommand {
|
||||
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
|
||||
if (plot.equals(newSpawn.getPlot())) {
|
||||
// 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 {
|
||||
player.teleport(newSpawn);
|
||||
}
|
||||
|
@ -138,7 +138,9 @@ public class Kick extends SubCommand {
|
||||
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
|
||||
if (plot.equals(newSpawn.getPlot())) {
|
||||
// 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 {
|
||||
player2.plotkick(newSpawn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user