Jannyboy11 / InvSee-plus-plus

A bukkit plugin for manipulating player inventories
Other
93 stars 17 forks source link

[InvSee++_Give] Give items on conditions #66

Open Jannyboy11 opened 1 year ago

Jannyboy11 commented 1 year ago

Some server owners would only like to give items to players only when certain criteria are met (e.g. they are in a certain world). Perhaps we can create a GiveJob abstraction, which contains the ItemStack and the critaria stating when the job should be performed. GiveJobs can then be used in the item queues. If this is implemented, all createria should be checked in some event listener; e.g. the world-criterium should be checked in PlayerJoinEvent and PlayerChangedWorldEvent.

We might want to have similar functionality for InvSee++_Clear as well.