Retain native travel and estate services in replacement GUI
This commit is contained in:
parent
c0d56632eb
commit
bb29868eed
1 changed files with 34 additions and 3 deletions
|
|
@ -22,6 +22,7 @@ import java.util.function.Consumer;
|
|||
|
||||
/** Lobby presentation only. Character authority and committed keys remain central. */
|
||||
public final class DuneGUI extends JavaPlugin implements Listener,CommandExecutor {
|
||||
public void openOrganisationServices(Player player,String kind,String id){if(!Bukkit.isPrimaryThread()||!player.isOnline())return;organisations.openHomeNpc(player,kind.equals("clan")?"clans":"companies",id);}
|
||||
public boolean presentSuppliedMenu(Player player,String title,String html,Map<Integer,Runnable> actions,Runnable close){return MCGUIMenus.showDocument(player,title,html,actions,close);}
|
||||
|
||||
public void warObjective(Player player,JsonObject target,Runnable capture){if(!Bukkit.isPrimaryThread()||!isEnabled())throw new IllegalStateException("Open objectives on the server thread");organisations.warObjective(player,target,capture);}
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff