Updated README

This commit is contained in:
Jonas_Jones 2022-07-25 00:15:12 +02:00
parent ec3c622896
commit 4a08f71b13
19 changed files with 221 additions and 8 deletions

View file

@ -1,3 +1,16 @@
# McWebserver # McWebserver
//TODO: complete README ## About the mod
This mod runs a simple HTTP server alongside the minecraft server in seperate threads.
### Warning
If used wrongly this mod can be a security risk for your server and all devices connected to the network that your server is in.
Do **only** put files into your webservers root directory that you want to be accessible to the internet. Those files are **public** to the entire world.
### Setup
1. Head over to modrinth and curseforge (once approved) for now available in this repository's [releases](https://github.com/J-onasJones/McWebserver/releases/latest) and download it into your mods folder.
2. Restart Your Minecraft Server and let the mod create the config file. The webserver will be offline by default.
3. In the config file, enable the webserver and adjust all settings if needed.
4. Restart your Minecraft server and You're good to go!

View file

@ -1170,3 +1170,198 @@ java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent
[23:58:26] [Server thread/DEBUG] (FabricLoader/Mixin) fabric-networking-api-v1.mixins.json:EntityTrackerEntryMixin from mod fabric-networking-api-v1->@Inject::onStopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V doesn't use it's CallbackInfo [23:58:26] [Server thread/DEBUG] (FabricLoader/Mixin) fabric-networking-api-v1.mixins.json:EntityTrackerEntryMixin from mod fabric-networking-api-v1->@Inject::onStopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V doesn't use it's CallbackInfo
[23:58:26] [Server thread/DEBUG] (FabricLoader/Mixin) fabric-networking-api-v1.mixins.json:EntityTrackerEntryMixin from mod fabric-networking-api-v1->@Inject::onStopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V has 0 override(s) in child classes [23:58:26] [Server thread/DEBUG] (FabricLoader/Mixin) fabric-networking-api-v1.mixins.json:EntityTrackerEntryMixin from mod fabric-networking-api-v1->@Inject::onStopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V has 0 override(s) in child classes
[23:58:26] [Server thread/DEBUG] (FabricLoader/Mixin) fabric-networking-api-v1.mixins.json:EntityTrackerEntryMixin from mod fabric-networking-api-v1->@Inject::onStopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V won't be passed a CallbackInfo as a result [23:58:26] [Server thread/DEBUG] (FabricLoader/Mixin) fabric-networking-api-v1.mixins.json:EntityTrackerEntryMixin from mod fabric-networking-api-v1->@Inject::onStopTracking(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V won't be passed a CallbackInfo as a result
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Starting registry save
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:command_argument_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:item
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block_entity_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:custom_stat
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/foliage_placer_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:stat_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/material_rule
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:attribute
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:position_source_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:height_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/density_function_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:fluid
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_condition_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_pool_element
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:activity
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:recipe_serializer
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:frog_variant
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:banner_pattern
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:instrument
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/feature_size_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:point_of_interest_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Skipping un-modded registry: minecraft:mob_effect
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_pool_entry_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/block_state_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/chunk_generator
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:float_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:chunk_status
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:enchantment
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_function_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_processor
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_score_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/tree_decorator_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:schedule
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/material_condition
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:entity_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:villager_profession
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:potion
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:recipe_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:int_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/feature
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:cat_variant
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:pos_rule_test
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_placement
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_nbt_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:menu
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/trunk_placer_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/placement_modifier_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/carver
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_number_provider_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_piece
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:sound_event
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:particle_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:game_event
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/biome_source
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/root_placer_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:villager_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:painting_variant
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block_predicate_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:sensor_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:rule_test
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:memory_module_type
[00:03:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving empty registry data
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Starting registry save
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:command_argument_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:item
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block_entity_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:custom_stat
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/foliage_placer_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:stat_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/material_rule
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:attribute
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:position_source_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:height_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/density_function_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:fluid
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_condition_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_pool_element
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:activity
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:recipe_serializer
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:frog_variant
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:banner_pattern
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:instrument
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/feature_size_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:point_of_interest_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Skipping un-modded registry: minecraft:mob_effect
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_pool_entry_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/block_state_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/chunk_generator
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:float_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:chunk_status
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:enchantment
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_function_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_processor
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_score_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/tree_decorator_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:schedule
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/material_condition
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:entity_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:villager_profession
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:potion
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:recipe_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:int_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/feature
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:cat_variant
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:pos_rule_test
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_placement
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_nbt_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:menu
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/trunk_placer_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/placement_modifier_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/carver
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_number_provider_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_piece
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:sound_event
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:particle_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:game_event
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/biome_source
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/root_placer_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:villager_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:painting_variant
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block_predicate_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:sensor_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:rule_test
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:memory_module_type
[00:08:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving empty registry data
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Starting registry save
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:command_argument_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:item
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block_entity_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:custom_stat
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/foliage_placer_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:stat_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/material_rule
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:attribute
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:position_source_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:height_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/density_function_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:fluid
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_condition_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_pool_element
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:activity
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:recipe_serializer
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:frog_variant
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:banner_pattern
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:instrument
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/feature_size_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:point_of_interest_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Skipping un-modded registry: minecraft:mob_effect
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_pool_entry_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/block_state_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/chunk_generator
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:float_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:chunk_status
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:enchantment
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_function_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_processor
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_score_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/tree_decorator_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:schedule
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/material_condition
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:entity_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:villager_profession
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:potion
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:recipe_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:int_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/feature
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:cat_variant
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:pos_rule_test
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_placement
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_nbt_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:menu
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/trunk_placer_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/placement_modifier_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/carver
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:loot_number_provider_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/structure_piece
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:sound_event
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:particle_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:game_event
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/biome_source
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:worldgen/root_placer_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:villager_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:painting_variant
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block_predicate_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:block
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:sensor_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:rule_test
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving registry: minecraft:memory_module_type
[00:13:26] [Server thread/DEBUG] (FabricRegistrySync) Not saving empty registry data

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -23,11 +23,16 @@ public class McWebserver implements ModInitializer {
ModConfigs.registerConfigs(); ModConfigs.registerConfigs();
LOGGER.info("McWebserver initialized!"); LOGGER.info("McWebserver initialized!");
if (ModConfigs.ISENABLED) {
LOGGER.info("Starting Webserver..."); LOGGER.info("Starting Webserver...");
new Thread(() -> { new Thread(() -> {
new HTTPServer(new Socket()); new HTTPServer(new Socket());
HTTPServer.main(); HTTPServer.main();
}).start(); }).start();
} else {
LOGGER.info("Webserver disabled in the config file.");
}
} }
} }

View file

@ -35,7 +35,7 @@ public class ModConfigs {
} }
private static void createConfigs() { private static void createConfigs() {
config.addKeyValuePair(new Pair<>("web.isEnabled", true), "whether or not the webserver should be enabled or not"); config.addKeyValuePair(new Pair<>("web.isEnabled", false), "whether or not the webserver should be enabled or not");
config.addKeyValuePair(new Pair<>("web.port", 8080), "The port of the webserver"); config.addKeyValuePair(new Pair<>("web.port", 8080), "The port of the webserver");
config.addKeyValuePair(new Pair<>("web.root", "webserver/"), "the root directory of the webserver, starting from the main server directory"); config.addKeyValuePair(new Pair<>("web.root", "webserver/"), "the root directory of the webserver, starting from the main server directory");
config.addKeyValuePair(new Pair<>("web.file.root", "index.html"), "the name of the html file for the homepage"); config.addKeyValuePair(new Pair<>("web.file.root", "index.html"), "the name of the html file for the homepage");
@ -45,7 +45,7 @@ public class ModConfigs {
} }
private static void assignConfigs() { private static void assignConfigs() {
ISENABLED = CONFIG.getOrDefault("basic.isEnabled", true); ISENABLED = CONFIG.getOrDefault("basic.isEnabled", false);
WEB_PORT = CONFIG.getOrDefault("web.port", 8080); WEB_PORT = CONFIG.getOrDefault("web.port", 8080);
WEB_ROOT = CONFIG.getOrDefault("web.root", "webserver/"); WEB_ROOT = CONFIG.getOrDefault("web.root", "webserver/");
WEB_FILE_ROOT = CONFIG.getOrDefault("web.file.root", "index.html"); WEB_FILE_ROOT = CONFIG.getOrDefault("web.file.root", "index.html");