Skip to content

Commit 1eea453

Browse files
committed
Remove all links from Minecraft lang files
1 parent 02b744a commit 1eea453

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

src/main/java/net/clementraynaud/skoice/Updater.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ public void checkVersion() {
6969
this.update(version, expectedHash);
7070
} else {
7171
this.plugin.getLogger().warning(this.plugin.getLang().getMessage("logger.warning.outdated-version",
72-
this.plugin.getDescription().getVersion(), version));
72+
this.plugin.getDescription().getVersion(),
73+
version,
74+
"https://www.spigotmc.org/resources/skoice-proximity-voice-chat.82861")
75+
);
7376
}
7477
}
7578
});
@@ -143,7 +146,10 @@ private synchronized void update(String version, String expectedHash) {
143146
}
144147
} catch (IOException | NoSuchAlgorithmException exception) {
145148
this.plugin.getLogger().warning(this.plugin.getLang().getMessage("logger.warning.outdated-version",
146-
this.plugin.getDescription().getVersion(), version));
149+
this.plugin.getDescription().getVersion(),
150+
version,
151+
"https://www.spigotmc.org/resources/skoice-proximity-voice-chat.82861")
152+
);
147153
try {
148154
Files.delete(tempUpdateFile.toPath());
149155
} catch (IOException ignored) {

src/main/java/net/clementraynaud/skoice/commands/skoice/arguments/ConfigureArgument.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public void run() {
4646
)
4747
);
4848
} else {
49-
player.sendMessage(super.plugin.getLang().getMessage("chat.configuration.bot-creation"));
49+
player.sendMessage(super.plugin.getLang().getMessage("chat.configuration.bot-creation",
50+
"https://github.com/Skoice/skoice/wiki/Creating-a-Discord-Bot-for-Skoice")
51+
);
5052
}
5153
} else {
5254
if (super.plugin.getBot().getStatus() == BotStatus.READY) {

src/main/java/net/clementraynaud/skoice/storage/config/OutdatedConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void update() {
6969
} catch (IOException ignored) {
7070
}
7171

72-
this.plugin.getLogger().info(this.plugin.getLang().getMessage("logger.info.skoice-3"));
72+
this.plugin.getLogger().info(this.plugin.getLang().getMessage("logger.info.skoice-3", "https://github.com/Skoice/skoice/wiki/Migrating-to-Skoice-3"));
7373
}
7474
}
7575

src/main/resources/minecraft/lang/EN.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ logger:
1515
plugin-enabled: "Plugin enabled."
1616
plugin-disabled: "Plugin disabled."
1717
plugin-updated: "Skoice has been updated to the latest version. Please restart your Minecraft server to apply changes."
18-
skoice-3: "You are now using Skoice 3. To get your bot working properly, follow our migration guide here: https://github.com/Skoice/skoice/wiki/Migrating-to-Skoice-3."
18+
skoice-3: "You are now using Skoice 3. To get your bot working properly, follow our migration guide here: %s."
1919
configuration-complete: "Skoice is now configured. Type \"/link\" on your Discord server to link your Discord account to Minecraft. Players must link their accounts to use the proximity voice chat."
2020
bot-connecting: "Your bot is attempting to connect."
2121
bot-connected: "Your bot is connected."
2222
warning:
23-
outdated-version: "You are using an outdated version (%s). Download the latest version (%s) here: https://www.spigotmc.org/resources/skoice-proximity-voice-chat.82861."
23+
outdated-version: "You are using an outdated version (%s). Download the latest version (%s) here: %s."
2424
no-token: "Token not set. Join your Minecraft server to set up Skoice."
2525
no-guild: "Your bot is not on a Discord server. Open this link to invite it: %s."
2626
multiple-guilds: "Your bot is on multiple Discord servers. Type \"/configure\" on your Discord server to choose one."
@@ -30,7 +30,7 @@ logger:
3030
error:
3131
missing-permission: "You did not grant your bot the \"Administrator\" permission on your Discord server. Open this link to add it: %s."
3232
bot-could-not-connect: "Your bot could not connect. To update the token, type \"/skoice token\" followed by the new token."
33-
bot-timed-out: "A problem prevented your bot from connecting. Check your network connection status and look for recent Discord outages here: https://discordstatus.com."
33+
bot-timed-out: "A problem prevented your bot from connecting. Check your network connection status and look for recent Discord outages here: %s."
3434
public-bot: "Your bot is not configured correctly. Run the command again once you have unselected \"Public Bot\" and clicked \"Save Changes\" on this page: %s."
3535
exception:
3636
unexpected-value: "Unexpected value: %s"
@@ -40,7 +40,7 @@ chat:
4040
- " \n%s Configuration: &fBot Creation\n \n&8• &7Skoice needs a Discord bot to work. To create one, follow the instructions on "
4141
- "&7.\n&8• &7Once you have retrieved its token, insert it "
4242
- "&7.\n \nIf you cannot interact with this message, type \"&e/skoice tooltips&7\".\n "
43-
bot-creation: " \n%s Configuration: &fBot Creation\n \n&8• &7Skoice needs a Discord bot to work. To create one, follow the instructions on this page: &bhttps://github.com/Skoice/skoice/wiki/Creating-a-Discord-Bot-for-Skoice&7.\n&8• &7Once you have retrieved its token, type \"&e/skoice token&7\" followed by the token.\n "
43+
bot-creation: " \n%s Configuration: &fBot Creation\n \n&8• &7Skoice needs a Discord bot to work. To create one, follow the instructions on this page: &b%s&7.\n&8• &7Once you have retrieved its token, type \"&e/skoice token&7\" followed by the token.\n "
4444
no-token: "%s You have &cnot provided a token&7. To use this command, type \"&e/skoice token&7\" followed by the token."
4545
no-guild-interactive:
4646
- "%s Your bot is &cnot on a Discord server&7. Open "
@@ -88,7 +88,7 @@ chat:
8888
bot-timed-out-interactive:
8989
- "%s A problem &cprevented your bot &7from connecting. Check your network connection status and look for recent Discord outages on "
9090
- "&7. If you cannot interact with this message, type \"&e/skoice tooltips&7\"."
91-
bot-timed-out: "%s A problem &cprevented your bot &7from connecting. Check your network connection status and look for recent Discord outages on this page: &bhttps://discordstatus.com&7."
91+
bot-timed-out: "%s A problem &cprevented your bot &7from connecting. Check your network connection status and look for recent Discord outages on this page: &b%s&7."
9292
action-bar:
9393
connecting-alert: "&a⚠ &7You are &anear other players&7. Say hi!"
9494
disconnecting-alert: "&c⚠ &7You are &cmoving away &7from near players."

0 commit comments

Comments
 (0)