+ Added: Support for latest Lands
- Fixed: Plugin message method
- Fixed: DiscordSRV integration
- Fixed: Support for new DiscordSRV API
- Fixed: [#2398] embed color option
+ Added: [Suggestion] bot.embed-color option to change embed color
+ Updated: To the latest Lands and Discord API
+ Added: [Suggestion] Being able to define which permissions are set in channels
Code (YAML):
# Should a text channel be created?
text:
enabled_2
: true
permissions:
text-owner_list
:
- VIEW_CHANNEL
- MESSAGE_HISTORY
- MESSAGE_SEND
- MESSAGE_ATTACH_FILES
- MESSAGE_EMBED_LINKS
- USE_APPLICATION_COMMANDS
text-member_list
:
- VIEW_CHANNEL
- MESSAGE_HISTORY
- MESSAGE_SEND
- MESSAGE_ATTACH_FILES
- MESSAGE_EMBED_LINKS
- USE_APPLICATION_COMMANDS
# Should a voice channel be created?
voice:
enabled_3
: true
permissions:
voice-owner_list
:
- VIEW_CHANNEL
- MESSAGE_HISTORY
- MESSAGE_SEND
- MESSAGE_ATTACH_FILES
- MESSAGE_EMBED_LINKS
- USE_APPLICATION_COMMANDS
voice-member_list
:
- VIEW_CHANNEL
- MESSAGE_HISTORY
- MESSAGE_SEND
- MESSAGE_ATTACH_FILES
- MESSAGE_EMBED_LINKS
- USE_APPLICATION_COMMANDS
- Fixed: Some minor API issues
+ Updated: To latest Lands API
[#2222]
+ Improved: API setlinkmanager usage when not fully enabled
+ Improved: API: linkmanager registration
- Fixed: Chat forwarding from ingame to discord failing since recent Lands versions
- Fixed: incompatibilities with other plugin(s) using Kotlin
- Fixed: Unsupported server version mistake
+ Added: /nations top command
+ Added: /nations inbox command
+ Changed: /top -> /lands top
+ Changed: /inbox -> /lands inbox
+ Changed: /channel -> /lands channel
Requires Lands 6.5.1+
+ Added: Two new sorting modes
- Fixed: Minor issues with pagination
- Fixed: Pagination for menus
- Fixed: Privileges synchronization error (removed it, since it's no longer supported by Discord)
+ Added: Category emoji to inbox messages
+ Updated: Dependencies
+ Added: [Suggestion] Automatically synchronize channel access for player on Discord server join
- Fixed: Navigation buttons
- Fixed: No entries element not having any buttons
- Fixed: Executor shutdown error on plugin disabling
- Fixed: Help message for /landsdiscordbot listperms
- Fixed: Permission changes to groups of Luckperms wouldn't immediately be applied to the players limits
+ Improved: Permission calculation only triggered when explicitly needed
- Fixed: 1.18 Support
- Fixed: Back button not appearing if no next page
Requires latest version of Lands (5.19.6)
+ Added: Level sorting: levels
- Updated: Libraries
- Fixed: Issue with DiscordSRV integration
+ Added: DiscordSRV: At account linkage, then discord users will now (almost) instantly have access to the land channels
- Fixed: Permission lookup error
+ Added: Support for Spigot and Paper 1.17
Java 16 is supported too. You can still use lower Java versions without any issues (however Spigot, Paper 1.17 requires Java 16).
+ Added: Support for disabled back and next page buttons
+ Added: Buttons to /top and /inbox embeds
+ Added: /top and /inbox no longer sends a messages to all users, instead the message is only visible to the sender
- Fixed: Some command replies
- Fixed: Colour code in land or nation name
- Improved: Instead of sending a new embed on page change, edit the existing one and prevent spam.
- Fixed: Method not found error at /inbox and /top
- Minor fixes for ephemeral commands
This version is only compatible with Lands 5.7.4+
+ Added: Remove reactions from embed when it's not longer active
+ Added: You can now create chat channels for your favourite nation
+ Added: Remove reactions from embed when it's not longer active
+ Improved: Ingame chat -> Discord format
+ Optimized: Imports
- Fixed: "Bot is thinking..." status for embeds
This version only supports Lands 5.7.2+
+ Added: Send new inbox messages to the land chat
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FAN7s40F.png)
- Fixed: Bot not granting use slash commands permission for trusted users
- Fixed: Startup error -> mixed groups
- Removed: Cache flag warning
- Changed: /Lands top -> /Top
- Changed: /Lands channel -> /Channel
- In order to create the commands it needs the applications.commands scope authorized for your guild. So instead of scope=bot in your authorization URL, you must have scope=bot+applications.commands etc.
NOTE: This feature is still in public beta according to Discord.
https://discord.com/developers/docs/interactions/slash-commands
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FX5ujGwE.png)
- Added !Lands inbox command
This command will display your lands inbox. You can even filter it by clicking in the reactions
- Added pages to !Lands top
Click on the arrows to navigate
If you enjoy this resource, please consider leaving a review!
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FhtPn64K.png)
- Fixed: DiscordSRV warnings on startup
1.0.15
NOTE: This version is only compatible with the latest version of Lands.
ADDED
- Chat format message
chat-format: '{role} {player} » {message}'
FIXED
- Members not getting trusted to chat channel
This version uses the updated Discord API. They made a lot of changes. However, this update should run flawless, let me know if you encounter any issues.
It is highly recommended to install this update, previous API versions (previous versions of this plugin) might stop working, if Discord stops supporting these older versions.
1.0.13
THIS VERSION WILL ONLY WORK WITH THE LATEST LANDS VERSION = 4.10.17 (/LANDS ABOUT)
FIXED
- Frequent /lands rename would cause the Discord API rate limit to kick and set the channel
in a locked state, causing the channel name to not update
ADDED
- Channels will now be saved to channels.json as a fallback if any queued action with the Discord API
fails. This makes sure channels wont get deleted because their name is outdated. Now LandsDiscordBot does not need
the land name for identification anymore
FIXED
- Keep channel option ignoring channel ids in some cases if '' aren't used in the config
ADDED
- Remove user from land chat channel if he is not any longer linked
- Trust / untrust immediately to channel, without waiting for synchronisation
- !lands help (Discord)
ADDED
- Use embed messages for land broadcast
ADDED
- /LandsDiscordBot reload command
FIXED
- Resolved dependency conflicts
IMPROVED
- Smaller file size by removing redundant dependencies
FIXED
- Dependency conflicts
ADDED
- Version check
ADDED
- Set topic for new land channels
land-channel:
description: 'Welcome to your land chat channel! Use **/Lands chat [land] <message>** ingame to chat with your land members on Discord.'
- Usage placeholder to message
not-linked: 'You haven''t linked your Discord account with your Minecraft account yet. Use **{usage}** ingame to link your account.'
FIXED
- Error on name resolving (for players)
# FIXED
- Startup error with database
Do not use with Lands version older than 4.6.8
UPDATED
- New version of LandsAPI
REMOVED
- Green check mark in lands chat
+ ADDED Some checkers for configurations or empty configurations
# FIXED Issue where commands like !lan would trigger the command executor
Please consider leaving a review, if you enjoy this plugin!
With the LandsDiscordBotAPI you can set your own linkmanager to integration your own Discord link system. This can be done by accessing the LandsDiscordBotAPI class and using the setLinkManager method. You can create your own linkmanager by implementing the LinkManager interface.
+ ADDED !Lands help command
+ ADDED Translation for !Lands top and !Lands channel
+ ADDED Translations for help messages
+ ADDED Colors to embed messages
+ ADDED API
Other developers can now add their own link manager:
DiscordBotAPI.setLinkManager(LinkManager);
Any suggestions or issues -> Discord or pm.
Please leave a review, if you enjoy this plugin. Thank you!
# IMPROVED Synchronization frequenzy
# FIXED Bot not regocnizing upper-case commands
# FIXED Missing placeholder {land}
# FIXED Player names disapling as Steve
# FIXED Bot listens in the whole category for lands chat
Now it repsects the recently added channel whitelist
# FIXED Sentry error on startup
+ Bot login is now asynch
# FIXED Channel delete log message
# FIXED DNS Error
+ ADDED Option to keep channels in land chat category
# A list of channels, which are NOT a land chat and shouldn't be deleted.
keep_list:
- 'channel-id'
+ ADDED Option to set the last announcement as the bots status:
Each status will stay for at least 4 minutes.
status:
# Static status message:
message: 'Text'
# Should the bot set the latest announcement message from Lands as the status?
last-announcement: true
# CHANGED Message from Discord won't be sent twice to channel
# FIXED Unknown language issue
+ ADDED !lands channel create <land>
With this command land owners can create a channel for their land.
All land chat messages will be sent to this channel.
Linked Discord accounts can use this channel to chat with their land members.
Make sure to edit this:
Create a new category for this!! Otherwise it will delete all channels in the category.
Code (YAML):
# Categories configuration
categories:
land-chat
:
# Id of the category for !Lands channel create <land>
id
: '664583334734856203'
# Set the maximum total amount of land chat channels.
# Please note that Discord has a channel limit of 500 channels per server.
max
: 450
+ ADDED Translateable messages for !lands channel
Other translations will come later (for the other commands)
# FIXED Message received error
+ ADDED !lands command
+ ADDED !lands top command
This will show the top 10 lands
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FfLhZqXK.png)
+ ADDED !lands command
+ ADDED !lands top command
This will show the top 10 lands
Note: DiscordSRV is not required anymore. But still, you'll need it to make features like land chat work.
+ ADDED !chat <land> <message> command to private channel
Code (Text):
bot:
# Enter your bot token here.
# How to setup a Discord bot: https://discordpy.readthedocs.io/en/latest/discord.html
token: 'token'
# Name of your Lands Discord Bot
name: 'Lands Bot'
# Set the status of your Discord Bot
status: 'https://www.spigotmc.org/resources/53313/'