Skip to content

Commit d2ad68f

Browse files
committed
Switched to serverside only, deleted arguments to ensure serversidedness
1 parent b0f1d79 commit d2ad68f

File tree

5 files changed

+2
-170
lines changed

5 files changed

+2
-170
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77

88
group = 'com.datdeveloper'
9-
version = "${minecraftVersion}-1.4.2"
9+
version = "${minecraftVersion}-1.4.3"
1010

1111
java {
1212
archivesBaseName = 'datmoddingapi'

src/main/java/com/datdeveloper/datmoddingapi/Datmoddingapi.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.datdeveloper.datmoddingapi;
22

33
import com.datdeveloper.datmoddingapi.asyncTask.AsyncHandler;
4-
import com.datdeveloper.datmoddingapi.command.arguments.DatArguments;
54
import com.datdeveloper.datmoddingapi.permissions.DatPermissions;
65
import com.mojang.logging.LogUtils;
76
import net.minecraftforge.common.ForgeConfigSpec;
@@ -35,8 +34,6 @@ public Datmoddingapi() {
3534
// Register ourselves for server and other game events we are interested in
3635
MinecraftForge.EVENT_BUS.register(this);
3736

38-
DatArguments.COMMAND_ARGUMENT_TYPES.register(modEventBus);
39-
4037
final ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder();
4138
final DatConfig config = new DatConfig(builder);
4239
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, builder.build());
@@ -45,17 +42,6 @@ public Datmoddingapi() {
4542
}
4643

4744
private void commonSetup(final FMLCommonSetupEvent event) {
48-
// Some common setup code
49-
LOGGER.info("HELLO FROM COMMON SETUP");
50-
51-
5245
AsyncHandler.initialise();
5346
}
54-
55-
// You can use SubscribeEvent and let the Event Bus discover methods to call
56-
@SubscribeEvent
57-
public void onServerStarting(final ServerStartingEvent event) {
58-
// Do something when the server starts
59-
LOGGER.info("HELLO from server starting");
60-
}
6147
}

src/main/java/com/datdeveloper/datmoddingapi/command/arguments/DatArguments.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/main/java/com/datdeveloper/datmoddingapi/command/arguments/LimitedStringArgument.java

Lines changed: 0 additions & 135 deletions
This file was deleted.

src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ authors = "jtljac" #optional
3838
# IGNORE_ALL_VERSION means that your mod will not cause a red X if it's present on the client or the server. This is a special case and should only be used if your mod has no server component.
3939
# NONE means that no display test is set on your mod. You need to do this yourself, see IExtensionPoint.DisplayTest for more information. You can define any scheme you wish with this value.
4040
# IMPORTANT NOTE: this is NOT an instruction as to which environments (CLIENT or DEDICATED SERVER) your mod loads on. Your mod should load (and maybe do nothing!) whereever it finds itself.
41-
displayTest="IGNORE_ALL_VERSION" # MATCH_VERSION is the default if nothing is specified (#optional)
41+
displayTest="IGNORE_SERVER_VERSION" # MATCH_VERSION is the default if nothing is specified (#optional)
4242

4343
# The description text for the mod (multi line!) (#mandatory)
4444
description = '''

0 commit comments

Comments
 (0)