mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Fix #237
Former-commit-id: 3bbebcd2a1a7cefa71b16d69192f00fd4cdde89d [formerly 0c60b1f3df22c01380c633e896972ad2e1af32cf] Former-commit-id: 332aa20702b76ecd6edbf5397e8412d25f9492a9
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user