Polish menu cards and route Exchange commands through working native service
This commit is contained in:
parent
780d53263a
commit
628f3af943
1 changed files with 132 additions and 14 deletions
|
|
@ -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");}
|
||||
}
|
||||
Loading…
Reference in a new issue

Staff