Polish menu cards and route Exchange commands through working native service

This commit is contained in:
unimatrixgit 2026-11-29 11:17:13 +01:00
commit 628f3af943

View file

@ -0,0 +1,6 @@
package com.dunerealms.gui;
/** Route command aliases to the same native Exchange service as the GUI button. */
final class ExchangeEntryPoint {
private ExchangeEntryPoint(){}
static boolean matches(String command,String[] args){String label=command.replaceFirst("^[^:]+:","");return label.equalsIgnoreCase("exchange")||label.equalsIgnoreCase("drgui")&&args.length==1&&args[0].equalsIgnoreCase("exchange");}
}