Skip to content

Commit

Permalink
Add support for integrated servers
Browse files Browse the repository at this point in the history
fixes #9
  • Loading branch information
DrexHD committed Dec 16, 2024
1 parent 894d4ca commit 40653df
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.3] - 2024-12-16
### Changed
- Allow running in singleplayer

## [1.2.2] - 2024-12-08
### Changed
- Updated to 1.21.4
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ org.gradle.jvmargs=-Xmx1G
minecraft_version=1.21.4
loader_version=0.16.9
# Mod Properties
mod_version=1.2.2
mod_version=1.2.3
maven_group=me.drex
archives_base_name=fabric-essentials
# Dependencies
fabric_version=0.111.0+1.21.4
fabric_version=0.112.0+1.21.4
permission_api_version=0.3.3
sgui_version=1.7.0+1.21.2
sgui_version=1.8.1+1.21.4
placeholder_api_version=2.5.1+1.21.3
player_data_api_version=0.7.0+1.21.3
common_protection_api_version=1.0.0
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/me/drex/essentials/EssentialsMod.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.drex.essentials;

import me.drex.essentials.util.teleportation.Location;
import net.fabricmc.api.DedicatedServerModInitializer;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
Expand All @@ -13,13 +13,13 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class EssentialsMod implements DedicatedServerModInitializer {
public class EssentialsMod implements ModInitializer {

public static final String MOD_ID = "fabric-essentials";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

@Override
public void onInitializeServer() {
public void onInitialize() {
ConfigManager.load();
DataStorage.init();
FabricEssentialsPlaceholders.register();
Expand All @@ -33,5 +33,4 @@ public void onInitializeServer() {
}
});
}

}
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"license": "MIT",
"icon": "assets/fabric-essentials/icon.png",
"environment": "server",
"environment": "*",
"entrypoints": {
"server": [
"main": [
"me.drex.essentials.EssentialsMod"
]
},
Expand Down

0 comments on commit 40653df

Please sign in to comment.