mirror of
https://github.com/songoda/UltimateModeration.git
synced 2025-02-16 19:41:19 +01:00
Fixed a few permissions.
This commit is contained in:
parent
60501c5c3f
commit
cbe3736ed4
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateModeration"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1.1.12"
|
||||
version: "1.1.13"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -68,7 +68,7 @@ public class GUITicket extends AbstractGUI {
|
||||
}));
|
||||
}
|
||||
|
||||
if (player.hasPermission("um.ticket.openclose"))
|
||||
if (player.hasPermission("um.tickets.openclose"))
|
||||
createButton(5, Material.REDSTONE, "&6" + ticket.getStatus().getStatus());
|
||||
|
||||
createButton(8, plugin.isServerVersionAtLeast(ServerVersion.V1_13)
|
||||
@ -127,19 +127,19 @@ public class GUITicket extends AbstractGUI {
|
||||
registerClickable(8, ((player1, inventory1, cursor, slot, type) ->
|
||||
new GUITicketManager(plugin, toModerate, player)));
|
||||
|
||||
if (player.hasPermission("um.ticket.clicktotele") && ticket.getLocation() != null) {
|
||||
if (player.hasPermission("um.tickets.clicktotele") && ticket.getLocation() != null) {
|
||||
registerClickable(7, ((player1, inventory1, cursor, slot, type) ->
|
||||
player.teleport(ticket.getLocation())));
|
||||
}
|
||||
|
||||
if (player.hasPermission("um.ticket.openclose")) {
|
||||
if (player.hasPermission("um.tickets.openclose")) {
|
||||
registerClickable(5, ((player1, inventory1, cursor, slot, type) -> {
|
||||
ticket.setStatus(ticket.getStatus() == TicketStatus.OPEN ? TicketStatus.CLOSED : TicketStatus.OPEN);
|
||||
constructGUI();
|
||||
}));
|
||||
}
|
||||
|
||||
if (player.hasPermission("um.ticket.respond")) {
|
||||
if (player.hasPermission("um.tickets.respond")) {
|
||||
registerClickable(6, ((player1, inventory1, cursor, slot, type) -> {
|
||||
player.sendMessage(plugin.getLocale().getMessage("gui.ticket.what").getMessage());
|
||||
AbstractChatConfirm abstractChatConfirm = new AbstractChatConfirm(player, event2 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user