Skip to content

Commit 0403a04

Browse files
committed
Fix plot context being ignored if using /set command
Fixes #4526
1 parent 6cbb894 commit 0403a04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Core/src/main/java/com/plotsquared/core/command/SetCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public abstract class SetCommand extends SubCommand {
3232

3333
@Override
3434
public boolean onCommand(PlotPlayer<?> player, String[] args) {
35-
Location location = player.getLocation();
36-
Plot plot = location.getPlotAbs();
35+
Plot plot = player.getCurrentPlot();
3736
if (plot == null) {
3837
player.sendMessage(TranslatableCaption.of("errors.not_in_plot"));
3938
return false;

0 commit comments

Comments
 (0)