Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-25 15:50:12 +01:00
Updated Via API usage (#601)
Dieser Commit ist enthalten in:
Ursprung
54330702b1
Commit
75680296e8
@ -38,8 +38,8 @@ public class ViaBackwardsConfig extends Config implements com.viaversion.viaback
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void reloadConfig() {
|
public void reload() {
|
||||||
super.reloadConfig();
|
super.reload();
|
||||||
loadFields();
|
loadFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
package com.viaversion.viabackwards.api;
|
package com.viaversion.viabackwards.api;
|
||||||
|
|
||||||
public interface ViaBackwardsConfig {
|
import com.viaversion.viaversion.api.configuration.Config;
|
||||||
|
|
||||||
|
public interface ViaBackwardsConfig extends Config {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mimics name and level of a custom enchant through the item's lore.
|
* Mimics name and level of a custom enchant through the item's lore.
|
||||||
|
@ -74,7 +74,8 @@ public interface ViaBackwardsPlatform {
|
|||||||
*/
|
*/
|
||||||
default void init(File dataFolder) {
|
default void init(File dataFolder) {
|
||||||
ViaBackwardsConfig config = new ViaBackwardsConfig(new File(dataFolder, "config.yml"));
|
ViaBackwardsConfig config = new ViaBackwardsConfig(new File(dataFolder, "config.yml"));
|
||||||
config.reloadConfig();
|
config.reload();
|
||||||
|
Via.getManager().getConfigurationProvider().register(config);
|
||||||
|
|
||||||
ViaBackwards.init(this, config);
|
ViaBackwards.init(this, config);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren