Skip to content

Commit 016f40e

Browse files
committed
fix: forget to add target arguments
1 parent 4270591 commit 016f40e

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

src/main/java/net/azisaba/rcitemlogging/api/IApi.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import org.jetbrains.annotations.NotNull;
44

5+
import java.util.UUID;
6+
57
public interface IApi {
68
/**
79
* Add log to nameFrom & nameTo player's log files.
@@ -14,6 +16,7 @@ void put(
1416
@NotNull String eventType,
1517
@NotNull String nameFrom,
1618
@NotNull String nameTo,
17-
@NotNull String message
19+
@NotNull String message,
20+
@NotNull UUID... targets
1821
);
1922
}

src/main/java/net/azisaba/rcitemlogging/api/RILApi.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import net.azisaba.rcitemlogging.RcItemLogging;
44
import org.jetbrains.annotations.NotNull;
55

6+
import java.util.UUID;
7+
68
public class RILApi implements IApi {
79
private final RcItemLogging plugin;
810

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

1315
@Override
14-
public void put(@NotNull String eventType, @NotNull String nameFrom, @NotNull String nameTo, @NotNull String message) {
15-
plugin.getLogManager().put(eventType, nameFrom, nameTo, message);
16+
public void put(
17+
@NotNull String eventType,
18+
@NotNull String nameFrom,
19+
@NotNull String nameTo,
20+
@NotNull String message,
21+
@NotNull UUID... targets
22+
) {
23+
plugin.getLogManager().put(
24+
eventType,
25+
nameFrom,
26+
nameTo,
27+
message,
28+
targets
29+
);
1630
}
1731
}

0 commit comments

Comments
 (0)