mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fix: /plot music
being able to be used on unclaimed plots (#3432)
This commit is contained in:
parent
b43d08f4aa
commit
8f7c2e4c02
@ -76,6 +76,10 @@ public class Music extends SubCommand {
|
|||||||
player.sendMessage(TranslatableCaption.of("errors.not_in_plot"));
|
player.sendMessage(TranslatableCaption.of("errors.not_in_plot"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!plot.hasOwner()) {
|
||||||
|
player.sendMessage(TranslatableCaption.of("info.plot_unowned"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!plot.isAdded(player.getUUID()) && !Permissions
|
if (!plot.isAdded(player.getUUID()) && !Permissions
|
||||||
.hasPermission(player, Permission.PERMISSION_ADMIN_MUSIC_OTHER)) {
|
.hasPermission(player, Permission.PERMISSION_ADMIN_MUSIC_OTHER)) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
|
Loading…
Reference in New Issue
Block a user