VIP
직접 설계하는 유료 VIP 레벨: 가격, 기간, 이미지, 색상, 특권(프레임, 입장 효과, 컬러 닉네임, 강퇴·차단 방지, 숨김 방). 코인으로 본인용 또는 선물로 구매하며 가방에 보관됩니다.
Arjun Mehta 제작최초 게시 2026. 11. 29.최종 업데이트 2026. 12. 1.
이 기능에 대하여
직접 설계하는 유료 VIP 레벨: 가격, 기간, 이미지, 색상, 특권(프레임, 입장 효과, 컬러 닉네임, 강퇴·차단 방지, 숨김 방). 코인으로 본인용 또는 선물로 구매하며 가방에 보관됩니다.
하는 일
- 작동 방식: 원하는 만큼 VIP 레벨을 만들 수 있습니다(레벨 1, 2, 3 등). 사용자는 앱에서 VIP 센터를 열고, VIP 스토어에서 레벨을 고른 뒤 코인으로 구매합니다. 본인이 쓰거나 다른 사용자에게 선물로 보낼 수 있습니다. 코인이 차감되고 VIP가 한 단계에서 VIP 가방에 추가됩니다. 무언가 실패하면 코인은 그대로 남습니다. 구매한 VIP는 열지 않은 채 가방에서 기다리며, 기간은 처음 사용하거나(또는 아이템을 처음 착용할 때) 비로소 집계되기 시작합니다. 한 번에 VIP 하나만 작동합니다. 다른 VIP를 켜면 처음 것이 멈춥니다. 다시 끌 수는 있지만, 기간이 끝난 VIP는 켤 수 없습니다. Levels 기능이 설치되어 있으면 지불한 금액은 사용자의 재산 레벨에도 더해집니다.
- 각 레벨마다 설정하는 항목: 레벨 번호(번호당 레벨 하나), 이름, 레벨 이미지(이름 옆에 표시되는 VIP 배지), 레벨 페이지의 배경 이미지, #RRGGBB 형식의 색 세 가지(페이지 배경, 금색, 밝은 금색), 정수 코인 가격(1 이상), 일 단위 기간(슈퍼 관리자가 아닌 관리자는 최대 30일까지 설정 가능), 레벨이 포함하는 특권(유형마다 한 번씩), 그리고 일반 채팅 설정 외에 레벨 멤버가 채팅 목록 상단에 고정할 수 있는 추가 채팅 수(0~1000). 레벨의 자체 상품이 아직 어딘가에서 보상으로 지급되고 있다면 그 레벨은 삭제할 수 없습니다.
- 특권 1부: 자체 이미지나 애니메이션이 있는 아이템입니다. 레벨 설정 버튼에서 각 레벨의 아이템을 만들거나, 다른 레벨이 쓰지 않는 기존 스토어 아이템을 연결합니다: VIP 아이콘(선택하지 않아도 모든 레벨에 함께 제공되며, 레벨 이미지 자체입니다), Avatar Frame, Profile Frame(반쪽 이미지 옵션 포함), Chat Bubble(위·왼쪽·오른쪽·아래 여백 포함), Entrance, Entrance Banner, Gift Banner(보유자가 비싼 선물을 보낼 때 앱에 그려지는 띠. 레벨마다 자체 배너가 있으며 코인 구간의 띠보다 우선합니다). 각 아이템에는 이름, 제목, 이미지, 유형이 있는 애니메이션 파일, 일 단위 유효 기간(0 = VIP가 유지되는 동안), 그리고 켜기/끄기 설정이 있습니다.
- 특권 2부: 이미지를 만들 필요 없이 레벨에 대해 켜지는 동작: Colored Name(레벨에 맞춰 고른 색으로 이름이 표시됨), Hide profile visits(프로필을 보되 방문 기록을 남기지 않음), Hide country(프로필에 이름과 국기가 표시되지 않음), Animated profile picture(프로필 사진으로 GIF를 받아들임; 이것이 없으면 GIF는 거부됨), Hidden last seen(지금 온라인인지 아무도 알 수 없음), Hidden read receipts(보낸 사람에게는 여전히 회색 체크 두 개가 보임), Protected from kicks(패널을 통한 경우를 제외하고 아무도 방에서 내보낼 수 없음), Protected from bans(아무도 방에서 차단하거나 차단 목록에 추가할 수 없음), Hidden room(방이 목록에 나오지 않고, 검색되지 않으며, 프로필 카드에 표시되지 않음), Anonymous entry(방에 들어가도 방 안 사람들 사이에 이름이 나타나지 않음). 특권은 모두 합쳐 최대 17개이며, 각각은 해당 기능(스토어, 채팅, 프로필, 음성 룸, 선물)이 설치되어 있을 때만 나타나므로 판매할 수 없는 특권은 보이지 않습니다. 이 중 열두 개는 사용자가 자신의 VIP 설정에서 직접 켜고 끌 수 있으며, 강퇴·차단 방지, 숨김 방, 익명 입장, 선물 배너는 계속 켜진 상태로 유지됩니다.
- 가방, 선물, 내역: VIP 가방에서 사용자는 자신이 가진 VIP마다 사용 중, 일시 정지, 또는 첫 사용 시 시작 상태인지와 그 아이템들을 볼 수 있습니다. 지금 사용하거나 선물로 보낼 수 있습니다. 한 번도 사용하지 않은 VIP는 친구의 ID(사람들이 보는 번호, 특수 ID 포함)로 친구에게 보낼 수 있습니다. 아이템도 함께 전달되며, 차단된 계정은 받을 수 없고, 자기 자신에게는 보낼 수 없으며, 보낸 선물은 되돌릴 수 없습니다. 선물 내역 화면에는 보낸 것과 받은 것이 나열됩니다. 구매 수량은 1~12이며, 합계 일수가 전달 가능한 범위를 넘으면 구매 전체가 거부됩니다.
- 컨트롤 패널에서 관리하는 항목: 화면 다섯 개로 된 VIP 섹션. VIP Levels(생성, 수정, 삭제, 보기; 위의 레벨 양식). VIP Privileges(특권마다 이름, 제목, 유형, 필수 이미지 두 장: 활성과 비활성; 패널 기본 언어의 이름과 제목 하나씩, 다른 언어는 번역 화면에서 가져옴). VIP Wares(레벨별 아이템을 레벨과 유형으로 필터링하며, 상태 스위치, VIP용 활성화, 유효 기간과 수량 설정). VIP Dedicate(임의의 사용자에게 레벨을 지급: 사용자 ID를 입력하고, 필요하면 일수를 입력하거나 레벨 자체 기간을 쓰도록 비워 둡니다. 사용자는 푸시와 공식 메시지를 받습니다. 슈퍼 관리자가 아닌 관리자는 30일과 자신의 지역 사용자로 제한됩니다). VIP Settings(선택 하나, Enable Vip Auto). 각 사용자 페이지의 VIPs 탭에는 보유한 레벨이 나열되며, 하나를 제거하는 버튼이 있습니다. 이 모든 기능은 23개 권한(레벨, 레벨 아이템, 특권, 상품, 설정, 지급 각각에 대한 보기, 생성, 수정, 삭제, 표시)으로 보호되며, 기본적으로 관리자 직책에 부여됩니다.
- 이미지 및 애니메이션 파일: 레벨 배경은 일반 이미지이고, 레벨 이미지는 파일로 업로드됩니다. 아이템 이미지는 이미지를 받으며, 애니메이션 파일은 SVGA, VAP, PAG, 알파 채널 영상(투명 MP4), 일반 MP4, 이미지를 받습니다. 파일 형식은 파일 내용에서 감지되며 변경할 수 있고, 특권 이미지(활성과 비활성)는 이미지입니다. (애니메이션 형식을 담당하는 스토어가 필요합니다.)
- 사용자가 앱에서 보는 것: 현재 레벨, 전체 중 남은 일수, 특권이 표시되는 VIP 센터. 레벨을 구매하거나 갱신하고 가격, 기간, 열리는 특권, 다음 레벨을 볼 수 있는 VIP 스토어. 가방. VIP 설정(특권마다 켜고 끄며 자동 저장). 선물 내역. 이름이 나타나는 모든 곳에서 이름 옆에 표시되는 VIP 배지. 화면에 표시되는 컬러 닉네임, 프레임, 말풍선, 입장 효과. 그리고 어떤 기능에 특정 레벨이 필요한 곳에서는 스토어를 여는 «이것을 이용하려면 VIP N 이상을 구매해야 합니다»라는 명확한 메시지. 아직 레벨이 없는 서버에는 «No VIP levels yet»가 표시됩니다.
- 모든 테마와 함께 작동합니다: VIP 센터, 스토어, 가방, 설정은 활성 테마에서 색을 가져오며, 각 레벨의 페이지는 그 레벨에 맞게 고른 색을 사용합니다. 글자 색은 모든 테마에서 읽기 쉽도록 선택됩니다.
- 추가 기능(애드온) 없음: 모든 특권은 VIP 자체에 포함되어 있으며, 자체 특권을 가져오는 기능을 설치하면 목록이 저절로 늘어납니다.
- 당신에게 가치가 있는 이유: VIP는 가장 활발한 사용자에게 팔 수 있는 가장 명확한 상품입니다. 레벨이 몇 개인지, 각각의 가격과 기간이 얼마인지는 당신이 정합니다. 특권(외형, 개인정보 보호, 보호)은 사용자가 실제로 원하고 갱신할 것들입니다. 선물은 사용자를 판매자로 만들고, 가방은 사용하지 않은 VIP를 저장된 가치로 보관합니다.
의존 대상
지갑(코인이 차감되고 기록됨; 지갑이 없으면 레벨은 표시되고 관리자는 여전히 VIP를 줄 수 있지만 판매는 닫힙니다)과 스토어(레벨 아이템과 애니메이션 형식). Levels 기능은 선택 사항입니다. 각 특권에는 자체 기능이 필요합니다: 채팅, 프로필, 음성 룸, 선물.
앱 화면
옆으로 넘겨 더 보기
설치 및 제거
구매 후에는 “내 구매 내역”에서도 이 명령어를 확인할 수 있습니다.
설치
php artisan feature:install vip --apply제거(데이터는 그대로 남음)
베이스에서 명령어 하나로 기능을 끕니다(이 페이지에 표시됨). VIP 화면, 특권, 구매가 멈추고, 패널 섹션이 사라지며, 다른 기능의 VIP 보상은 건너뜁니다. 레벨, 구독, 사용자 설정은 보존되며 기능이 돌아오면 다시 나타납니다.
php artisan feature:remove vip먼저 부가 기능을 제거하세요. 부가 기능이 설치된 상태에서 기능을 제거하는 것은 거부됩니다.
이 기능에는 아직 부가 기능이 없습니다.
필요한 기능
요구 사항이 없습니다: 단독으로 설치할 수 있습니다.
설치 및 제거
이 명령어가 기능의 테이블, 관리자 패널 페이지, 권한, 설정, 기본 데이터를 준비해 줍니다. 앱에서는 기능이 알아서 제자리에 나타납니다. 기능이 앱과 관리자 패널에서 사라지지만 데이터는 그대로 남습니다. 다시 설치하면 모든 것이 이전 그대로 돌아옵니다.
구매 후에는 “내 구매 내역”에서도 이 명령어를 확인할 수 있습니다.
설치
php artisan feature:install vip --apply제거(데이터는 그대로 남음)
베이스에서 명령어 하나로 기능을 끕니다(이 페이지에 표시됨). VIP 화면, 특권, 구매가 멈추고, 패널 섹션이 사라지며, 다른 기능의 VIP 보상은 건너뜁니다. 레벨, 구독, 사용자 설정은 보존되며 기능이 돌아오면 다시 나타납니다.
php artisan feature:remove vip먼저 부가 기능을 제거하세요. 부가 기능이 설치된 상태에서 기능을 제거하는 것은 거부됩니다.
이 기능을 내 기능 안에서 사용하기
In short: the VIP offers other features 4 server ports (VipCatalog, VipGrant, PrivilegeReader, PrivilegeSwitches: the ones other features bind or ask; VipBag and VipWares are the two the store answers), FeatureCalls for the card, and one app extension point (VipUpsell). Do not call any class inside Modules/Vip directly.
Install and remove
- Install:
php artisan feature:install vip --apply(without--applyit is a dry run). It seeds the menu, the permissions and the switch row closed; open it withphp artisan feature:open vip. The install is empty: no level, no item, no subscription, no demo account; the admin adds levels from the panel. The only thing seeded is the list of privilege kinds (vip_privileges: kind number, name and icon, which the code reads), byVipPrivilegeKindsSeeder. A test stops any seeder or migration from writing a level (Tests/Feature/Install/VipInstallsEmptyTest). - Remove:
php artisan feature:remove vip --apply. The data stays. - Requires:
base:users@1only.
Ports (server)
All of them live in the base; the feature binds the implementation from VipServiceProvider::register(), and without the feature the Null one answers.
| Port | What it asks / does | Without the feature |
|---|---|---|
Modules\Vip\Contracts\VipCatalog | all(), find($id), byIds($ids), idsByLevel(): the levels as data (id, name, level) | empty |
Modules\Vip\Support\VipGrant | addVipToUser(...) / removeVipFromUser(...): gives a level or takes it back (inside a transaction, rolled back on failure) | false |
Modules\Vip\Support\Privileges\PrivilegeReader | the behaviour privileges in effect for a user (has, color) | no privileges |
Modules\Vip\Support\Privileges\PrivilegeSwitches | the user's choice to turn a privilege on or off | everything on |
- Get them from the container:
app(\Modules\Vip\Contracts\VipCatalog::class); they are always bound. - Do not bind another implementation, and do not read
o_vips,users_vipsor theUser::UserViprelation directly. - Granting from your feature (a VIP prize): use
RewardGrantwith kindvip(the feature registersVipRewardGrant), orVipGrant.check()answerstarget_missingwhen the level does not exist andno_durationwhen there is no duration to give (the prize's days or the level's duration). Ask it beforegrant()if you pay inside one transaction and want to tell "nothing to give" apart from a failed write.
FeatureCalls (the VIP card and images)
vip.card: one call, with the kind as the first argument. Kinds:card,cardV2,rank,rankImage,rankImageV2,ware,wareV2andcolorV2. Each feature asks it directly:FeatureCalls::call('vip.card', <default>, <kind>, $userId, <context>); the default is the caller's.vip.announce_grant: the message that tells a user a VIP was granted (defaultnull).vip.valid_ids($userIds):userId => [vipId => true]for the running subscriptions.vip.valid_ids_query(): the same rows as a query with theidcolumn only, for a sub-select (not deleted,is_used = 1, andexpire = 0or not yet passed). The default is the caller's.vip.holds_level:FeatureCalls::call('vip.holds_level', false, $userId, $level). A missing key returns the default (used byMiscHelperService::userVipLevel).vip.ovip_options:id => levelfor every level (a filter list, used by the families' user filter).vip.user_vips($userId)andvip.delete_expired(): the bag lists a user's own VIP rows and clears the ones that ended.
FeatureCalls for the bag (the store asks them without requires)
vip.never_activated (a subscription id: was it never activated? default false), vip.activate_on_first_wear, vip.level_prices (cacheKey, seconds), vip.dedicate_level (the "gift a VIP level" branch of the bag action). vip.privilege_has is in the list below. The model user_vip is registered in FeatureModels.
Events
- The feature does not emit real-time events. It sends a VIP-granted notification (an official message plus Firebase) when a VIP is granted.
- What it listens to: nothing.
Data you can read
Read through the port, not the table. The six tables belong to the feature. App routes: GET api/vips/list, GET api/vips/user/list, POST api/vips/buyVip, POST api/vips/use, POST api/vips/send-to-user, GET api/vips/theme-settings, GET api/vips/gifts, GET api/vips/recipient; all of them are guarded by appFeatureEnable:vip.
Slots (app)
VipUpsell.provide(opener): your feature calls VipUpsell.open(context, level: n) to open the VIP center at a given level; without the feature nothing happens. The vips notification is NotificationRoute(id: 'vips', feature: 'vip').
Server example: a feature asks "does the user hold a VIP of level 3 or more?"
use App\Support\FeatureCalls;
// false when the VIP is not installed
$ok = (bool) FeatureCalls::call('vip.holds_level', false, $user->id, 3);Add an add-on inside the VIP
The VIP has no add-ons today (by design: protection, hiding and the coloured name are privileges inside the feature, not add-ons). If you want to build an add-on on it, the shape is the same as any add-on in the repo (real examples: Modules/LevelsCharge/feature.json on levels, and Modules/ChargeAgency/feature.json on payment_gateways):
{
"contract": "2.1",
"slug": "vip_xxx",
"kind": "addon",
"parent": "vip",
"version": "1.0.0",
"app_switch": "vip_xxx",
"requires": ["base:users@1", "vip@^1"],
"slots": { "routes": { "api": { "file": "Routes/api.php" } } }
}- In the app:
of: vipintools/features.yamlinstead ofparent. - Files:
Modules/<X>/{feature.json,module.json,FEATURE.md,Providers/<X>ServiceProvider.php,Routes/api.php,Database/Migrations}, and your tables are declared inslots.data.tables. - Where it registers itself: in
Providers/<X>ServiceProvider(likeLevelsChargeServiceProvider):register()binds the port withbind(notbindIf), andboot()loads the migrations and routes and registersFeatureCalls::register('<slug>.<name>', '<slug>', fn...). - Do not call
Modules/Vipclasses directly: read throughVipCatalog/PrivilegeReader/FeatureCallsabove, and grant throughVipGrant. A new column onusers_vipsoro_vipsis a migration in your module, not a change in the VIP. - Install and remove:
php artisan feature:install vip_xxx --applyandphp artisan feature:remove vip_xxx --apply; the app:python tools/apply_features.py.
Settings, permissions and menu
- Settings (table
configs, modelApp\Models\Config, from theovip-settingsscreen):enable_vip_auto: turns the automatic system on or off in the settings screen.
- Chat pin limit: the column
o_vips.chat_pin_limit(0 = no increase) is set from the level form. The feature registersPanelSlots::register('chat.pin_limit', 'vip.level', 'vip', ['limit' => fn (User) => int]), and the chat takes the largest value between its own setting and every limit (the largest limit among the user's running VIP levels, 0 for a user without VIP). - Feature switch:
app_features.vip(closed byfeature:remove vip, opened byfeature:open vip). - Feature permissions (23 legacy, category
Vip, defaultadmin):browse/create/edit/delete/show-VIPs(levels)browse/create/edit/delete-vip-giftbrowse/create/edit/delete/show-vip-privilegebrowse-ovip-settingsandedit-ovip-settingsbrowse/create/edit/delete/show-wares-vipsbrowse-gift-VIPandgift-switch-gift-VIP
- Menu rows (section "VIP", after "Banners & Splash"):
| Title | uri | Permission |
|---|---|---|
| VIP Privileges | vip_privilege | browse-vip-privilege |
| VIP Dedicate | vips_dedicate | browse-gift-VIP |
| VIP Levels | ovip | browse-VIPs |
| VIP Wares | wares-vips | browse-wares-vips |
| VIP Settings | ovip-settings | browse-VIPs |
UserPayload keys
The App\Support\UserPayload keys this feature registers or answers (the base does not know feature names; the explanation is here). The default is written by the caller.
- Keys it adds to an answer (
UserPayload::extend):my_data: vip and image.user_v1: vip.user_v1anduser_v2: has_color_name and visit_hidden (each is the matching privilege).user_v2anduser_search_v1: vip.user_search_v1andsearch_user: has_color_name.mini_user: colored_name and has_color_name. hide_country(13),colored_name(18),hide_visits(19),hide_last_active(20),vip_upload_gif(22): does the user hold the privilege? (bool; user cards, themeanswer, search, user data; default false: without a VIP nobody holds a privilege)privileges_preload: the ids a list is about to ask about.
Registered FeatureCalls
Small questions other features ask with FeatureCalls::call (the name, who asks, and what it answers; the default is the caller's when the feature is not installed):
vip.privilege_has(the store (a worn pack of a behaviour type, the pack helpers), the pack screens: does he hold the privilege and has not switched it off (false without VIP))vip.privilege_holds(the store (is_allow: he holds it, switched off or not; false without VIP))vip.privilege_color(the store UserPackHelper (the colour a privilege gives, '' without VIP))vip.privilege_item(the gift banner (userId, kind): the picture {img, type} of the item privilege on the highest running level that has an enabled product of it; null without VIP, switched off, or no product)
변경 내역
1.1.1712026. 12. 1. 출시Arjun Mehta 제작
- 1.1.171: Gifting VIP works for any user: the phone-number rule is gone, so an account without a phone is found and gifted like any other.
1.1.1692026. 11. 29. 출시Arjun Mehta 제작
- Release 1.1.169 (signed build 9921cfa)