mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 12:38:40 +01:00
FOUND THE CULPRIT.
This commit is contained in:
parent
42b971c8b8
commit
c646dd16a0
@ -6,6 +6,7 @@ import com.Acrobot.ChestShop.Configuration.Properties;
|
||||
import com.Acrobot.ChestShop.Database.Account;
|
||||
import com.Acrobot.ChestShop.Database.ConnectionManager;
|
||||
import com.Acrobot.ChestShop.Permission;
|
||||
import com.Acrobot.ChestShop.Signs.ChestShopSign;
|
||||
import com.google.common.collect.BiMap;
|
||||
import com.google.common.collect.HashBiMap;
|
||||
import com.j256.ormlite.dao.Dao;
|
||||
@ -100,6 +101,10 @@ public class NameManager {
|
||||
}
|
||||
|
||||
public static String getFullUsername(String username) {
|
||||
if (ChestShopSign.isAdminShop(username)) {
|
||||
return Properties.ADMIN_SHOP_NAME;
|
||||
}
|
||||
|
||||
String shortName = NameUtil.stripUsername(username);
|
||||
|
||||
if (shortToLongName.containsKey(shortName)) {
|
||||
|
Loading…
Reference in New Issue
Block a user