mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-24 09:29:23 +00:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df8357ac61 | ||
|
|
aa0f06092e | ||
|
|
19083d54b8 | ||
|
|
2a6c2941d8 | ||
|
|
757dffb08d | ||
|
|
277a0bef78 | ||
|
|
c7f8b9f97e | ||
|
|
0f97e2dfc4 | ||
|
|
ae503fd646 | ||
|
|
89df16dabe | ||
|
|
c6dfa1849d | ||
|
|
fb4022dfd9 | ||
|
|
60c785717a | ||
|
|
a3810a9ff8 | ||
|
|
3498b575dc | ||
|
|
8f5668d8c4 | ||
|
|
6cde0ca092 | ||
|
|
d54e4ee8d5 | ||
|
|
65ef2a63d2 |
@@ -44,8 +44,8 @@ allprojects {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.38.0'
|
||||
implementation 'com.willfp:libreforge:3.101.0'
|
||||
compileOnly 'com.willfp:eco:6.43.0'
|
||||
implementation 'com.willfp:libreforge:3.112.1'
|
||||
implementation 'org.joml:joml:1.10.4'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
|
||||
@@ -62,10 +62,6 @@ class ReforgesPlugin : LibReforgePlugin() {
|
||||
)
|
||||
}
|
||||
|
||||
override fun getMinimumEcoVersion(): String {
|
||||
return "6.38.0"
|
||||
}
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Instance of Reforges.
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
package com.willfp.reforges.commands
|
||||
|
||||
import com.willfp.eco.core.EcoPlugin
|
||||
import com.willfp.eco.core.command.impl.PluginCommand
|
||||
import com.willfp.libreforge.LibReforgePlugin
|
||||
import com.willfp.libreforge.lrcdb.CommandExport
|
||||
import com.willfp.libreforge.lrcdb.CommandImport
|
||||
import com.willfp.libreforge.lrcdb.ExportableConfig
|
||||
import com.willfp.reforges.reforges.Reforges
|
||||
import org.bukkit.command.CommandSender
|
||||
|
||||
class CommandReforges(plugin: EcoPlugin) : PluginCommand(plugin, "reforges", "reforges.command.reforges", false) {
|
||||
class CommandReforges(plugin: LibReforgePlugin) :
|
||||
PluginCommand(plugin, "reforges", "reforges.command.reforges", false) {
|
||||
override fun onExecute(sender: CommandSender, args: List<String>) {
|
||||
sender.sendMessage(
|
||||
plugin.langYml.getMessage("invalid-command")
|
||||
@@ -16,5 +21,14 @@ class CommandReforges(plugin: EcoPlugin) : PluginCommand(plugin, "reforges", "re
|
||||
.addSubcommand(CommandGive(plugin))
|
||||
.addSubcommand(CommandOpen(plugin))
|
||||
.addSubcommand(CommandApply(plugin))
|
||||
.addSubcommand(CommandImport("reforges", plugin))
|
||||
.addSubcommand(CommandExport(plugin) {
|
||||
Reforges.values().map {
|
||||
ExportableConfig(
|
||||
it.id,
|
||||
it.config
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -229,8 +229,9 @@ object ReforgeGUI {
|
||||
.toTypedArray()
|
||||
|
||||
menu = menu(plugin.configYml.getInt("gui.rows")) {
|
||||
setTitle(plugin.langYml.getFormattedString("menu.title"))
|
||||
title = plugin.langYml.getFormattedString("menu.title")
|
||||
setMask(FillerMask(MaskItems(*maskItems), *maskPattern))
|
||||
allowChangingHeldItem()
|
||||
|
||||
val slot = slot(
|
||||
ItemStackBuilder(Material.BLACK_STAINED_GLASS_PANE)
|
||||
|
||||
@@ -194,6 +194,4 @@ potions:
|
||||
triggered: true
|
||||
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.
|
||||
triggered: true
|
||||
@@ -18,6 +18,13 @@ messages:
|
||||
invalid-reforge: "&cInvalid reforge!"
|
||||
needs-reforge: "&cYou must specify a reforge"
|
||||
cannot-transmit: "&cYou can't transmit here!"
|
||||
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%"
|
||||
|
||||
menu:
|
||||
title: "Reforge Item"
|
||||
|
||||
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>.
|
||||
@@ -46,6 +46,8 @@ permissions:
|
||||
reforges.command.give: true
|
||||
reforges.command.apply: true
|
||||
reforges.command.open: true
|
||||
reforges.command.import: true
|
||||
reforges.command.export: true
|
||||
|
||||
reforges.command.reload:
|
||||
description: Allows reloading the config
|
||||
@@ -65,3 +67,9 @@ permissions:
|
||||
reforges.command.apply:
|
||||
description: Allows the user of /reforges apply.
|
||||
default: op
|
||||
reforges.command.import:
|
||||
description: Allows the user of /reforges import.
|
||||
default: op
|
||||
reforges.command.export:
|
||||
description: Allows the user of /reforges export.
|
||||
default: op
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#libreforge-updater
|
||||
#Thu Sep 15 12:10:27 BST 2022
|
||||
version=5.52.0
|
||||
#Sun Oct 16 23:26:48 BST 2022
|
||||
version=5.63.1
|
||||
plugin-name=Reforges
|
||||
|
||||
Reference in New Issue
Block a user