mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-27 10:59:23 +00:00
Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df8357ac61 | ||
|
|
aa0f06092e | ||
|
|
19083d54b8 | ||
|
|
2a6c2941d8 | ||
|
|
757dffb08d | ||
|
|
277a0bef78 | ||
|
|
c7f8b9f97e | ||
|
|
0f97e2dfc4 | ||
|
|
ae503fd646 | ||
|
|
89df16dabe | ||
|
|
c6dfa1849d | ||
|
|
fb4022dfd9 | ||
|
|
60c785717a | ||
|
|
a3810a9ff8 | ||
|
|
3498b575dc | ||
|
|
8f5668d8c4 | ||
|
|
6cde0ca092 | ||
|
|
d54e4ee8d5 | ||
|
|
65ef2a63d2 | ||
|
|
0d1ea5a7c8 | ||
|
|
7d32350eed | ||
|
|
4361ce0407 | ||
|
|
4267f5bd5d | ||
|
|
a5fc6e7436 | ||
|
|
cc5dfc0b0d | ||
|
|
16082cf3c6 | ||
|
|
0d3485855a | ||
|
|
afaafb5899 | ||
|
|
8fbc672f1f | ||
|
|
19221c8969 | ||
|
|
0f96c5027e | ||
|
|
e58429c9c7 | ||
|
|
f2831f0bcd | ||
|
|
1c84929739 | ||
|
|
67b4e340d8 | ||
|
|
f6b23bf649 |
@@ -44,8 +44,8 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.willfp:eco:6.38.0'
|
compileOnly 'com.willfp:eco:6.43.0'
|
||||||
implementation 'com.willfp:libreforge:3.92.1'
|
implementation 'com.willfp:libreforge:3.112.1'
|
||||||
implementation 'org.joml:joml:1.10.4'
|
implementation 'org.joml:joml:1.10.4'
|
||||||
|
|
||||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||||
|
|||||||
@@ -62,10 +62,6 @@ class ReforgesPlugin : LibReforgePlugin() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getMinimumEcoVersion(): String {
|
|
||||||
return "6.38.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
/**
|
/**
|
||||||
* Instance of Reforges.
|
* Instance of Reforges.
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
package com.willfp.reforges.commands
|
package com.willfp.reforges.commands
|
||||||
|
|
||||||
import com.willfp.eco.core.EcoPlugin
|
|
||||||
import com.willfp.eco.core.command.impl.PluginCommand
|
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
|
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>) {
|
override fun onExecute(sender: CommandSender, args: List<String>) {
|
||||||
sender.sendMessage(
|
sender.sendMessage(
|
||||||
plugin.langYml.getMessage("invalid-command")
|
plugin.langYml.getMessage("invalid-command")
|
||||||
@@ -16,5 +21,14 @@ class CommandReforges(plugin: EcoPlugin) : PluginCommand(plugin, "reforges", "re
|
|||||||
.addSubcommand(CommandGive(plugin))
|
.addSubcommand(CommandGive(plugin))
|
||||||
.addSubcommand(CommandOpen(plugin))
|
.addSubcommand(CommandOpen(plugin))
|
||||||
.addSubcommand(CommandApply(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()
|
.toTypedArray()
|
||||||
|
|
||||||
menu = menu(plugin.configYml.getInt("gui.rows")) {
|
menu = menu(plugin.configYml.getInt("gui.rows")) {
|
||||||
setTitle(plugin.langYml.getFormattedString("menu.title"))
|
title = plugin.langYml.getFormattedString("menu.title")
|
||||||
setMask(FillerMask(MaskItems(*maskItems), *maskPattern))
|
setMask(FillerMask(MaskItems(*maskItems), *maskPattern))
|
||||||
|
allowChangingHeldItem()
|
||||||
|
|
||||||
val slot = slot(
|
val slot = slot(
|
||||||
ItemStackBuilder(Material.BLACK_STAINED_GLASS_PANE)
|
ItemStackBuilder(Material.BLACK_STAINED_GLASS_PANE)
|
||||||
|
|||||||
21
eco-core/core-plugin/src/main/resources/chains.yml
Normal file
21
eco-core/core-plugin/src/main/resources/chains.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Read more about chains: https://plugins.auxilor.io/effects/configuring-an-effect#effect-chains
|
||||||
|
|
||||||
|
chains:
|
||||||
|
- id: example_chain
|
||||||
|
effects:
|
||||||
|
- id: teleport
|
||||||
|
- id: potion_effect
|
||||||
|
args:
|
||||||
|
effect: blindness
|
||||||
|
level: 3
|
||||||
|
duration: 30
|
||||||
|
apply_to_player: true
|
||||||
|
- id: send_message
|
||||||
|
args:
|
||||||
|
message: "&fYou have been teleported!"
|
||||||
|
action_bar: true
|
||||||
|
- id: play_sound
|
||||||
|
args:
|
||||||
|
sound: entity_dragon_fireball_explode
|
||||||
|
pitch: 1.5
|
||||||
|
volume: 4
|
||||||
@@ -184,7 +184,6 @@ point-names: # If you have point names that look ugly (eg g_souls) then you can
|
|||||||
|
|
||||||
use-faster-move-trigger: true # Disable if you want move trigger to detect sub-1-block movements
|
use-faster-move-trigger: true # Disable if you want move trigger to detect sub-1-block movements
|
||||||
raytrace-distance: 80 # The distance that alt_click should check for a location
|
raytrace-distance: 80 # The distance that alt_click should check for a location
|
||||||
block-item-drop-place-check: true # If the block_item_drop trigger should only fire on naturally placed blocks (prevents dupes)
|
|
||||||
|
|
||||||
potions:
|
potions:
|
||||||
icon:
|
icon:
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ messages:
|
|||||||
invalid-reforge: "&cInvalid reforge!"
|
invalid-reforge: "&cInvalid reforge!"
|
||||||
needs-reforge: "&cYou must specify a reforge"
|
needs-reforge: "&cYou must specify a reforge"
|
||||||
cannot-transmit: "&cYou can't transmit here!"
|
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:
|
menu:
|
||||||
title: "Reforge Item"
|
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.give: true
|
||||||
reforges.command.apply: true
|
reforges.command.apply: true
|
||||||
reforges.command.open: true
|
reforges.command.open: true
|
||||||
|
reforges.command.import: true
|
||||||
|
reforges.command.export: true
|
||||||
|
|
||||||
reforges.command.reload:
|
reforges.command.reload:
|
||||||
description: Allows reloading the config
|
description: Allows reloading the config
|
||||||
@@ -65,3 +67,9 @@ permissions:
|
|||||||
reforges.command.apply:
|
reforges.command.apply:
|
||||||
description: Allows the user of /reforges apply.
|
description: Allows the user of /reforges apply.
|
||||||
default: op
|
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
|
#libreforge-updater
|
||||||
#Sat Sep 03 14:21:09 BST 2022
|
#Sun Oct 16 23:26:48 BST 2022
|
||||||
version=5.43.1
|
version=5.63.1
|
||||||
plugin-name=Reforges
|
plugin-name=Reforges
|
||||||
|
|||||||
Reference in New Issue
Block a user