mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 14:03:22 +00:00
Fixed null pointers for getName
This commit is contained in:
parent
e0adcb3b60
commit
5c4f1332d6
5 changed files with 31 additions and 9 deletions
|
@ -251,7 +251,10 @@ import java.util.UUID;
|
|||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public static void setSign(final World world, final String name, final Plot p) {
|
||||
public static void setSign(final World world, String name, final Plot p) {
|
||||
if (name == null) {
|
||||
name = "unknown";
|
||||
}
|
||||
final PlotManager manager = PlotMain.getPlotManager(world);
|
||||
final PlotWorld plotworld = PlotMain.getWorldSettings(world);
|
||||
final Location loc = manager.getSignLoc(world, plotworld, p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue