MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / setServer

Method setServer

The 5zig Mod/src/eu/the5zig/mod/config/JoinText.java:30–41  ·  view source on GitHub ↗
(String server)

Source from the content-addressed store, hash-verified

28 }
29
30 public void setServer(String server) {
31 this.server = server;
32 if (server == null) {
33 serverPattern = null;
34 } else {
35 try {
36 serverPattern = Utils.compileMatchPattern(server);
37 } catch (Exception e) {
38 The5zigMod.logger.error("Could not compile pattern: " + server + "!", e);
39 }
40 }
41 }
42
43 public Pattern getServerPattern() {
44 return serverPattern;

Callers 2

JoinTextMethod · 0.95
JoinTextConfigurationMethod · 0.45

Calls 2

compileMatchPatternMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected