Skip to content

Commit

Permalink
fix: forget to add target arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sysnote8main committed Feb 11, 2025
1 parent 4270591 commit 016f40e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/main/java/net/azisaba/rcitemlogging/api/IApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import org.jetbrains.annotations.NotNull;

import java.util.UUID;

public interface IApi {
/**
* Add log to nameFrom & nameTo player's log files.
Expand All @@ -14,6 +16,7 @@ void put(
@NotNull String eventType,
@NotNull String nameFrom,
@NotNull String nameTo,
@NotNull String message
@NotNull String message,
@NotNull UUID... targets
);
}
18 changes: 16 additions & 2 deletions src/main/java/net/azisaba/rcitemlogging/api/RILApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import net.azisaba.rcitemlogging.RcItemLogging;
import org.jetbrains.annotations.NotNull;

import java.util.UUID;

public class RILApi implements IApi {
private final RcItemLogging plugin;

Expand All @@ -11,7 +13,19 @@ public RILApi(RcItemLogging plugin) {
}

@Override
public void put(@NotNull String eventType, @NotNull String nameFrom, @NotNull String nameTo, @NotNull String message) {
plugin.getLogManager().put(eventType, nameFrom, nameTo, message);
public void put(
@NotNull String eventType,
@NotNull String nameFrom,
@NotNull String nameTo,
@NotNull String message,
@NotNull UUID... targets
) {
plugin.getLogManager().put(
eventType,
nameFrom,
nameTo,
message,
targets
);
}
}

0 comments on commit 016f40e

Please sign in to comment.