mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-05 00:35:02 +08:00
移除失效代码
This commit is contained in:
@@ -58,21 +58,16 @@ public class AutoPagedGUI extends CommonPagedGUI {
|
|||||||
.addLore("&7&o右键可前往第一页哦")
|
.addLore("&7&o右键可前往第一页哦")
|
||||||
.toItemStack() : previousPageUI) {
|
.toItemStack() : previousPageUI) {
|
||||||
@Override
|
@Override
|
||||||
public void ClickAction(ClickType type, Player u) {
|
public void onClick(ClickType type) {
|
||||||
if (type == ClickType.RIGHT) {
|
if (type == ClickType.RIGHT) {
|
||||||
goFirstPage();
|
goFirstPage();
|
||||||
} else {
|
} else {
|
||||||
goPreviousPage();
|
goPreviousPage();
|
||||||
}
|
}
|
||||||
PrefixConfig.Sounds.GUI_CLICK.play(u);
|
PrefixConfig.Sounds.GUI_CLICK.play(user);
|
||||||
openGUI(u);
|
openGUI(user);
|
||||||
// u.playSound(u.getLocation(), Sound.ENTITY_CHICKEN_EGG, 0.5f, 1);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
// setItem(previousPageSlot, new GUIItem(noPreviousPageUI == null ? new ItemStackFactory(Material.GRAY_STAINED_GLASS_PANE)
|
|
||||||
// .setDisplayName("已经是第一页啦")
|
|
||||||
// .toItemStack() : noPreviousPageUI));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (previousPageSlot >= 0)
|
if (previousPageSlot >= 0)
|
||||||
@@ -82,21 +77,16 @@ public class AutoPagedGUI extends CommonPagedGUI {
|
|||||||
.addLore("&7&o右键可前往最后一页哦")
|
.addLore("&7&o右键可前往最后一页哦")
|
||||||
.toItemStack() : nextPageUI) {
|
.toItemStack() : nextPageUI) {
|
||||||
@Override
|
@Override
|
||||||
public void ClickAction(ClickType type, Player u) {
|
public void onClick(ClickType type) {
|
||||||
if (type == ClickType.RIGHT) {
|
if (type == ClickType.RIGHT) {
|
||||||
goLastPage();
|
goLastPage();
|
||||||
} else {
|
} else {
|
||||||
goNextPage();
|
goNextPage();
|
||||||
}
|
}
|
||||||
PrefixConfig.Sounds.GUI_CLICK.play(u);
|
PrefixConfig.Sounds.GUI_CLICK.play(user);
|
||||||
openGUI(u);
|
openGUI(user);
|
||||||
// u.playSound(u.getLocation(), Sound.ENTITY_CHICKEN_EGG, 0.5f, 1);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
// setItem(nextPageSlot, new GUIItem(noNextPageUI == null ? new ItemStackFactory(Material.GRAY_STAINED_GLASS_PANE)
|
|
||||||
// .setDisplayName("已经是最后一页啦")
|
|
||||||
// .toItemStack() : noNextPageUI));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super.openGUI(user);
|
super.openGUI(user);
|
||||||
|
|||||||
Reference in New Issue
Block a user