mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-09-28 23:57:32 +02:00
Uses new panel API method names.
This commit is contained in:
parent
ab1385d13e
commit
481b9ea3e5
@ -46,7 +46,6 @@ import bskyblock.addon.level.event.TopTenClick;
|
|||||||
import us.tastybento.bskyblock.BSkyBlock;
|
import us.tastybento.bskyblock.BSkyBlock;
|
||||||
import us.tastybento.bskyblock.Constants;
|
import us.tastybento.bskyblock.Constants;
|
||||||
import us.tastybento.bskyblock.api.commands.User;
|
import us.tastybento.bskyblock.api.commands.User;
|
||||||
import us.tastybento.bskyblock.api.panels.Panel;
|
|
||||||
import us.tastybento.bskyblock.api.panels.PanelItem;
|
import us.tastybento.bskyblock.api.panels.PanelItem;
|
||||||
import us.tastybento.bskyblock.api.panels.PanelItem.ClickHandler;
|
import us.tastybento.bskyblock.api.panels.PanelItem.ClickHandler;
|
||||||
import us.tastybento.bskyblock.api.panels.builders.PanelBuilder;
|
import us.tastybento.bskyblock.api.panels.builders.PanelBuilder;
|
||||||
@ -197,10 +196,10 @@ public class TopTen implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new PanelItemBuilder()
|
return new PanelItemBuilder()
|
||||||
.setIcon(playerSkull)
|
.icon(playerSkull)
|
||||||
.setName(name)
|
.name(name)
|
||||||
.setDescription(description)
|
.description(description)
|
||||||
.setClickHandler(new ClickHandler() {
|
.clickHandler(new ClickHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onClick(User user, us.tastybento.bskyblock.api.panels.ClickType click) {
|
public boolean onClick(User user, us.tastybento.bskyblock.api.panels.ClickType click) {
|
||||||
|
Loading…
Reference in New Issue
Block a user