MCPcopy Create free account
hub / github.com/demoth/jake2 / JoinServerFunc

Method JoinServerFunc

client/src/main/java/jake2/client/Menu.java:2322–2338  ·  view source on GitHub ↗
(Object self)

Source from the content-addressed store, hash-verified

2320 }
2321
2322 private static void JoinServerFunc(Object self) {
2323 String buffer;
2324 int index;
2325
2326 index = ((menucommon_s) self).n;
2327
2328 if (Lib.Q_stricmp(local_server_names[index], NO_SERVER_STRING) == 0)
2329 return;
2330
2331 if (index >= m_num_servers)
2332 return;
2333
2334 buffer = "connect " + local_server_netadr[index].toString()
2335 + "\n";
2336 Cbuf.AddText(buffer);
2337 ForceMenuOff();
2338 }
2339
2340 private static void AddressBookFunc(Object self) {
2341 Menu_AddressBook_f();

Callers 1

executeMethod · 0.95

Calls 4

Q_stricmpMethod · 0.95
AddTextMethod · 0.95
ForceMenuOffMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected