private void OnCrafting(CraftingEvent e)
 {
     if (WaitingUsers.ContainsKey(e.Player.UID))
     {
         e.Player.MessageFrom("AuthMe", red + YouNeedToBeLoggedIn);
     }
 }
Beispiel #2
0
        public static void CraftingEvent(CraftingInventory inv, BlueprintDataBlock blueprint, int amount, ulong startTime)
        {
            CraftingEvent e = new CraftingEvent(inv, blueprint, amount, startTime);

            if (OnCrafting != null)
            {
                OnCrafting(e);
            }
        }
        public void OnCrafting(CraftingEvent e)
        {
            var item = e.ResultItem;

            if (item.name == "Paper")
            {
                e.Cancel();
                e.Player.Notice("You can not Craft the Paper");
            }
        }
Beispiel #4
0
 public void OnCrafting(CraftingEvent e)
 {
     this.Invoke("On_Crafting", new object[] { e });
 }
Beispiel #5
0
 public void OnCrafting(CraftingEvent e)
 {
     Invoke("On_Crafting", e);
 }