Skip to content

Commit

Permalink
Updated to BentoBox 1.15.4 API
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Dec 27, 2020
1 parent a318e4f commit 318025b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
<!-- Non-minecraft related dependencies -->
<powermock.version>2.0.2</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.16.1-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.14.0</bentobox.version>
<spigot.version>1.16.3-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.15.4-SNAPSHOT</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- Do not change unless you want different name for local builds. -->
<build.number>-LOCAL</build.number>
<!-- This allows to change between versions. -->
<build.version>1.1.1</build.version>
<build.version>1.1.2</build.version>
</properties>

<!-- Profiles will allow to automatically change build version. -->
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/world/bentobox/chat/listeners/ChatListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;

import world.bentobox.bentobox.api.events.team.TeamEvent;
import world.bentobox.bentobox.api.events.team.TeamKickEvent;
import world.bentobox.bentobox.api.events.team.TeamLeaveEvent;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
Expand Down Expand Up @@ -77,15 +78,15 @@ public void onChat(final AsyncPlayerChatEvent e) {

// Removes player from TeamChat set if he left the island
@EventHandler
public void onLeave(TeamEvent.TeamLeaveEvent e) {
public void onLeave(TeamLeaveEvent e) {

if (teamChatUsers.contains(e.getPlayerUUID()))
teamChatUsers.remove(e.getPlayerUUID());
}

// Removes player from TeamChat set if he was kicked from the island
@EventHandler
public void onKick(TeamEvent.TeamKickEvent e) {
public void onKick(TeamKickEvent e) {

if (teamChatUsers.contains(e.getPlayerUUID()))
teamChatUsers.remove(e.getPlayerUUID());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class IsTeamChatHandler extends AddonRequestHandler {
private Chat addon;

/**
* @param label
* @param addon - chat addon
*/
public IsTeamChatHandler(Chat addon) {
super("isTeamChat");
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Chat
main: world.bentobox.chat.Chat
version: ${version}${build.number}
icon: WRITABLE_BOOK
api-version: 1.15.4

softdepend: BSkyBlock, AcidIsland, SkyGrid, CaveBlock

Expand Down

0 comments on commit 318025b

Please sign in to comment.