Skip to content

Commit f55bbe0

Browse files
committed
update chat channels
1 parent c1a90bf commit f55bbe0

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Phoenix-API (Version: 1.7.5.1)
1+
# Phoenix-API (Version: 1.8.6)
22
This is the API for Phoenix & pxQueue!
33

44
## Installing
@@ -27,7 +27,7 @@ Add this to your `pom.xml` under `<dependencies>`:
2727
<dependency>
2828
<groupId>xyz.refinedev.phoenix</groupId>
2929
<artifactId>pxAPI</artifactId>
30-
<version>1.7.5.1</version>
30+
<version>1.8.6</version>
3131
<scope>provided</scope>
3232
</dependency>
3333
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>xyz.refinedev.phoenix</groupId>
1616
<artifactId>pxAPI</artifactId>
17-
<version>1.8</version>
17+
<version>1.8.6</version>
1818

1919
<properties>
2020
<maven.compiler.source>1.8</maven.compiler.source>

src/main/java/xyz/refinedev/phoenix/chat/api/ChatChannelType.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@
1818
public abstract class ChatChannelType {
1919
public abstract String getName();
2020

21-
public abstract boolean canUse(Player player);
21+
public abstract boolean canSendMessage(Player player);
2222

2323
public abstract int getPriority();
2424

2525
public abstract String getFormat();
2626

27-
public abstract boolean acceptRecipient(Player player, Player other);
27+
public abstract boolean canReceiveMessage(Player sender, Player receiver);
2828

29-
public boolean isStaff() {
29+
public boolean isGlobal() {
3030
return false;
3131
}
3232

33+
public String getPermission() { return null; }
34+
3335
public String getQuickAccessPrefix() {
3436
return null;
3537
}

0 commit comments

Comments
 (0)