[{"data":1,"prerenderedAt":297},["ShallowReactive",2],{"/docs/scripts/coinsystem/tebex":3,"/docs/scripts/coinsystem/tebex-surround":286,"/docs/scripts/coinsystem/tebex-implemented-suggestions":296},{"id":4,"title":5,"body":6,"description":276,"extension":277,"head":278,"implementedSuggestions":278,"meta":279,"navigation":280,"path":281,"schemaOrg":278,"seo":282,"sitemap":283,"stem":284,"__hash__":285},"docs/1.docs/scripts/1.coinsystem/2.tebex.md","Tebex Implementation",{"type":7,"value":8,"toc":268},"minimark",[9,196,201,204,208,214,224,228,236,240,264],[10,11,13,18,57,72,80,84,102,107,156,161,167,171],"steps",{"level":12},"3",[14,15,17],"h3",{"id":16},"add-tebex-secret-key-to-your-servercfg","Add Tebex Secret Key to Your server.cfg",[19,20,21,25,37,49],"ol",{},[22,23,24],"li",{},"Log in to your Tebex control panel.",[22,26,27,28,32,33,36],{},"On the left-hand navigation menu, click ",[29,30,31],"strong",{},"Integrations"," and ",[29,34,35],{},"Game Servers",".",[22,38,39,40,43,44],{},"Click ",[29,41,42],{},"Instructions"," next to the Game Server you want to use.\n",[45,46],"img",{"alt":47,"src":48},"","/docs/coinsystem/secretkey.png",[22,50,51,52,56],{},"Copy the command provided and paste it into your ",[53,54,55],"code",{},"server.cfg",". It should look something like this:",[58,59,63],"pre",{"className":60,"code":61,"filename":55,"language":62,"meta":47,"style":47},"language-cfg shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","sv_tebexSecret \u003CYourSecretKey>\n","cfg",[53,64,65],{"__ignoreMap":47},[66,67,70],"span",{"class":68,"line":69},"line",1,[66,71,61],{},[73,74,75,76,79],"p",{},"Make sure to replace ",[53,77,78],{},"\u003CYourSecretKey>"," with the actual secret key provided by Tebex.",[14,81,83],{"id":82},"create-a-tebex-package","Create a Tebex Package",[19,85,86,92,95],{},[22,87,88,89,36],{},"In your Tebex control panel, navigate to ",[29,90,91],{},"Packages",[22,93,94],{},"Create a new package, for example, \"100 Coins\".",[22,96,97,98,101],{},"At the bottom of the package creation screen, select ",[29,99,100],{},"Game Server Commands"," as the deliverable type.",[73,103,104],{},[45,105],{"alt":47,"src":106},"/docs/coinsystem/deliverable.png",[19,108,110,116,150,153],{"start":109},4,[22,111,112,113,36],{},"Select your game server and click ",[29,114,115],{},"Add Command",[22,117,118,119,140],{},"Use the following command to deliver the coins:",[58,120,124],{"className":121,"code":122,"language":123,"meta":47,"style":47},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","saveredeemcode {transaction} 100\n","bash",[53,125,126],{"__ignoreMap":47},[66,127,128,132,136],{"class":68,"line":69},[66,129,131],{"class":130},"sBMFI","saveredeemcode",[66,133,135],{"class":134},"sfazB"," {transaction}",[66,137,139],{"class":138},"sbssI"," 100\n",[141,142,143],"note",{},[73,144,145,146,149],{},"Replace the ",[29,147,148],{},"100"," with the actual amount of coins the user will receive for this package.",[22,151,152],{},"Click on the settings icon on the right",[22,154,155],{},"Select your game server again here and make sure that the command is executed even if the player is offline (if you require the player to be online and the player is online, it may not work)",[73,157,158],{},[45,159],{"alt":47,"src":160},"/docs/coinsystem/command.png",[19,162,164],{"start":163},6,[22,165,166],{},"Save your package.",[14,168,170],{"id":169},"test-the-integration","Test the Integration",[19,172,173,180,186,193],{},[22,174,175,176,179],{},"In the Tebex control panel, click ",[29,177,178],{},"Payments"," on the left-hand menu.",[22,181,182,183,36],{},"Click on ",[29,184,185],{},"Create Payment",[22,187,188,189,192],{},"Enter your username under ",[29,190,191],{},"Customer"," and select the package you created earlier.",[22,194,195],{},"After creating the payment, you should be able to claim the coins in-game by using your payment ID.",[197,198,200],"h2",{"id":199},"possible-problems","Possible Problems",[73,202,203],{},"If players are unable to claim their coins after a Tebex purchase, try the following solutions:",[14,205,207],{"id":206},"wait-for-processing","Wait for Processing",[73,209,210,213],{},[29,211,212],{},"Problem:"," Sometimes there's a short delay before coins become available after a successful purchase.",[73,215,216,219,220,223],{},[29,217,218],{},"Fix:"," Inform players that it can take ",[29,221,222],{},"up to 5 minutes"," for coins to be claimable in-game after completing the purchase.",[14,225,227],{"id":226},"check-tebex-secret-key-usage","Check Tebex Secret Key Usage",[73,229,230,232,233,36],{},[29,231,212],{}," Payments may not be linked to the correct server if multiple servers are using the same ",[53,234,235],{},"tebexSecretKey",[73,237,238],{},[29,239,218],{},[241,242,243,249,258],"ul",{},[22,244,245,246,248],{},"Open the ",[53,247,55],{}," file on all running servers.",[22,250,251,252,255,256,36],{},"Make sure ",[29,253,254],{},"only your live (production) server"," contains the ",[53,257,235],{},[22,259,260,263],{},[29,261,262],{},"Remove the key"," from all other environments (e.g., development or test servers).",[265,266,267],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":47,"searchDepth":69,"depth":269,"links":270},2,[271],{"id":199,"depth":269,"text":200,"children":272},[273,275],{"id":206,"depth":274,"text":207},3,{"id":226,"depth":274,"text":227},"This guide explains how to connect your Coinsystem V2 with Tebex to handle coin purchases via Tebex.","md",null,{},true,"/docs/scripts/coinsystem/tebex",{"title":5,"description":276},{"loc":281},"1.docs/scripts/1.coinsystem/2.tebex","MlkxxHTvbfSEbuTtgNq9RqugVD8o6n693q4ZVobfB4Y",[287,291],{"title":288,"path":289,"stem":290,"description":47,"children":-1},"Coinsystem V2","/docs/scripts/coinsystem/coinsystem","1.docs/scripts/1.coinsystem/1.coinsystem",{"title":292,"path":293,"stem":294,"description":295,"children":-1},"Add Currency","/docs/scripts/coinsystem/currency","1.docs/scripts/1.coinsystem/3.currency","The Coinsystem allows for multiple payment types beyond just coins, such as cash and custom currencies. In this guide, we’ll walk through how to add a custom currency to the Coinsystem using **black money** as an example.",[],1784834595716]