Former-commit-id: 3bbebcd2a1a7cefa71b16d69192f00fd4cdde89d [formerly 0c60b1f3df22c01380c633e896972ad2e1af32cf]
Former-commit-id: 332aa20702b76ecd6edbf5397e8412d25f9492a9
This commit is contained in:
Ghost_chu committed 2019-12-12 10:24:23 +08:00
1 parent 27acbebdc7
commit bd030a04f7
2 files changed
+7 -1

No files matched your search

@@ -54,7 +54,10 @@ public class SubCommand_SetOwner implements CommandProcesser {
@SuppressWarnings("deprecation")
final OfflinePlayer p = plugin.getServer().getOfflinePlayer(cmdArg[0]);
final String shopOwner = plugin.getServer().getOfflinePlayer(shop.getOwner()).getName();
if(shopOwner == null){
sender.sendMessage(MsgUtil.getMessage("unknown-player",null));
return;
}
shop.setOwner(p.getUniqueId());
//shop.setSignText();
shop.update();
@@ -197,6 +197,9 @@ public class ShopLoader {
Util.debugLog("Shop Owner is null");
return true;
}
if(Bukkit.getOfflinePlayer(shop.getOwner()).getName() == null){
Util.debugLog("Shop owner not exist on this server, did you reset the playerdata?");
}
return false;
}