'+esc(text).replaceAll('\n','
')+'
'+esc(p.category)+'
diff --git a/website/ALPHA-1.0.0.3.md b/website/ALPHA-1.0.0.3.md new file mode 100644 index 00000000..6a911372 --- /dev/null +++ b/website/ALPHA-1.0.0.3.md @@ -0,0 +1,32 @@ +# Alpha 1.0.0.3 — Shop and community update + +Released 2 November 2026. This is an Alpha patch; the full roadmap is not complete. + +## Included + +- Native website shop with central DuneRealms sign-in, Member/VIP website role selection, protected/staff-rank exclusion and scoped support/coupon permissions. +- Six selectable game servers connected using official AzLink 1.3.13. Verified Java/Bedrock recipient snapshots, UUID-aware online delivery and network-operator-only command configuration. The proxy is excluded. +- Owner-configured PayPal enabled. VIP product artwork/lore and storefront styling updated. The redundant introduction and full-window button removed. +- Separate Account/Staff Center portals with contextual menus and artwork. Website team ban-list access retained. +- Searchable public ban register: 50 records per page, latest 12 on the portal and a full-list link. Private evidence and unresolved identities stay private. +- Canonical shared navigation scripts/styles across website, Boards and Support; desktop/mobile menu fixes and matching Support controls. +- Readable news titles/dates, category artwork and safe article formatting with HTTPS signup links. +- Private Alpha Tester Signup intake in Support, seven custom application fields and a Support-home invitation. Existing recruitment article rewritten with plans, test priorities and signup links. + +## Verification + +- Seven focused Node checks passed: public data/pagination, CP grouping, SSO, safe news rendering and search visibility. +- Thirteen isolated PHP command-bridge checks passed, including Java/Bedrock identity, command safety, operator gating and online UUID matching. +- Read-only `version` commands executed through the native queue on all six live game servers; test queue drained. +- Native machine API: unsigned request 401, valid status 200, registration blocked 403. +- Browser verified server choices, VIP artwork, canonical community headers, article layout, seven signup fields and signup links. + +## Limits and open work + +No successful real-money PayPal capture was tested; the existing pending payment was preserved. No synthetic Alpha application was submitted. Upcoming VIP generator benefits remain explicitly planned. Outstanding game GUI work, native kit/quest progression and the separately staged ban-fleet import are not claimed complete in this patch. + +Two earlier broad permission-suite assertions remain stale (retired game-node documentation and an overly strict web-node regex); focused checks for this patch pass. The legacy patch-note generator cannot validate the pre-existing 2026-10-28 metadata format, so this Alpha is published as a Git prerelease with these notes rather than rewriting historical records. + +## Operation + +Backups were taken before application/configuration changes. No world regeneration, inventory-engine upgrade or real financial transaction was performed. Work and scheduled production remain paused at the user's request after publication. diff --git a/website/content/alpha-testers-needed.md b/website/content/alpha-testers-needed.md new file mode 100644 index 00000000..7e2b058b --- /dev/null +++ b/website/content/alpha-testers-needed.md @@ -0,0 +1,45 @@ +DuneRealms is looking for Alpha testers. If you enjoy exploring new systems, trying unusual combinations and helping a community take shape, we would love to have you aboard. + +This is an early Alpha, not a finished release. Some features are playable, others are still being developed, and rough edges are part of the journey. You do not need to buy anything to volunteer. + +## What we are building + +The Quest for Tavren II Aedrecht brings together a desert science-fiction Minecraft network and a connected community website. Our direction includes: + +- A lobby and connected worlds, with travel between them through the network. +- Java and Bedrock access, linked website accounts and a shared player identity. +- Custom menus, jobs, spice trading, inventory systems and a Dunemark economy. +- Clans, clan banking, kit design and player trading. +- Quests, discoveries and longer-term progression, with more world and political systems planned. +- A connected website, forums and Support Center that make it easier to follow your journey and get help. + +This describes the direction of the project; it is not a claim that every system is complete. The next stages focus on more polished menus, stronger Java/Bedrock compatibility, clearer kit and clan tools, and balanced quest progression. + +## What we need help testing + +- First-time setup: registration, linking a Minecraft account, joining and reaching the lobby. +- Java and Bedrock differences: controls, menus, text, images and actions that behave differently between clients. +- Travel: choosing destinations, arriving safely and returning to the lobby. +- Inventory and economy: items, balances, trading and what happens when you reconnect or change worlds. +- Menus and everyday tasks: unclear labels, dead buttons, missing options and too many steps. +- Clan and kit features as they become available: permissions, previews, ownership and ordinary player workflows. +- Website and Support: mobile layouts, account navigation and reporting a problem. + +New players are especially useful: the things an experienced administrator overlooks are often the first things a newcomer notices. You do not need previous testing experience, and occasional testers are welcome. + +## How to sign up + +[Sign up for Alpha testing](https://support.dunerealms.com/alpha-signup.php) + +The signup opens a private Support ticket. Tell us your Minecraft username, whether you play Java or Bedrock, your platform, a rough idea of your available time and what you would like to test. In the ticket details, add a few words about why you are interested. Our Support team will review your application and reply with the next steps. + +Use your DuneRealms account to sign in. You can create or manage it in the [Account Center](https://cp.dunerealms.com/). + +## What makes a useful bug report? + +Tell us which edition and world you were using, the steps that led to the problem, what you expected and what actually happened. A screenshot or short video helps when the problem is visual. Mention whether you can reproduce it after reconnecting. Please leave passwords, payment details and unrelated personal information out of reports. + +Ready to help shape the realms? [Join the Alpha tester crew](https://support.dunerealms.com/alpha-signup.php). + +With regards, +The DuneRealms team diff --git a/website/integrations/azuriom/DuneShopAzLink.php b/website/integrations/azuriom/DuneShopAzLink.php new file mode 100644 index 00000000..1fce10f2 --- /dev/null +++ b/website/integrations/azuriom/DuneShopAzLink.php @@ -0,0 +1,13 @@ +$user->getAttribute('dune_delivery_uuid'),'name'=>$user->getAttribute('dune_delivery_name')]; + $rows=[];foreach($commands as $command)$rows[]=['command'=>DuneShopGameIdentity::expand($command,$recipient),'user_id'=>$user->id,'need_online'=>$needConnected,'dune_minecraft_uuid'=>$recipient['uuid'],'dune_minecraft_name'=>$recipient['name'],'created_at'=>now(),'updated_at'=>now()]; + // Native AzLink queue; polling only, no new inbound game-server listener. + if($rows)\Illuminate\Support\Facades\DB::table('server_commands')->insert(array_map(fn($r)=>['server_id'=>$this->server->id]+$r,$rows)); + } +} diff --git a/website/integrations/azuriom/DuneShopGameIdentity.php b/website/integrations/azuriom/DuneShopGameIdentity.php new file mode 100644 index 00000000..377a99a2 --- /dev/null +++ b/website/integrations/azuriom/DuneShopGameIdentity.php @@ -0,0 +1,20 @@ +PDO::ERRMODE_EXCEPTION,PDO::ATTR_EMULATE_PREPARES=>false]); + $q=$db->prepare('SELECT minecraft_uuid,minecraft_name FROM site_game_links WHERE user_id=?');$q->execute([$account]);$r=$q->fetch(PDO::FETCH_ASSOC); + return $r&&self::valid($r['minecraft_uuid'],$r['minecraft_name'])?['uuid'=>strtolower($r['minecraft_uuid']),'name'=>$r['minecraft_name']]:null; + } + public static function valid($uuid,$name): bool {return is_string($uuid)&&preg_match('/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i',$uuid)&&is_string($name)&&preg_match('/^[.a-z0-9_]{1,32}$/i',$name);} + public static function expand(string $command,array $recipient): string { + if(!self::valid($recipient['uuid']??null,$recipient['name']??null))throw new \RuntimeException('A verified Minecraft identity is required.'); + $command=strtr($command,['{uuid}'=>$recipient['uuid'],'{game_id}'=>$recipient['uuid'],'{player}'=>$recipient['name'],'{name}'=>$recipient['name']]); + if(!preg_match('/^[A-Za-z][ -~]{0,239}$/D',$command))throw new \RuntimeException('Enter one console command without a leading slash.'); + return $command; + } + public static function mayConfigure(array $identity): bool { $p=$identity['permissions']??[];return in_array('web.menu.servers',$p,true)&&in_array('web.servers.console',$p,true); } +} diff --git a/website/integrations/azuriom/DuneShopGameServers.php b/website/integrations/azuriom/DuneShopGameServers.php new file mode 100644 index 00000000..6edcacc4 --- /dev/null +++ b/website/integrations/azuriom/DuneShopGameServers.php @@ -0,0 +1,10 @@ +attributes->get('dune_identity',[])),403); + $rows='';foreach(\Azuriom\Models\Server::executable()->get() as $server){$data=$server->getData();$rows.='
Select these servers in a product’s command settings. Commands for online players wait for the matching Minecraft UUID. The proxy is excluded.
| Server | Status | Connection |
|---|
Open CP network controls · Back to products
Use {uuid} for UUID-based permission commands and {player} for the verified Minecraft name. Server keys remain private.
')->header('Cache-Control','private, no-store'); + } +} diff --git a/website/integrations/azuriom/DuneShopMinecraftGame.php b/website/integrations/azuriom/DuneShopMinecraftGame.php new file mode 100644 index 00000000..76b5b01c --- /dev/null +++ b/website/integrations/azuriom/DuneShopMinecraftGame.php @@ -0,0 +1,6 @@ +\Azuriom\Games\Minecraft\Servers\DuneShopAzLink::class];} +} diff --git a/website/integrations/azuriom/DuneShopRankHooks.php b/website/integrations/azuriom/DuneShopRankHooks.php index 2c9fe935..11b6d7d9 100644 --- a/website/integrations/azuriom/DuneShopRankHooks.php +++ b/website/integrations/azuriom/DuneShopRankHooks.php @@ -16,6 +16,8 @@ class DuneShopRankHooks public static function register(): void { Package::saving(function (Package $package) { + if(request()->routeIs('shop.admin.packages.store','shop.admin.packages.update') && ($package->commands||$package->getOriginal('commands')) && $package->isDirty('commands') && !DuneShopGameIdentity::mayConfigure(request()->attributes->get('dune_identity',[])))throw ValidationException::withMessages(['commands'=>'Only authorised network console operators can configure server commands.']); + if (request()->routeIs('shop.admin.packages.store','shop.admin.packages.update')) { $package->dune_website_rank = request()->input('dune_website_rank','user'); $required=request()->input('dune_required_ranks',[]); @@ -32,7 +34,10 @@ class DuneShopRankHooks if ($item->buyable instanceof Package) { $rank=$item->buyable->dune_website_rank??'user'; if (!DuneShopRanks::allowedRank($rank)) throw new \RuntimeException('Protected package rank'); - $variables=$item->variables??[];$variables['_dune_website_rank']=$rank;$item->variables=$variables; + $variables=$item->variables??[];$variables['_dune_website_rank']=$rank; + $gameCommands=array_merge($item->buyable->commands??[],json_decode(setting('shop.commands')?:'[]',true,16,JSON_THROW_ON_ERROR)); + if($gameCommands){$recipient=DuneShopGameIdentity::linked($item->payment->user->dune_account_id??'');if(!$recipient)throw ValidationException::withMessages(['minecraft'=>'Link your Minecraft account before buying a package with in-game rewards.']);$variables['_dune_minecraft_uuid']=$recipient['uuid'];$variables['_dune_minecraft_name']=$recipient['name'];} + $item->variables=$variables; } }); Event::listen(PaymentPaid::class,function (PaymentPaid $event) { @@ -44,6 +49,7 @@ class DuneShopRankHooks } public static function hasRequiredWebsiteRole(Package $package): bool { + if(($package->commands||setting('shop.commands'))&&!DuneShopGameIdentity::linked(request()->attributes->get('dune_identity')['id']??''))return false; $required=json_decode($package->dune_required_ranks??'[]',true,8,JSON_THROW_ON_ERROR); if(!$required)return true; if(!is_array($required)||array_filter($required,fn($r)=>!is_string($r)||!DuneShopRanks::allowedRank($r)))return false; diff --git a/website/integrations/azuriom/DuneShopServiceProvider.php b/website/integrations/azuriom/DuneShopServiceProvider.php index 31fc3d78..1f3f57d5 100644 --- a/website/integrations/azuriom/DuneShopServiceProvider.php +++ b/website/integrations/azuriom/DuneShopServiceProvider.php @@ -9,9 +9,10 @@ class DuneShopServiceProvider extends ServiceProvider { public function boot(): void { - $this->app->booted(fn () => \Azuriom\Support\DuneShopRankHooks::register()); + $this->app->booted(function(){ $this->app->instance('game',new \Azuriom\Games\Minecraft\DuneShopMinecraftGame()); \Azuriom\Support\DuneShopRankHooks::register(); }); $this->app->make(\Illuminate\Contracts\Http\Kernel::class) ->appendMiddlewareToGroup('web', DuneShopAccount::class); + Route::middleware('web')->get('/dune-servers', fn () => \Azuriom\Support\DuneShopGameServers::render()); Route::middleware('web')->get('/dune-login', fn (\Illuminate\Http\Request $request) => DuneShopAccount::login($request)); } } diff --git a/website/integrations/azuriom/README.md b/website/integrations/azuriom/README.md index 42e6d86b..75f01a67 100644 --- a/website/integrations/azuriom/README.md +++ b/website/integrations/azuriom/README.md @@ -6,6 +6,11 @@ DuneShopAccount is installed as web middleware; DuneShopServiceProvider register Deployment also patches native Package saving/eligibility, PaymentItem snapshot/revoke, package form and native admin layout. These upstream-specific changes must be preserved when updating Azuriom/Shop; these helper files alone are not an installer. Private backups are on the web host. Re-check integration after upstream upgrades. -Current verified limitations: no live PayPal payment tested; owner configures PayPal and products. Native server command delivery is NOT connected to the CP agent or game servers. The Servers link opens CP operations but does not itself connect automatic fulfillment. Do not advertise Minecraft rank delivery. VIP future generator/three codes remain next-Alpha backlog. +Current verified limitations: no live PayPal payment tested; owner configures PayPal and products. Native server command delivery now uses the official AzLink 1.3.13 queue on six game servers (proxy excluded). DuneShopMinecraftGame selects the guarded bridge. Payment items snapshot a verified central Minecraft UUID/name; queued commands retain that recipient, including Bedrock identities. Online-only commands require the matching UUID. Native API access is limited to authenticated status and polling; registration/account/balance endpoints are blocked. Command configuration requires central server-console permissions. Native upstream edits are captured in native-azlink.patch against the prior Dune-patched installation. VIP future generator/three codes remain next-Alpha backlog. PHP policy and transaction tests use fictional identities and connection-local temporary tables. Never create real payments to test this bridge. + + +2026-11-02 rollout: six native executable server records and matching private AzLink config files installed, instantCommands=false (outbound HTTPS polling only), no RCON or new game-host listener. Official jar SHA256: 4d51f7fbcfaa0b9e61c2caf8ee2be193cb93c80fb1f4b4a01052b4841f3381de. Private keys are NOT included here. All six services restarted sequentially and confirmed connected. Read-only version commands drained and were observed in all six logs. Native AzLink queue semantics remain upstream; HTTP polling confirmation is not a financial end-to-end test or a guarantee of exactly-once execution during network failure. No existing pending payment was changed. + +13 game-bridge checks run with fictional identities and a connection-local temporary queue. Run the QA script as the application owner, not root: Laravel runtime cache/log ownership must remain dunerealms. Shared header JS/CSS are proxied from the canonical website asset on native hosts with no-store; native application styling remains separate. The owner explicitly enabled the configured PayPal Standard gateway; no successful live PayPal capture was tested. diff --git a/website/integrations/azuriom/dunerealms.css b/website/integrations/azuriom/dunerealms.css index fb1a57fa..1904d885 100644 --- a/website/integrations/azuriom/dunerealms.css +++ b/website/integrations/azuriom/dunerealms.css @@ -6,3 +6,22 @@ body .main,body .content,body .wrapper{background:#10271f;color:#eee4cb}body .si body h1,body h2,body h3,body .h1,body .h2,body .h3,body label,body .form-label{color:#e7ce91!important}body .form-text{color:#b5c6b9!important} .dune-vip-package{padding:20px;border:1px solid #b99a4c;border-radius:14px;background:linear-gradient(145deg,#153a30,#0b201b);color:#eee6ce}.dune-vip-package>p:first-child{text-align:center}.dune-vip-package img{display:block;margin:0 auto;object-fit:contain;filter:drop-shadow(0 4px 12px #b99a4c44)}.dune-vip-package h2{color:#e8cb7c;text-align:center}.dune-vip-package h3{margin-top:22px;padding-top:16px;border-top:1px solid #587356;color:#e8cb7c}.dune-vip-package li{margin:9px 0;line-height:1.6}.dune-vip-package>p:last-child{font-style:italic;text-align:center;color:#d5bc75} + +/* Shared DuneRealms storefront language: emerald, antique gold, clear type. */ +body.dune-shop-front{font:15px/1.65 Manrope,Arial,sans-serif!important;background:radial-gradient(ellipse at top,#1b3e30,#10251e 65%)!important} +.dune-shop-front :is(h1,h2,h3,h4,h5,.h1,.h2,.h3,.h4,.h5){font-family:Manrope,Arial,sans-serif!important;letter-spacing:-.025em;line-height:1.25;color:#e7ce91!important;font-weight:700} +.dune-shop-front h1{font-size:clamp(27px,4vw,38px);margin-bottom:28px} +.dune-shop-front .navbar{border-bottom:1px solid #9b804b66;background:#112b22!important;padding:12px 20px} +.dune-shop-front .navbar-brand{font-size:18px;font-weight:700;letter-spacing:.02em} +.dune-shop-front :is(.card,.list-group,.modal-content){border:1px solid #7b7449!important;border-radius:14px!important;box-shadow:0 9px 24px #0002;background:#17372a!important} +.dune-shop-front .card{height:100%;transition:border-color .15s,box-shadow .15s} +.dune-shop-front .card:hover{border-color:#c6a55e!important;box-shadow:0 12px 28px #0004} +.dune-shop-front .card-img-top{width:100%;height:280px;object-fit:contain;padding:25px;background:radial-gradient(ellipse,#35503a55,#112b2366);border-bottom:1px solid #8a764444} +.dune-shop-front .card-body{padding:24px}.dune-shop-front .card h4{font-size:24px}.dune-shop-front .card h5{font-size:23px;color:#f1d58a!important;margin:12px 0 22px} +.dune-shop-front :is(.btn-primary,.btn-success){background:linear-gradient(135deg,#d3b56c,#b29448)!important;border:1px solid #e1c98b!important;color:#10261f!important;font:700 14px/1.4 Manrope,Arial,sans-serif;border-radius:8px;padding:11px 20px;box-shadow:inset 0 1px #fff3,0 3px 8px #0002} +.dune-shop-front :is(.btn-primary,.btn-success):hover{background:#e1c98b!important;filter:brightness(1.06)} +.dune-shop-front :is(.form-control,.form-select){border-radius:8px;border-color:#72815d!important;min-height:42px}.dune-shop-front :is(.form-control,.form-select):focus{box-shadow:0 0 0 3px #d1ad6030;border-color:#d1ad60!important} +.dune-shop-front .list-group-item{padding:14px 18px;border-color:#496046!important}.dune-shop-front .list-group-item.active{background:linear-gradient(100deg,#3c5035,#263e2b)!important;border-left:3px solid #d4b46a!important} +.dune-shop-front .modal-dialog{max-width:900px}.dune-shop-front .modal-header,.dune-shop-front .modal-footer{background:#142f25;border-color:#7b744966}.dune-shop-front .modal-body{padding:20px}.dune-shop-front .modal-header .btn-close{filter:invert(1);opacity:.75} +.dune-shop-front footer{border-top:1px solid #7b744944;font-size:12px;color:#abbeb0;padding:20px!important}.dune-shop-front .alert{border-radius:10px;line-height:1.6} +@media(max-width:650px){.dune-shop-front .card-img-top{height:225px}.dune-shop-front .card-body{padding:20px}.dune-shop-front .modal-body{padding:12px}.dune-shop-front .navbar{padding:10px}.dune-shop-front main{padding-top:20px!important}} diff --git a/website/integrations/azuriom/game-bridge-test.php b/website/integrations/azuriom/game-bridge-test.php new file mode 100644 index 00000000..d83941d6 --- /dev/null +++ b/website/integrations/azuriom/game-bridge-test.php @@ -0,0 +1,11 @@ +make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); +use Azuriom\Support\DuneShopGameIdentity as Identity;use Illuminate\Support\Facades\DB;use Azuriom\Models\Server;use Azuriom\Models\User;use Illuminate\Http\Request; +function check($ok,$message){if(!$ok)throw new RuntimeException($message);echo "PASS $message\n";} +$java=['uuid'=>'11111111-1111-4111-8111-111111111111','name'=>'ExamplePlayer'];$bedrock=['uuid'=>'00000000-0000-0000-0009-01f5413c46e7','name'=>'.ExampleBedrock']; +check(Identity::valid(...array_values($java)),'Java identity valid');check(Identity::valid(...array_values($bedrock)),'Bedrock identity valid');check(!Identity::valid($java['uuid'],'bad;name'),'Unsafe name rejected');check(Identity::expand('lp user {uuid} parent add vip',$java)==='lp user '.$java['uuid'].' parent add vip','Verified UUID placeholder');check(Identity::expand('give {player} stone',$bedrock)==='give .ExampleBedrock stone','Bedrock name placeholder'); +try{Identity::expand("list\nstop",$java);throw new LogicException('Expected rejection');}catch(RuntimeException $e){check(!($e instanceof LogicException),'Multiline rejected');} +check(!Identity::mayConfigure(['permissions'=>['web.shop.support']]),'Shop support cannot configure console rewards');check(Identity::mayConfigure(['permissions'=>['web.menu.servers','web.servers.console']]),'Console operator can configure rewards'); +config(['cache.default'=>'array']);DB::statement('CREATE TEMPORARY TABLE server_commands (id BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,server_id BIGINT UNSIGNED,user_id BIGINT UNSIGNED,need_online BOOLEAN,command TEXT,dune_minecraft_uuid VARCHAR(36),dune_minecraft_name VARCHAR(32),created_at DATETIME,updated_at DATETIME)');$server=Server::where('data->dune-server','lobby')->firstOrFail();$u=new User();$u->id=999999;$u->setAttribute('dune_delivery_uuid',$java['uuid']);$u->setAttribute('dune_delivery_name',$java['name']);$server->bridge()->sendCommands(['give {player} stone'], $u,true);$server->bridge()->sendCommands(['list'],$u,false); +check(DB::table('server_commands')->count()===2,'Native queue receives commands without executing');$fetch=function($players)use($server){$r=Request::create('/api/azlink','POST',[],[],[],['CONTENT_TYPE'=>'application/json'],json_encode(['server-id'=>$server->id,'players'=>$players,'maxPlayers'=>20,'full'=>false]));return (new Azuriom\Http\Controllers\Api\ServerController())->fetch($r)->getData(true);}; +$r=$fetch([]);check(count($r['commands'])===1&&DB::table('server_commands')->count()===1,'Offline action drained; online action retained');$r=$fetch([['uuid'=>'22222222-2222-4222-8222-222222222222','name'=>'ExamplePlayer']]);check(DB::table('server_commands')->count()===1,'Same name with wrong UUID cannot receive online reward');$r=$fetch([['uuid'=>$java['uuid'],'name'=>'ExamplePlayer']]);check(DB::table('server_commands')->count()===0&&$r['commands']['ExamplePlayer'][0]==='give ExamplePlayer stone','Matching UUID drains recipient snapshot');$r=$fetch([]);check(!$r['commands'],'Drained action is not returned again');echo "No real payment or console action executed.\n"; diff --git a/website/integrations/azuriom/native-azlink.patch b/website/integrations/azuriom/native-azlink.patch new file mode 100644 index 00000000..372a4b1b --- /dev/null +++ b/website/integrations/azuriom/native-azlink.patch @@ -0,0 +1,58 @@ +--- a/plugins/shop/src/Models/Package.php ++++ b/plugins/shop/src/Models/Package.php +@@ -567,13 +567,16 @@ + ], [ + $item->quantity, $this->id, $this->name, $item->price, $item->payment->transaction_id, + ], $command)) +- ->map(fn (string $command) => $item->replaceVariables($command)) ++ ->map(fn (string $command) => $item->replaceVariables(\Azuriom\Support\DuneShopGameIdentity::expand($command,['uuid'=>$item->variables['_dune_minecraft_uuid']??null,'name'=>$item->variables['_dune_minecraft_name']??null]))) + ->all(); + + return $command; + }) + ->filter(fn (array $command) => $command['server'] !== null); + +- $this->sendServerCommands($commands, $item->payment->user); ++ $recipient=clone $item->payment->user; ++ $recipient->setAttribute('dune_delivery_uuid',$item->variables['_dune_minecraft_uuid']??null); ++ $recipient->setAttribute('dune_delivery_name',$item->variables['_dune_minecraft_name']??null); ++ $this->sendServerCommands($commands, $recipient); + } + } +--- a/app/Http/Controllers/Api/ServerController.php ++++ b/app/Http/Controllers/Api/ServerController.php +@@ -73,10 +73,11 @@ + ], $request->json('full', false)); + + $users = User::whereIn($uidKey ? 'game_id' : 'name', $players)->get(); ++ $onlineUuids=array_map(function($uuid){$v=strtolower(str_replace('-','',$uuid));return strlen($v)===32?substr($v,0,8).'-'.substr($v,8,4).'-'.substr($v,12,4).'-'.substr($v,16,4).'-'.substr($v,20):'';},array_keys($players)); + $commands = $server->commands() +- ->with('user') +- ->where(function (Builder $query) use ($users) { +- $query->whereIn('user_id', $users->modelKeys()) ++ ->with('user')->whereNotNull('dune_minecraft_uuid')->whereNotNull('dune_minecraft_name') ++ ->where(function (Builder $query) use ($onlineUuids) { ++ $query->whereIn('dune_minecraft_uuid', $onlineUuids) + ->orWhere('need_online', false); + }) + ->limit(100) +@@ -251,7 +252,7 @@ + + protected function mapLegacyCommands(Collection $commands): Collection + { +- return $commands->groupBy('user.name') ++ return $commands->groupBy('dune_minecraft_name') + ->map(fn (Collection $group) => $group->pluck('command')); + } + +--- a/app/Http/Middleware/VerifyServerToken.php ++++ b/app/Http/Middleware/VerifyServerToken.php +@@ -16,6 +16,8 @@ + */ + public function handle(Request $request, Closure $next): Response + { ++ abort_unless($request->is('api/azlink') && in_array($request->method(),['GET','POST'],true),403,'Only game status and command polling are enabled.'); ++ + $token = $request->header('Azuriom-Link-Token'); + + abort_if($token === null, 401, 'No server key provided.'); diff --git a/website/integrations/common/canonical-header-assets.conf b/website/integrations/common/canonical-header-assets.conf new file mode 100644 index 00000000..89152342 --- /dev/null +++ b/website/integrations/common/canonical-header-assets.conf @@ -0,0 +1,16 @@ +# Include inside each native community HTTPS server block. +# Native pages keep same-origin CSP while fetching the canonical website header assets. +location = /dune-navigation.js { + proxy_pass http://127.0.0.1:3000/portal-navigation.js; + proxy_set_header Host www.dunerealms.com; + proxy_hide_header Cache-Control; + add_header Cache-Control "no-store" always; + add_header X-Content-Type-Options nosniff always; +} +location = /dune-navigation.css { + proxy_pass http://127.0.0.1:3000/portal-navigation.css; + proxy_set_header Host www.dunerealms.com; + proxy_hide_header Cache-Control; + add_header Cache-Control "no-store" always; + add_header X-Content-Type-Options nosniff always; +} diff --git a/website/integrations/common/shared-header.php b/website/integrations/common/shared-header.php index 4e33c379..76e4330f 100644 --- a/website/integrations/common/shared-header.php +++ b/website/integrations/common/shared-header.php @@ -13,18 +13,23 @@ function dune_shared_header($html) { $html=str_ireplace('',$head.'',$html); } if(!str_contains($html,'class="dune-memorial"')&&is_file($base.'shared-memorial.html'))$html=preg_replace_callback('/
HELP SHAPE THE REALMS
Java or Bedrock, new or experienced: tell us what you would like to test. Applications are reviewed privately by Support.
Sign up for Alpha testing'+inline(paragraph.join(' '))+'
';paragraph=[];}if(list){html+='';list=false;}};for(const raw of String(value).replace(/\r/g,'').split('\n')){const line=raw.trim();if(!line){flush();continue;}const heading=line.match(/^#{1,3}\s+(.+)$/),bullet=line.match(/^[-*]\s+(.+)$/);if(heading){flush();html+=''+esc(p.category)+'
'+esc(text).replaceAll('\n','
')+'


THE IMPERIAL MARKET
Browse the official DuneRealms storefront. Prices are in euro.
Open shop in a full window
The storefront is installed. Products and PayPal checkout are being configured; purchases are not open yet. Looking for player-designed kits? Visit the Kit Exchange.

Prices are in euro. Available payment methods are shown at checkout. Looking for player-designed kits? Visit the Kit Exchange.