Skip to content

Commit

Permalink
[mcwhitelister] Update Minecraft Wiki links to new domain after fork (#…
Browse files Browse the repository at this point in the history
…114)

* Update Minecraft Wiki links to new domain after fork

* Fix formatting

---------

Co-authored-by: Dav <[email protected]>
  • Loading branch information
misode and Dav-Git authored Jul 14, 2024
1 parent 2979bee commit e2b8206
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mcwhitelister/locales/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ msgid ""
" `port`: Your server's RCON port. (The default is 25575)\n"
" `password`: The RCON password.\n"
" RCON needs to be enabled and set up in your `server.properties` file.\n"
" More information is available [here](https://minecraft.fandom.com/wiki/Server.properties)\n"
" More information is available [here](https://minecraft.wiki/w/Server.properties)\n"
" "
msgstr ""

Expand Down
8 changes: 6 additions & 2 deletions mcwhitelister/mcwhitelister.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def setup(self, ctx, host: str, port: int, *, password: str):
`port`: Your server's RCON port. (The default is 25575)
`password`: The RCON password.
RCON needs to be enabled and set up in your `server.properties` file.
More information is available [here](https://minecraft.fandom.com/wiki/Server.properties)
More information is available [here](https://minecraft.wiki/w/Server.properties)
"""
await ctx.message.delete()
await self.config.guild(ctx.guild).rcon.set((host, port, password))
Expand All @@ -92,7 +92,11 @@ async def hinzufuegen(self, ctx, name: str):
"""Add yourself to the whitelist."""
p_in_conf = await self.config.guild(ctx.guild).players()
if str(ctx.author.id) in p_in_conf:
await ctx.send(_("You are already whitelisted.\n Remove yourself first with {command}.").format(command=f"{ctx.clean_prefix}whitelister remove"))
await ctx.send(
_("You are already whitelisted.\n Remove yourself first with {command}.").format(
command=f"{ctx.clean_prefix}whitelister remove"
)
)
return
host, port, passw = await self.config.guild(ctx.guild).rcon()
p_in_conf[ctx.author.id] = {
Expand Down

0 comments on commit e2b8206

Please sign in to comment.