All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.the_fireplace.grandeconomy.mixin.ServerWorldMixin Maven / Gradle / Ivy

There is a newer version: 4.1.0+1.16.5
Show newest version
package dev.the_fireplace.grandeconomy.mixin;

import dev.the_fireplace.grandeconomy.events.NetworkEvents;
import net.minecraft.class_3218;
import net.minecraft.class_3222;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@SuppressWarnings("unused")
@Mixin(class_3218.class)
public class ServerWorldMixin {
    @Inject(at = @At("RETURN"), method = "method_18213")
    public void onPlayerConnected(class_3222 player, CallbackInfo info) {
        NetworkEvents.onPlayerJoinServer(player);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy