-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathTownyTownChannel.java
More file actions
27 lines (22 loc) · 1.04 KB
/
TownyTownChannel.java
File metadata and controls
27 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package at.helpch.chatchat.hooks.towny;
import at.helpch.chatchat.api.holder.FormatsHolder;
import com.palmergames.bukkit.towny.object.Resident;
import com.palmergames.bukkit.towny.object.ResidentList;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
public final class TownyTownChannel extends AbstractTownyChannel {
public TownyTownChannel(@NotNull final String name,
@NotNull final String messagePrefix,
@NotNull final List<String> toggleCommands,
@NotNull final String channelPrefix,
@NotNull final FormatsHolder formats,
final int radius,
final boolean crossServer) {
super(name, messagePrefix, toggleCommands, channelPrefix, formats, radius, crossServer);
}
@Override
protected @Nullable ResidentList residentList(@NotNull final Resident resident) {
return resident.getTownOrNull();
}
}