|
|
@@ -385,6 +385,9 @@ public class GuildLogic {
|
|
|
int uid = session.getUid();
|
|
|
User user = UserManager.getUser(uid);
|
|
|
int msgId = MessageTypeProto.MessageType.FAMILY_CREATE_RESPONSE_VALUE;
|
|
|
+ if (user.getPlayerInfoManager().getVipLevel() < 6) {
|
|
|
+ throw new ErrorCodeException(ErrorCode.VIP_LEVEL_NOT_ENOUGH);
|
|
|
+ }
|
|
|
checkForCreateGuild(user, familyName, announce,channelId);
|
|
|
boolean enough = ItemUtil.itemCost(user, SGuildSetting.sGuildSetting.getCreatCost(), BIReason.CREATE_GUILD_CONSUME, 0);
|
|
|
if (!enough) {
|