1. Download the jar file into your plugin folder.
2. Start the server.
3. Setting your configuration and enable the features you want.
4. Restart the server.
5. That's all, thanks. If you have any question, problem or feature request, you can tell me in the
GitHub Issues.
Dependence
1. Vault 2. PlaceHolderAPI 3. ItemJoin (Creating one use ticket)
Code (Text):
items:
head_random:
slot: Arbitrary
id: PLAYER_HEAD
name: '&a&lRandom Head &f&lTicket'
lore:
- '&fTo get a random player head.'
- '&7Online player: 70%'
- '&7Staff: 25%'
- '&7Server owner: 5%'
commands:
interact:
- 'message: &6&lUsed &c✤ '&a&lRandom Head &f&lTicket'
- 'op: lotteryplus lottery head_random'
commands-sound: ENTITY_PLAYER_LEVELUP
itemflags: hide-attributes, hide-durability, item-repairable, item-craftable, item-modifiable, placement, cancel-events, always-give, drop-full, disposable
triggers: disabled
permission-node: itemjoin.random_head
*This plugin is developed and published by me. It is strictly prohibited to claim to be my own work, respect intellectual property rights, if there is any infringement, legal action will be taken, and the latest code will not be released. The source code of this plug-in can be changed freely. Please use it in accordance with the "GNU General Public License v3.0". If you use all or part of the source code, please open source and give back to the community.
Permissions of this copyleft license are conditioned on making available complete source code of licensed works and modifications under the same license or the GNU GPLv3. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. However, a larger work using the licensed work through interfaces provided by the licensed work may be distributed under different terms and without source code for the larger work.