diff --git a/README.md b/README.md index 666d87b..843b6e8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # McWebserver -//TODO: complete README \ No newline at end of file +## 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! \ No newline at end of file diff --git a/run/logs/debug.log b/run/logs/debug.log index 56ace54..655ff4f 100644 --- a/run/logs/debug.log +++ b/run/logs/debug.log @@ -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 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 +[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 diff --git a/run/world/DIM-1/data/raids.dat b/run/world/DIM-1/data/raids.dat index 37916d1..18d40d1 100644 Binary files a/run/world/DIM-1/data/raids.dat and b/run/world/DIM-1/data/raids.dat differ diff --git a/run/world/DIM1/data/raids_end.dat b/run/world/DIM1/data/raids_end.dat index 37916d1..18d40d1 100644 Binary files a/run/world/DIM1/data/raids_end.dat and b/run/world/DIM1/data/raids_end.dat differ diff --git a/run/world/data/raids.dat b/run/world/data/raids.dat index 37916d1..18d40d1 100644 Binary files a/run/world/data/raids.dat and b/run/world/data/raids.dat differ diff --git a/run/world/entities/r.-1.-1.mca b/run/world/entities/r.-1.-1.mca index 54be166..c746b2f 100644 Binary files a/run/world/entities/r.-1.-1.mca and b/run/world/entities/r.-1.-1.mca differ diff --git a/run/world/level.dat b/run/world/level.dat index 32c3de1..1f45ec5 100644 Binary files a/run/world/level.dat and b/run/world/level.dat differ diff --git a/run/world/level.dat_old b/run/world/level.dat_old index d3fadbf..96f15b8 100644 Binary files a/run/world/level.dat_old and b/run/world/level.dat_old differ diff --git a/run/world/region/r.-1.-1.mca b/run/world/region/r.-1.-1.mca index 48af194..224fab4 100644 Binary files a/run/world/region/r.-1.-1.mca and b/run/world/region/r.-1.-1.mca differ diff --git a/run/world/region/r.-1.-2.mca b/run/world/region/r.-1.-2.mca index 496cfe0..d30f54f 100644 Binary files a/run/world/region/r.-1.-2.mca and b/run/world/region/r.-1.-2.mca differ diff --git a/run/world/region/r.-1.0.mca b/run/world/region/r.-1.0.mca index 501ea66..2162046 100644 Binary files a/run/world/region/r.-1.0.mca and b/run/world/region/r.-1.0.mca differ diff --git a/run/world/region/r.-2.-1.mca b/run/world/region/r.-2.-1.mca index 315dfc3..7ada0ac 100644 Binary files a/run/world/region/r.-2.-1.mca and b/run/world/region/r.-2.-1.mca differ diff --git a/run/world/region/r.-2.-2.mca b/run/world/region/r.-2.-2.mca index e727f97..8033b21 100644 Binary files a/run/world/region/r.-2.-2.mca and b/run/world/region/r.-2.-2.mca differ diff --git a/run/world/region/r.-2.0.mca b/run/world/region/r.-2.0.mca index ab3a5e7..c8977ed 100644 Binary files a/run/world/region/r.-2.0.mca and b/run/world/region/r.-2.0.mca differ diff --git a/run/world/region/r.0.-1.mca b/run/world/region/r.0.-1.mca index 461bc1d..6ab81ed 100644 Binary files a/run/world/region/r.0.-1.mca and b/run/world/region/r.0.-1.mca differ diff --git a/run/world/region/r.0.-2.mca b/run/world/region/r.0.-2.mca index 8fe5f7a..8dbfd69 100644 Binary files a/run/world/region/r.0.-2.mca and b/run/world/region/r.0.-2.mca differ diff --git a/run/world/region/r.0.0.mca b/run/world/region/r.0.0.mca index 2bdfa22..9673328 100644 Binary files a/run/world/region/r.0.0.mca and b/run/world/region/r.0.0.mca differ diff --git a/src/main/java/me/jonasjones/mcwebserver/McWebserver.java b/src/main/java/me/jonasjones/mcwebserver/McWebserver.java index cae0467..941bb51 100644 --- a/src/main/java/me/jonasjones/mcwebserver/McWebserver.java +++ b/src/main/java/me/jonasjones/mcwebserver/McWebserver.java @@ -23,11 +23,16 @@ public class McWebserver implements ModInitializer { ModConfigs.registerConfigs(); LOGGER.info("McWebserver initialized!"); - LOGGER.info("Starting Webserver..."); - new Thread(() -> { - new HTTPServer(new Socket()); - HTTPServer.main(); - }).start(); + if (ModConfigs.ISENABLED) { + LOGGER.info("Starting Webserver..."); + + new Thread(() -> { + new HTTPServer(new Socket()); + HTTPServer.main(); + }).start(); + } else { + LOGGER.info("Webserver disabled in the config file."); + } } } diff --git a/src/main/java/me/jonasjones/mcwebserver/config/ModConfigs.java b/src/main/java/me/jonasjones/mcwebserver/config/ModConfigs.java index 02c660e..e2deff5 100644 --- a/src/main/java/me/jonasjones/mcwebserver/config/ModConfigs.java +++ b/src/main/java/me/jonasjones/mcwebserver/config/ModConfigs.java @@ -35,7 +35,7 @@ public class ModConfigs { } 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.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"); @@ -45,7 +45,7 @@ public class ModConfigs { } private static void assignConfigs() { - ISENABLED = CONFIG.getOrDefault("basic.isEnabled", true); + ISENABLED = CONFIG.getOrDefault("basic.isEnabled", false); WEB_PORT = CONFIG.getOrDefault("web.port", 8080); WEB_ROOT = CONFIG.getOrDefault("web.root", "webserver/"); WEB_FILE_ROOT = CONFIG.getOrDefault("web.file.root", "index.html");