Tickets command is now an alias of ticket.
Will now create successfully. Ticket command will open the gui and not start the creation of a ticket.
This commit is contained in:
parent
19ab706cc4
commit
55a8d14854
|
@ -24,7 +24,7 @@ public class CommandTicket extends AbstractCommand {
|
|||
protected ReturnType runCommand(UltimateModeration instance, CommandSender sender, String... args) {
|
||||
Player senderP = ((Player) sender);
|
||||
|
||||
GUITicketManager.createNew(senderP, senderP);
|
||||
new GUITicketManager(instance, senderP, senderP);
|
||||
return ReturnType.SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,8 @@ public class GUITicketManager extends AbstractGUI {
|
|||
UltimateModeration plugin = UltimateModeration.getInstance();
|
||||
|
||||
AbstractAnvilGUI gui = new AbstractAnvilGUI(player, event ->
|
||||
new GUITicketType(plugin, toModerate, player, event.getName()));
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () ->
|
||||
new GUITicketType(plugin, toModerate, player, event.getName()), 1L));
|
||||
|
||||
ItemStack item = new ItemStack(Material.PAPER);
|
||||
ItemMeta meta = item.getItemMeta();
|
||||
|
|
|
@ -86,6 +86,7 @@ commands:
|
|||
Ticket:
|
||||
description: Ticket
|
||||
default: false
|
||||
aliases: [tickets]
|
||||
usage: /ticket
|
||||
StaffChat:
|
||||
description: StaffChat
|
||||
|
|
Loading…
Reference in New Issue