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:
Brianna 2019-06-02 19:18:56 -04:00
parent 19ab706cc4
commit 55a8d14854
3 changed files with 4 additions and 2 deletions

View File

@ -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;
}

View File

@ -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();

View File

@ -86,6 +86,7 @@ commands:
Ticket:
description: Ticket
default: false
aliases: [tickets]
usage: /ticket
StaffChat:
description: StaffChat