JoinPrizeLite 1.0

Encourage player involvement by giving them random prizes upon login!

  1. BladeFireTurtle
    [​IMG]
    Looking for a fun way to boost your players involvement in your server? Well then this is the plugin for you! JoinPrize allows you to set money or item prizes for your players to receive after a set time interval when they login! What if they have a full inventory you say? Well they will be notified that their inventory needs emptying and their prize is only a command away! Set the custom prizes in the config!

    The newly added command prizes open up endless possibilities for this plugin. You can now allow a player to win an automatically executed command, regardless of their permissions. For example: if you have the PEX plugin you might want to give out timed permissions groups, you could give out complex items with multiple enchantments and names using Essentials' /give command, you could make the player win a rare mob head using the Player Heads plugin and almost any other command you can think of!

    Features:
    • Set command prizes
    • Add enchantments to prizes
    • Players can check time before next prize
    • Saves a players prize to a log if they don't have enough inventory space
    • Config reload command
    • Optional log of all given prizes
    • Clear logs command
    • Optional economy support
    This plugin is the free version of JoinPrize, for many new features including configurable prize tiers visit my Premium Resource.

    Commands: - /joinprize can now be shortened to /jp
    • /joinprize time - Check how long before your next prize!
    • /joinprize collect - Collect any prizes that have been save to the log if you don't have enough inventory space upon login!
    • /joinprize reload - Reload the config File!
    • /joinprize cleartimes - Clear the player times log!
    • /joinprize clearprizes - Clear the player prizes log!

    Permissions:

    • joinprize.* - Gives all joinprize permissions
    • joinprize.reload - Use the JoinPrize reload command to reload the config file. (Default OP only command)
    • joinprize.clearprizes - Use the JoinPrize clearprizes command to clear the player prizes log file. (Default OP only command)
    • joinprize.cleartimes - Use the JoinPrize cleartimes command to clear the player times log file. (Default OP only command)
    • joinprize.timecheck - Use the JoinPrize time command to see the time before your next prize. (Default permission)
    • joinprize.getprize- Ability to win prizes. (Default permission)

    Todo list:

    • Add option for disabling in certain worlds
    • Make a new config file for settings so that you don't need to rewrite the prizes in each time a new plugin setting is added.
    • Make economy support optional - Done!
    • Add a changeable language file
    • Add option for logging all prizes given - Done!
    • Add command rewards - I thank DrkMatr1984 for his suggestion! -Done!
    • Add /jp shortcut - I thank Chiaration for his suggestion! - Done!
    • Change command usage message - I thank Chiaration for his suggestion! - Done!

    This plugin no longer requires Vault and an economy plugin although having these enables monetary rewards to be setup!


    Configuration Help:
    Detailed configuration help is included in the config file itself. Here are lists of all the item names and enchantment names for use when setting prizes in the configuration file:
    Code (Text):

    #Should the plugin keep a log file of all prizes given to players?
    KeepLog: true

    #How long should it take for a player to get a prize upon login?

    #Time in days between prizes:
    Days: 1

    #Time in hours between prizes:
    Hours: 0

    #Time in minutes between prizes:
    Minutes: 0

    #Time in seconds between prizes:
    Seconds: 0


    #Set the prizes below!

    # ------------------------------------------------- TO MAKE AN ITEM PRIZE --------------------------------------------------------
    #Put a "-" without the quotation marks followed by a space.
    #Then write the number of the item. This ALWAYS has to be done (even if you are only setting 1 item)! After writing the number of the item put a comma (,)
    #Next write the name of the item after the comma - with NO SPACES (See the spigot page for all the item names)
    #(Optional) If you want to add an enchantment to the item do a semicolon after the item name - with NO SPACES (See the spigot page for all the enchantment names)
    # NOTE - If you have added an enchantment you MUST put an equals sign after it (=) and than state the enchantment level - This can be any amount!

    # ------------------------------------------------- TO MAKE A MONEY PRIZE --------------------------------------------------------
    #If you don't have vault and an economy plugin don't make money prizes - The plugin wont give any reward for these if you do!
    #Put a "-" without the quotation marks followed by a space.
    #Then put a "$" sign without the quotation marks
    #Then put a money amount (without a space) - Can only have 2 decimals maximum (ex. $10.23)

    # ------------------------------------------------- TO MAKE A COMMAND PRIZE ------------------------------------------------------
    #Put a "-" without the quotation marks followed by a space.
    #Then put a "/" sign without the quotation marks
    #Then put the command you want the player to win - If the command contains the players name (ex. /eco give BladeFireTurtle 1), replace the name with %player
    #After your command put a space then either %OP or %CONSOLE - If you want the player to run the command write %OP otherwise make the server run the command #using %CONSOLE - **NOTE** Some commands (ex. /fly) must be run by the player in which case use %OP

    #Prize List:
    PrizeList:
    - 1,DIAMOND_CHESTPLATE:PROTECTION_FIRE=3
    - /fly %player %OP
    - /speed %player 5 %OP
    - 32,DIAMOND
    - $5000
    - /eco give %player 10000 %CONSOLE
    - 1,DIAMOND
    - $500
    - 64,IRON_INGOT
    - 1,IRON_CHESTPLATE
    - $100

    #This plugin is the free version of JoinPrize, for the full version which includes many more features, such as a prize tier system, visit: https://www.spigotmc.org/resources/joinprize.5530/
     
    Code (Text):
    ACACIA_DOOR
    ACACIA_DOOR_ITEM
    ACACIA_FENCE
    ACACIA_FENCE_GATE
    ACACIA_STAIRS
    ACTIVATOR_RAIL
    AIR
    ANVIL
    APPLE
    ARMOR_STAND
    ARROW
    BAKED_POTATO
    BANNER
    BARRIER
    BEACON
    BED
    BED_BLOCK
    BEDROCK
    BIRCH_DOOR
    BIRCH_DOOR_ITEM
    BIRCH_FENCE
    BIRCH_FENCE_GATE
    BIRCH_WOOD_STAIRS
    BLAZE_POWDER
    BLAZE_ROD
    BOAT
    BONE
    BOOK
    BOOK_AND_QUILL
    BOOKSHELF
    BOW
    BOWL
    BREAD
    BREWING_STAND
    BREWING_STAND_ITEM
    BRICK
    BRICK_STAIRS
    BROWN_MUSHROOM
    BUCKET
    BURNING_FURNACE
    CACTUS
    CAKE
    CAKE_BLOCK
    CARPET
    CARROT
    CARROT_ITEM
    CARROT_STICK
    CAULDRON
    CAULDRON_ITEM
    CHAINMAIL_BOOTS
    CHAINMAIL_CHESTPLATE
    CHAINMAIL_HELMET
    CHAINMAIL_LEGGINGS
    CHEST
    CLAY
    CLAY_BALL
    CLAY_BRICK
    COAL
    COAL_BLOCK
    COAL_ORE
    COBBLE_WALL
    COBBLESTONE
    COBBLESTONE_STAIRS
    COCOA
    COMMAND
    COMMAND_MINECART
    COMPASS
    COOKED_BEEF
    COOKED_CHICKEN
    COOKED_FISH
    COOKED_MUTTON
    COOKED_RABBIT
    COOKIE
    CROPS
    DARK_OAK_DOOR
    DARK_OAK_DOOR_ITEM
    DARK_OAK_FENCE
    DARK_OAK_FENCE_GATE
    DARK_OAK_STAIRS
    DAYLIGHT_DETECTOR
    DAYLIGHT_DETECTOR_INVERTED
    DEAD_BUSH
    DETECTOR_RAIL
    DIAMOND
    DIAMOND_AXE
    DIAMOND_BARDING
    DIAMOND_BLOCK
    DIAMOND_BOOTS
    DIAMOND_CHESTPLATE
    DIAMOND_HELMET
    DIAMOND_HOE
    DIAMOND_LEGGINGS
    DIAMOND_ORE
    DIAMOND_PICKAXE
    DIAMOND_SPADE
    DIAMOND_SWORD
    DIODE
    DIODE_BLOCK_OFF
    DIODE_BLOCK_ON
    DIRT
    DISPENSER
    DOUBLE_PLANT
    DOUBLE_STEP
    DOUBLE_STONE_SLAB2
    DRAGON_EGG
    DROPPER
    EGG
    EMERALD
    EMERALD_BLOCK
    EMERALD_ORE
    EMPTY_MAP
    ENCHANTED_BOOK
    ENCHANTMENT_TABLE
    ENDER_CHEST
    ENDER_PEARL
    ENDER_PORTAL
    ENDER_PORTAL_FRAME
    ENDER_STONE
    EXP_BOTTLE
    EXPLOSIVE_MINECART
    EYE_OF_ENDER
    FEATHER
    FENCE
    FENCE_GATE
    FERMENTED_SPIDER_EYE
    FIRE
    FIREBALL
    FIREWORK
    FIREWORK_CHARGE
    FISHING_ROD
    FLINT
    FLINT_AND_STEEL
    FLOWER_POT
    FLOWER_POT_ITEM
    FURNACE
    GHAST_TEAR
    GLASS
    GLASS_BOTTLE
    GLOWING_REDSTONE_ORE
    GLOWSTONE
    GLOWSTONE_DUST
    GOLD_AXE
    GOLD_BARDING
    GOLD_BLOCK
    GOLD_BOOTS
    GOLD_CHESTPLATE
    GOLD_HELMET
    GOLD_HOE
    GOLD_INGOT
    GOLD_LEGGINGS
    GOLD_NUGGET
    GOLD_ORE
    GOLD_PICKAXE
    GOLD_PLATE
    GOLD_RECORD
    GOLD_SPADE
    GOLD_SWORD
    GOLDEN_APPLE
    GOLDEN_CARROT
    GRASS
    GRAVEL
    GREEN_RECORD
    GRILLED_PORK
    HARD_CLAY
    HAY_BLOCK
    HOPPER
    HOPPER_MINECART
    HUGE_MUSHROOM_1
    HUGE_MUSHROOM_2
    ICE
    INK_SACK
    IRON_AXE
    IRON_BARDING
    IRON_BLOCK
    IRON_BOOTS
    IRON_CHESTPLATE
    IRON_DOOR
    IRON_DOOR_BLOCK
    IRON_FENCE
    IRON_HELMET
    IRON_HOE
    IRON_INGOT
    IRON_LEGGINGS
    IRON_ORE
    IRON_PICKAXE
    IRON_PLATE
    IRON_SPADE
    IRON_SWORD
    IRON_TRAPDOOR
    ITEM_FRAME
    JACK_O_LANTERN
    JUKEBOX
    JUNGLE_DOOR
    JUNGLE_DOOR_ITEM
    JUNGLE_FENCE
    JUNGLE_FENCE_GATE
    JUNGLE_WOOD_STAIRS
    LADDER
    LAPIS_BLOCK
    LAPIS_ORE
    LAVA
    LAVA_BUCKET
    LEASH
    LEATHER
    LEATHER_BOOTS
    LEATHER_CHESTPLATE
    LEATHER_HELMET
    LEATHER_LEGGINGS
    LEAVES
    LEAVES_2
    LEVER
    LOG
    LOG_2
    LONG_GRASS
    MAGMA_CREAM
    MAP
    MELON
    MELON_BLOCK
    MELON_SEEDS
    MELON_STEM
    MILK_BUCKET
    MINECART
    MOB_SPAWNER
    MONSTER_EGG
    MONSTER_EGGS
    MOSSY_COBBLESTONE
    MUSHROOM_SOUP
    MUTTON
    MYCEL
    NAME_TAG
    NETHER_BRICK
    NETHER_BRICK_ITEM
    NETHER_BRICK_STAIRS
    NETHER_FENCE
    NETHER_STALK
    NETHER_STAR
    NETHER_WARTS
    NETHERRACK
    NOTE_BLOCK
    OBSIDIAN
    PACKED_ICE
    PAINTING
    PAPER
    PISTON_BASE
    PISTON_EXTENSION
    PISTON_MOVING_PIECE
    PISTON_STICKY_BASE
    POISONOUS_POTATO
    PORK
    PORTAL
    POTATO
    POTATO_ITEM
    POTION
    POWERED_MINECART
    POWERED_RAIL
    PRISMARINE
    PRISMARINE_CRYSTALS
    PRISMARINE_SHARD
    PUMPKIN
    PUMPKIN_PIE
    PUMPKIN_SEEDS
    PUMPKIN_STEM
    QUARTZ
    QUARTZ_BLOCK
    QUARTZ_ORE
    QUARTZ_STAIRS
    RABBIT
    RABBIT_FOOT
    RABBIT_HIDE
    RABBIT_STEW
    RAILS
    RAW_BEEF
    RAW_CHICKEN
    RAW_FISH
    RECORD_10
    RECORD_11
    RECORD_12
    RECORD_3
    RECORD_4
    RECORD_5
    RECORD_6
    RECORD_7
    RECORD_8
    RECORD_9
    RED_MUSHROOM
    RED_ROSE
    RED_SANDSTONE
    RED_SANDSTONE_STAIRS
    REDSTONE
    REDSTONE_BLOCK
    REDSTONE_COMPARATOR
    REDSTONE_COMPARATOR_OFF
    REDSTONE_COMPARATOR_ON
    REDSTONE_LAMP_OFF
    REDSTONE_LAMP_ON
    REDSTONE_ORE
    REDSTONE_TORCH_OFF
    REDSTONE_TORCH_ON
    REDSTONE_WIRE
    ROTTEN_FLESH
    SADDLE
    SAND
    SANDSTONE
    SANDSTONE_STAIRS
    SAPLING
    SEA_LANTERN
    SEEDS
    SHEARS
    SIGN
    SIGN_POST
    SKULL
    SKULL_ITEM
    SLIME_BALL
    SLIME_BLOCK
    SMOOTH_BRICK
    SMOOTH_STAIRS
    SNOW
    SNOW_BALL
    SNOW_BLOCK
    SOIL
    SOUL_SAND
    SPECKLED_MELON
    SPIDER_EYE
    SPONGE
    SPRUCE_DOOR
    SPRUCE_DOOR_ITEM
    SPRUCE_FENCE
    SPRUCE_FENCE_GATE
    SPRUCE_WOOD_STAIRS
    STAINED_CLAY
    STAINED_GLASS
    STAINED_GLASS_PANE
    STANDING_BANNER
    STATIONARY_LAVA
    STATIONARY_WATER
    STEP
    STICK
    STONE
    STONE_AXE
    STONE_BUTTON
    STONE_HOE
    STONE_PICKAXE
    STONE_PLATE
    STONE_SLAB2
    STONE_SPADE
    STONE_SWORD
    STORAGE_MINECART
    STRING
    SUGAR
    SUGAR_CANE
    SUGAR_CANE_BLOCK
    SULPHUR
    THIN_GLASS
    TNT
    TORCH
    TRAP_DOOR
    TRAPPED_CHEST
    TRIPWIRE
    TRIPWIRE_HOOK
    VINE
    WALL_BANNER
    WALL_SIGN
    WATCH
    WATER
    WATER_BUCKET
    WATER_LILY
    WEB
    WHEAT
    WOOD
    WOOD_AXE
    WOOD_BUTTON
    WOOD_DOOR
    WOOD_DOUBLE_STEP
    WOOD_HOE
    WOOD_PICKAXE
    WOOD_PLATE
    WOOD_SPADE
    WOOD_STAIRS
    WOOD_STEP
    WOOD_SWORD
    WOODEN_DOOR
    WOOL
    WORKBENCH
    WRITTEN_BOOK
    YELLOW_FLOWER
    Code (Text):
    ARROW_DAMAGE  (Use this for the Power enchantment)
    ARROW_FIRE (Use this for the Flame enchantment)
    ARROW_INFINITE (Use this for the Infinity enchantment)
    ARROW_KNOCKBACK (Use this for the Punch enchantment)
    DAMAGE_ALL (Use this for the Sharpness enchantment)
    DAMAGE_ARTHROPODS (Use this for the Bane of Arthropods enchantment)
    DAMAGE_UNDEAD (Use this for the Smite enchantment)
    DEPTH_STRIDER (Use this for the Depth Strider enchantment)
    DIG_SPEED (Use this for the Efficiency enchantment)
    DURABILITY (Use this for the Unbreaking enchantment)
    FIRE_ASPECT (Use this for the Fire Aspect enchantment)
    KNOCKBACK (Use this for the Knockback enchantment)
    LOOT_BONUS_BLOCKS(Use this for the Fortune enchantment)
    LOOT_BONUS_MOBS(Use this for the Looting enchantment)
    LUCK(Use this for the Luck of the Sea enchantment)
    LURE(Use this for the Lure enchantment)
    OXYGEN(Use this for the Respiration enchantment)
    PROTECTION_ENVIRONMENTAL(Use this for the Protection enchantment)
    PROTECTION_EXPLOSIONS(Use this for the Blast Protection enchantment)
    PROTECTION_FALL(Use this for the Feather Falling enchantment)
    PROTECTION_FIRE(Use this for the Fire Protection enchantment)
    PROTECTION_PROJECTILE(Use this for the Projectile Protection enchantment)
    SILK_TOUCH(Use this for the Silk Touch enchantment)
    THORNS(Use this for the Thorns enchantment)
    WATER_WORKER(Use this for the Aqua Affinity enchantment)

    Test Server:
    I actually use this plugin on my own server so feel free to come and see it working for yourself at: peasantscraft.mcpro.co


    License:
    You are not allowed to decompile this plugin
    You are
    not allowed to change the Source-Code
    You are
    not allowed to change/use parts of my Source-Code

    You are not authorized to sell or distribute this plugin
    You are only allowed to use this plugin for your server
    After purchasing, refunds
    aren't possible, sorry!

    If you want anything else added to the plugin PM me or write it in the comments and I'll try my best to add it.

    If you run into any issues at all don't hesitate to PM me and I'll try to get back to you as quickly as possible.

    Please don't leave a negative review on my plugin based on any issues/bugs you've had, its hard to test for everything and it would be more helpful to everyone if you contact me and let me fix it! :)