Skip to content

Commit

Permalink
7.11.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Jan 3, 2025
1 parent 76f1bb7 commit 5a1722c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

/**
* Called whenever the relationship between lands or nations changes.
* This is not called when an {@link me.angeschossen.lands.api.relations.RelationRequest} is sent, but rather when it is accepted by the receiver.
*/
public class MemberHolderRelationChangedEvent extends MemberHolderEvent implements Cancellable {
public class MemberHolderRelationChangeEvent extends MemberHolderEvent implements Cancellable {

public static final HandlerList handlerList = new HandlerList();

Expand All @@ -29,7 +30,7 @@ public class MemberHolderRelationChangedEvent extends MemberHolderEvent implemen
* @param target the target land or nation
* @param relation the new relation status
*/
public MemberHolderRelationChangedEvent(@NotNull MemberHolder initiator, @NotNull MemberHolder target, @NotNull Relation relation) {
public MemberHolderRelationChangeEvent(@NotNull MemberHolder initiator, @NotNull MemberHolder target, @NotNull Relation relation) {
super(initiator);

this.target = Checks.requireNonNull(target, "target");
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package me.angeschossen.lands.api.relations;

import com.github.angeschossen.pluginframework.api.holder.Changeable;
import org.jetbrains.annotations.NotNull;

public interface RelationRequest extends Changeable {
/**
* Get the result of this request.
*
* @return never null
*/
@NotNull Relation getIntent();
}

0 comments on commit 5a1722c

Please sign in to comment.