Skip to content

Commit 7ed1163

Browse files
committed
Remove unnecessary slack portion of welcome message
1 parent 3ab1fcb commit 7ed1163

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/hackclub/hccore/playerMessages/WelcomeMessage.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,17 @@
22

33
import static net.kyori.adventure.text.minimessage.MiniMessage.miniMessage;
44

5-
import com.hackclub.hccore.HCCorePlugin;
6-
import com.hackclub.hccore.playerMessages.tags.ConditionalResolver;
75
import net.kyori.adventure.text.Component;
86

97
public class WelcomeMessage {
108

119
final static String minimsgSource = """
1210
<gold><i>Welcome to <b>HackCraft Vanilla</b></i></gold>
1311
To keep everything <b>fair</b> and <b>fun</b>,
14-
please read the <b><red><click:run_command:'/rules'><hover:show_text:'Click to Run <red>/rules</red>'>/rules</hover></click></red></b>,
15-
<ifslack> and join the <b><aqua><click:run_command:'/slack'><hover:show_text:'Click to Run <aqua>/slack</aqua>'>/slack</hover></click></aqua></b>
16-
</ifslack><gray>To view this again at any time, use <click:run_command:'/welcome'><hover:show_text:'Click to Run <gray>/welcome</gray>'>/welcome</hover></click></gray>""";
12+
please read the <b><red><click:run_command:'/rules'><hover:show_text:'Click to Run <red>/rules</red>'>/rules</hover></click></red></b>.
13+
<gray>To view this again at any time, use <click:run_command:'/welcome'><hover:show_text:'Click to Run <gray>/welcome</gray>'>/welcome</hover></click></gray>""";
1714

1815
public static Component get() {
19-
return get(HCCorePlugin.getPlugin(HCCorePlugin.class).getSlackBot() != null);
20-
}
21-
22-
public static Component get(Boolean withSlack) {
23-
return miniMessage().deserialize(minimsgSource,
24-
ConditionalResolver.conditionalTag("ifslack", withSlack));
16+
return miniMessage().deserialize(minimsgSource);
2517
}
2618
}

0 commit comments

Comments
 (0)