Tags
Creators
Details
Licensed MIT
Published last year
Updated last year
All versions
2.0.1
Release
AfroPets2 2.0.1last year 45
Compatibility
Minecraft: Java Edition
1.21–1.21.8
1.20.x
Platforms
Paper
Spigot
Changes
⭐New
- Player data is now saved in MySQL or SQLite (depends on configuration)
- Active pets are saved in activepets_data.yml file
- You can turn on/off notification when plugin get update
- Pets are now hidden when you enter spectator gamemode (shows again when you change gamemode)
- New commands:
/afropets help <-- show available commands ; permission: afropets.use
/afropets admin about <-- more informations about plugin and configuration ; permission: afropets.admin.about
⚠️Important: You need to add these lines to files! Otherwise, the plugin may not load and errors may appear!
config.yml
# Data storage
# Available data storage types:
# - sqlite
# - mysql
storage-type: "sqlite"
sqlite:
name: "playerdata.db"
mysql:
host: 'localhost'
username: 'root'
password: ''
database: 'database'
table: 'afropets_playerdata'
port: '3306'
useSSL: false
messages.yml
update: "<white>A new plugin version has appeared! Your version: <red>%current% <gray>| <white>New version: <green>%latest%<white>! <#ae00f2><bold><click:open_url:https://www.spigotmc.org/resources/afropets.122242>[Download]</click>"
help:
- "<gradient:#ae00f2:#be5cff:#ae00f2><bold>AfroPets<reset><red><bold>2<reset> <dark_gray>| <yellow>Command list"
- "<dark_gray>» <click:suggest_command:/afropets><#ae00f2>/afropets <gray>- <white>Open pets menu</click>"
- "<dark_gray>» <click:suggest_command:/afropets menu><#ae00f2>/afropets menu <gray>- <white>Open pets menu</click>"
- "<dark_gray>» <click:suggest_command:/afropets about><#ae00f2>/afropets about<gray>- <white>Informations about plugin</click>"
- "<dark_gray>» <click:suggest_command:/afropets hide><#ae00f2>/afropets hide <gray>- <white>Hide current pet</click>"
- "<dark_gray>» <click:suggest_command:/afropets admin reload><#ae00f2>/afropets admin reload <gray>- <white>Reload plugin</click>"
- "<dark_gray>» <click:suggest_command:/afropets admin set><#ae00f2>/afropets admin set {player} {pet} <gray>- <white>Set target pet</click>"
- "<dark_gray>» <click:suggest_command:/afropets admin remove><#ae00f2>/afropets admin remove {player} <gray>- <white>Remove target pet</click>"
# If you want add some option value from configuration files use this syntax in admin-about-values:
# name: "file@path"
# then in message use %name%
# Important: You cannot get value from active_pets.yml and playerdata.db
admin-about:
- "<gradient:#ae00f2:#be5cff:#ae00f2><bold>AfroPets<reset><red><bold>2<reset> <dark_gray>| <yellow>Admin informations"
- " <dark_gray>» <white>Author: <#ae00f2>Afrodyzjak"
- " <dark_gray>» <white>Docs: <#ae00f2><click:open_url:https://afroplugins.gitbook.io/afroplugins-docs/afropets2/afropets2-home>[Click]</click>"
- " <dark_gray>» <white>Plugin link: <#ae00f2><click:open_url:https://www.spigotmc.org/resources/afropets.122242>[Click]</click>"
- " <dark_gray>» <white>Database type: <#ae00f2>%storage%"
- " <dark_gray>» <white>Plugin version: <#ae00f2>%current_version%"
- " <dark_gray>» <white>Plugin latest version: <#ae00f2>%latest_version%"
- " <dark_gray>» <white>Server version: <#ae00f2>%server_version%"
- " <dark_gray>» <white>Server type: <#ae00f2>%server_type%"
admin-about-values:
storage: "config@storage-type"
update-not: "config@update-notification"
filler-name: "menu@slots.filler.name"
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:hMAMgikC:61laJsjG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:hMAMgikC:61laJsjG"
}

