mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 06:36:44 +01:00
Oh yeah.. I was in offline mode. That explains a lot.
This commit is contained in:
parent
d8137358f1
commit
5298486403
@ -137,6 +137,9 @@ public class PlayerFunctions {
|
||||
|
||||
String world = loc.getWorld().getName();
|
||||
PlotWorld plotworld = PlotMain.getWorldSettings(world);
|
||||
if (plotworld==null) {
|
||||
return null;
|
||||
}
|
||||
int size = plotworld.PLOT_WIDTH + plotworld.ROAD_WIDTH;
|
||||
int pathWidthLower;
|
||||
if ((plotworld.ROAD_WIDTH % 2) == 0) {
|
||||
|
@ -71,6 +71,9 @@ public class Info extends SubCommand {
|
||||
if (plot.owner != null) {
|
||||
owner = Bukkit.getOfflinePlayer(plot.owner).getName();
|
||||
}
|
||||
if (owner==null) {
|
||||
owner = plot.owner.toString();
|
||||
}
|
||||
|
||||
String info = C.PLOT_INFO.s();
|
||||
info = info.replaceAll("%alias%", plot.settings.getAlias().length() > 0 ? plot.settings.getAlias() : "none");
|
||||
|
@ -42,8 +42,6 @@ public class PlotMeConverter {
|
||||
// TODO generate configuration based on PlotMe config
|
||||
// TODO
|
||||
// - Plugin doesn't display a message if database is not setup at all
|
||||
// - I get null pointer exceptions when I try to use the plugin after the conversion process
|
||||
// - Could be my fault when I added multiworld, or mega plots or something...
|
||||
|
||||
PlotMain.sendConsoleSenderMessage("Converting " + plots.size() + " plots for '" + world.toString() + "'...");
|
||||
for (Plot plot : plots.values()) {
|
||||
|
Loading…
Reference in New Issue
Block a user