Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Commit

Permalink
Remove LoggerAPI and rename version to 1.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed Jun 14, 2022
1 parent fdf4401 commit e87c89d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
public class UnicacityAddon extends LabyModAddon {

public static final String VERSION = "1.0.0";
public static final String VERSION = "1.0.0-beta";
public static UnicacityAddon ADDON;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.rettichlp.UnicacityAddon.UnicacityAddon;
import com.rettichlp.UnicacityAddon.base.abstraction.AbstractionLayer;
import com.rettichlp.UnicacityAddon.base.event.UCEvent;
import com.rettichlp.UnicacityAddon.base.logger.LoggerAPI;
import com.rettichlp.UnicacityAddon.base.text.ColorCode;
import com.rettichlp.UnicacityAddon.base.text.Message;
import net.labymod.api.event.Subscribe;
Expand Down Expand Up @@ -57,13 +56,10 @@ public void onMessageSend(MessageSendEvent e) {
.of("Syntax: " + method.getAnnotation(UCCommand.class).usage().replace("%label%", label)).color(ColorCode.GRAY).advance()
.sendTo(AbstractionLayer.getPlayer().getPlayer());

LoggerAPI.command(label, args, success);

} catch (InvocationTargetException ex) {
LoggerAPI.error(ex.getCause().getMessage(), clazz);
ex.getCause().printStackTrace();
throw new RuntimeException(ex);
} catch (InstantiationException | IllegalAccessException ex) {
LoggerAPI.error(ex.getCause().getMessage(), this.getClass());
throw new RuntimeException(ex);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.rettichlp.UnicacityAddon.UnicacityAddon;
import com.rettichlp.UnicacityAddon.base.abstraction.AbstractionLayer;
import com.rettichlp.UnicacityAddon.base.logger.LoggerAPI;
import org.reflections.Reflections;
import org.reflections.scanners.Scanners;

Expand All @@ -23,7 +22,6 @@ public static void registerEvents() {
try {
AbstractionLayer.getLabymod().getEventService().registerListener(clazz.newInstance());
} catch (InstantiationException | IllegalAccessException e) {
LoggerAPI.error(e.getCause().getMessage(), UCEventHandler.class);
throw new RuntimeException(e);
}
});
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import com.rettichlp.UnicacityAddon.UnicacityAddon;
import com.rettichlp.UnicacityAddon.base.abstraction.AbstractionLayer;
import com.rettichlp.UnicacityAddon.base.event.UCEvent;
import com.rettichlp.UnicacityAddon.base.logger.LoggerAPI;
import net.labymod.ingamegui.Module;
import net.labymod.ingamegui.ModuleCategory;
import net.labymod.settings.elements.ControlElement;
Expand All @@ -30,7 +28,6 @@ public static void registerModules() {
try {
AbstractionLayer.getLabymod().getApi().registerModule((Module) clazz.newInstance());
} catch (InstantiationException | IllegalAccessException e) {
LoggerAPI.error(e.getCause().getMessage(), UCModuleHandler.class);
throw new RuntimeException(e);
}
});
Expand Down

0 comments on commit e87c89d

Please sign in to comment.