Code Monkey home page Code Monkey logo

itemraffle's Introduction

ItemRaffle

Description

  • IR(ItemRaffle) is a chance based jackpot system
  • Players can deposit to a pool for a chance to win a prize.
  • When the pool drawing timer is up, and let's say there are only two participating players: player Alice and player Bob.
    • Player Alice deposits $100 and player Bob deposits $100.
    • Total value of the jackpot is $200.
    • Player Alice has a winning chance of Player Alice deposit / total value = 100 / 200 = 50%.
    • Player Bob has a winning chance of Player Bob deposit / total value = 100 / 200 = 50%.

Why ItemRaffle?

  • Players can compete using economy
  • Players can win prizes using economy
  • Players can get rare and high value items
  • Self served way to keep server economy in balance
  • Reduce the inflation in the server economy

Functionality

  • Menus
  • Commands and Permissions
  • Config files
  • Language files
  • Supports NBT
  • Offline player prize delivery
  • Auto draw prize
  • Auto select next prize
  • Unlimited deposit value

Instructions

  • Use depository.yml to create pools
  • For admins in the game, right click a pool to deposit items.
  • For players in the game, left click a pool to deposit money.

Commands

  • /ir help
  • /ir menu

Permission

  • itemraffle.admin

Demo

Planned

  • Show prize item in chat by hover over
  • Show more info in past winners
  • Engraving the jackpot value to the prize item lore
  • Show player head in the deposits

Links

itemraffle's People

Contributors

weihao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.