Add unsafed Files
This commit is contained in:
@@ -12,7 +12,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace reallife_gamemode.Server.Inventory.Interfaces
|
namespace reallife_gamemode.Server.Inventory.Interfaces
|
||||||
{
|
{
|
||||||
public interface IDroppableItem : IItem
|
public interface IDroppableItem : IUsableItem
|
||||||
{
|
{
|
||||||
void Drop(UserItem uItem, Client player, int amount);
|
void Drop(UserItem uItem, Client player, int amount);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace reallife_gamemode.Server.Inventory.Items
|
|||||||
public void Drop(UserItem uItem, Client player, int amount)
|
public void Drop(UserItem uItem, Client player, int amount)
|
||||||
{
|
{
|
||||||
player.SendNotification("Du hast ~g~" + amount + " ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~weggeworfen.", false);
|
player.SendNotification("Du hast ~g~" + amount + " ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~weggeworfen.", false);
|
||||||
InventoryManager.RemoveUserItem(player.GetUser(), uItem);
|
InventoryManager.RemoveUserItem(player.GetUser(), uItem, amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user