mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
libreforge-updater
This commit is contained in:
parent
264dffb6a2
commit
40b6d92a03
@ -46,7 +46,7 @@ allprojects {
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.43.0'
|
||||
implementation 'com.willfp:libreforge:3.111.1'
|
||||
implementation 'com.willfp:libreforge:3.112.0'
|
||||
implementation 'org.joml:joml:1.10.4'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
|
@ -2,9 +2,14 @@ package com.willfp.ecoenchants.commands
|
||||
|
||||
import com.willfp.eco.core.command.impl.PluginCommand
|
||||
import com.willfp.ecoenchants.EcoEnchantsPlugin
|
||||
import com.willfp.ecoenchants.enchants.EcoEnchants
|
||||
import com.willfp.libreforge.lrcdb.CommandExport
|
||||
import com.willfp.libreforge.lrcdb.CommandImport
|
||||
import com.willfp.libreforge.lrcdb.ExportableConfig
|
||||
import org.bukkit.command.CommandSender
|
||||
|
||||
class CommandEcoEnchants(plugin: EcoEnchantsPlugin) : PluginCommand(plugin, "ecoenchants", "ecoenchants.command.ecoenchants", false) {
|
||||
class CommandEcoEnchants(plugin: EcoEnchantsPlugin) :
|
||||
PluginCommand(plugin, "ecoenchants", "ecoenchants.command.ecoenchants", false) {
|
||||
override fun onExecute(sender: CommandSender, args: List<String>) {
|
||||
sender.sendMessage(
|
||||
plugin.langYml.getMessage("invalid-command")
|
||||
@ -16,5 +21,14 @@ class CommandEcoEnchants(plugin: EcoEnchantsPlugin) : PluginCommand(plugin, "eco
|
||||
.addSubcommand(CommandToggleDescriptions(plugin))
|
||||
.addSubcommand(CommandGiveRandomBook(plugin))
|
||||
.addSubcommand(CommandGUI(plugin))
|
||||
.addSubcommand(CommandImport("enchants", plugin))
|
||||
.addSubcommand(CommandExport(plugin) {
|
||||
EcoEnchants.values().map {
|
||||
ExportableConfig(
|
||||
it.id,
|
||||
it.config
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
@ -200,5 +200,3 @@ potions:
|
||||
particles:
|
||||
permanent: false
|
||||
triggered: true
|
||||
|
||||
share-configs: true # If your configs are allowed to be used to gather data and improve the plugin. Nothing identifying (IP, Name, etc) is shared.
|
@ -17,6 +17,13 @@ messages:
|
||||
gave-random-book: "&fGave &a%player%&f a random book (&r%enchantment%&f)!"
|
||||
no-enchantments-found: "&cNo enchantments found!"
|
||||
invalid-levels: "&cMinimum level can't be higher than maximum level!"
|
||||
must-specify-lrcdb-id: "&cYou must specify the ID of the config to download! Not sure what this means? Go to &alrcdb.auxilor.io"
|
||||
lrcdb-import-error: "&cError importing config: &f%message%"
|
||||
lrcdb-import-success: "&fImported &a%name%&f! Reload the plugin to install it"
|
||||
must-specify-config-name: "&cYou must specify the config name!"
|
||||
invalid-config-name: "&cInvalid config name!"
|
||||
lrcdb-export-error: "&cError exporting config: &f%message%"
|
||||
lrcdb-export-success: "&fExported &a%name%&f! View it on &alrcdb.auxilor.io&f, or share your config ID: &f%id%"
|
||||
|
||||
all: "All"
|
||||
no-conflicts: "No Conflicts"
|
||||
|
19
eco-core/core-plugin/src/main/resources/lrcdb.yml
Normal file
19
eco-core/core-plugin/src/main/resources/lrcdb.yml
Normal file
@ -0,0 +1,19 @@
|
||||
# Options for lrcdb (https://lrcdb.auxilor.io), a website to share configs
|
||||
# with other server owners, so you can get more configs without making them
|
||||
# yourself!
|
||||
|
||||
author: "Unknown Author" # The name attached to configs you export
|
||||
|
||||
# Options about automatically sharing configs you create
|
||||
share-configs:
|
||||
# If you want all your configs to automatically be publicly available,
|
||||
# set this to true. This really helps out other users!
|
||||
publicly: false
|
||||
|
||||
# If you don't want your configs to be usable to gather information about
|
||||
# plugin usage or to improve the plugins in the future, disable this.
|
||||
# Nothing identifying is shared.
|
||||
enabled: true
|
||||
|
||||
# If you disable share-configs, you can still share select configs publicly
|
||||
# with /ecoenchants export <config>.
|
@ -48,6 +48,8 @@ permissions:
|
||||
ecoenchants.command.giverandombook: true
|
||||
ecoenchants.command.enchantinfo: true
|
||||
ecoenchants.command.gui: true
|
||||
ecoenchants.command.import: true
|
||||
ecoenchants.command.export: true
|
||||
ecoenchants.anvil.*:
|
||||
description: All anvil perks
|
||||
default: op
|
||||
@ -75,3 +77,9 @@ permissions:
|
||||
ecoenchants.command.gui:
|
||||
description: Allows the use of /ecoenchants gui.
|
||||
default: true
|
||||
ecoenchants.command.import:
|
||||
description: Allows the use of /ecoenchants import.
|
||||
default: op
|
||||
ecoenchants.command.export:
|
||||
description: Allows the use of /ecoenchants export.
|
||||
default: op
|
@ -1,4 +1,4 @@
|
||||
#libreforge-updater
|
||||
#Mon Oct 10 21:05:14 BST 2022
|
||||
version=9.0.0-b48
|
||||
#Thu Oct 13 20:13:39 BST 2022
|
||||
version=9.0.0-b49
|
||||
plugin-name=EcoEnchants
|
||||
|
Loading…
Reference in New Issue
Block a user