Splegg Minigame icon

Splegg Minigame -----

Spleef Mode | Powerups | Bungee/MultiArena | Extremely Configurable | Spleef Mode | Cosmetics |



[​IMG]

Take down your opponents throwing eggs with a shovel, be the last man standing and win the game!

[​IMG]

  • Multi-Arena or Bungee support.
  • Basic API with game events and data.
  • Shop with double jump and custom shovels.
    • You can modify the shop menu, price, item data and more.
  • Achievements.
  • Custom scoreboard.
    • 100% customizable.
  • Spectator mode.
  • Vault or custom economy support.
  • MySQL, SQLite or flat file (yaml) support.
  • All game messages are configurable.
    • Signs, game messages, scoreboard and more.
  • Automatically rollback system (After game/server shutdown).
  • UUID support.
  • Save and restore player inventory, levels and more!
  • Made for Java 8+ and MC 1.8-1.16.
  • Leaderboards for MySQL and SQLite.
  • Unbreakable-Blocks option.
  • Advanced world restore or map resetting system.
  • Reward system.
  • Jump pads, custom TNT, Powerups.
[​IMG]

Test server.​
There is no test server atm.

Bugs
Do not use the rating area to report bugs or request features. Please go to discussion.

Dependencies
HolographicDisplays or Decent Holograms:
  • HolographicDisplays is needed to have holograms for Powerups and Leaderboard.
  • You can also use DecentHolograms that will handle Powerups and PlaceholderAPI to create the Leaderboard.

Arena Restore System.
A backup of your map will be created at Splegg maps folder and will be used to restore the arena.

ParticleEffects (for trails and effects)
Code (Text):
There is more particles than that, to avoid issues we're working with:

EXPLODE
LARGEEXPLODE
HUGEEXPLOSION
FIREWORKSSPARK
CRIT
MAGICCRIT
SMOKE
LARGESMOKE
SPELL
INSTANTSPELL
MOBSPELL
WITCHMAGIC
DRIPWATER
DRIPLAVA
HAPPYVILLAGER
ANGRYVILLAGER
NOTE
PORTAL
ENCHANTMENTTABLE
FLAME
FOOTSTEP
CLOUD
REDSTONE
SNOWBALL
SNOW_SHOVELD
SLIME
HEART
LAVA
 

For 1.13+, check HERE.

[​IMG]

Player commands
  • /splegg join <arena> - splegg.player
  • /splegg leave - no permission.
  • /splegg stats - splegg.player
Manager commands
  • /splegg setgspawn - splegg.admin
  • /splegg start <arena> - splegg.moderator/splegg.admin
  • /splegg stop <arena> - splegg.moderator/splegg.admin
  • /splegg delete <arena> - splegg.admin
  • /splegg edit <arena> - splegg.admin
Others:
  • /splegg coins set/add/remve <player> <amount> - splegg.command.coins
  • /splegg updateLeaderboard - splegg.admin
  • /splegg config set [path] [value] - splegg.admin
  • /splegg reload - splegg.admin
Creating an arena below.

[​IMG]
Arena setup

Notes on the video:
  1. The world where the map is located is already on the server's folder. (It doesn't need to be loaded by third party plugins).
  2. You can also use /splegg setspawn to set a global arena spawn.
Required permission: splegg.admin
First of all set global spawn using /splegg setgspawn
  1. Create your arena - /splegg create <name>
    1. Splegg will create a empty world and teleport you the map.
    2. If you already have a world with the name of the arena on the server root, Splegg will load the world and teleport you to setup the arena. (Note: Don't load the world with any world plugin or splegg will not able to delete them)
  2. Set arena lobby - /splegg setlobby <name>
    1. Set the location where players will be teleported after joining.
  3. Add spawn - /splegg addspawn <name>
    1. Set the location where players will be teleported after game starts.
    2. The amount of spawns should be the same of max players.
    3. You can also use /splegg setspawn <name> to add a global game spawn.
  4. Add Spectator Spawn /splegg setSpectatorSpawn <name>
    1. This is important if you don't have a global spawn, but I'd recommend setting it anyways.
  5. Set min players - /splegg setMinPlayers <name> <amount>
  6. Set max players - /splegg setMaxPlayers <name> <amount>
  7. Add powerup spawn location(s) - /splegg powerups <name>
  8. Set/add a game time to spawn a random powerup - /splegg addPowerupTimer <name> <gameTime>
    1. Example: /splegg addpoweruptimer SPLEGG1 580 - By default the game has 600 seconds, so the powerup will spawn after 20 seconds.
  9. Finish the arena with - /splegg finish <name>
    1. Loads/reloads the arena, you need to use this command after editing or creating a map.

[​IMG]
Item Config
Code (Text):
Normal item "MATERIAL : AMOUNT"
Item with data "MATERIAL:DATA : AMOUNT"
Item with enchantment "MATERIAL : AMOUNT : enchant:ENCHANT_NAME:LEVEL"
Item with name and/or lore "MATERIAL : AMOUNT : name:name :
lore:lore"
Item with color: "ID : AMOUNT : dye:COLOR"
 
You can combine all those type of items however you want.

v3.8 Spleef Options
People seems to use my resources as other minigame types very often due how extremely configurable everything is, to Splegg, you can make the plugin run as a Spleef plugin.
  1. Set Options.Allow-Players-To-Break-Blocks to true and add the blocks you want players to break at Options.Breakable-Blocks.
    • Set 'ALL' in Breakable-Blocks add all block types.
  2. Check Options.Insta-Break-Blocks-When-Left-Click if you want to make any block insta break.
  3. Turn off shovels at Options.Disable-Shovel
    • This will also turn off the shovel from shop menu.
And now Splegg is Spleef. Powerups (see below) will still work, you have to turn off the powerups that will not work on Spleef, you can do that in powerups.yml.

Powerups
[​IMG]
  • Explosive Egg
    • Shots explosive eggs.
  • Shotgun
    • Shots 3 at the same time in different directions.
  • Inundation
    • Throws an item that spawn eggs in all directions.
  • Rapid Fire
    • Shoot faster and and farther.
  • Jump
    • Adds a double-jump and gives Jump effect.
  • Egg rain
    • Creates a egg cloud.
  • Curse
    • Put pumpkins on all other players but yourself.
  • Invisible
    • Makes you invisible.
  • Runner
    • Will drop blocks below you and run faster.
You can disable a powerup, modify the name and duration in powerups file.

Placeholders
  • %displayname% - For chat format setting, will return the player display name.
    • [ADMIN] Floodeer.
  • %playername% - For chat format setting, will return the player name.
    • Floodeer
  • %message% - For chat format setting, will return the player message.
  • %winner% - For winner messages, will return the winner's playername.
  • %coins% - For winner broadcast, will return the amount of coins that the player get from the game.
  • %egg_shots% - For scoreboard and stats, amount from player's data.
  • %broken_blocks% - For scoreboard and stats, amount from player's data.
  • %powerups% - For scoreboard and stats, amount from player's data.
  • %wins% - For scoreboard and stats, amount from player's data.
  • %games_played% - For scoreboard and stats, amount from player's data.
  • %balance% - For scoreboard and stats, amount from player's data.
  • %earned_coins% - For Game-Scoreboard (In-Game only).
  • %double_jumps% - For Game-Scoreboard (In-Game only).
  • %powerup% -For Game-Scoreboard (In-Game only), returns the active powerup.
  • %powerup_timer% - For Game-Scoreboard (In-Game only), returns the active power up time remaining.
PlaceholderAPI
  • %splegg_gamesplayed%
  • %splegg_wins%
  • %splegg_losses%
  • %splegg_shots%
  • %splegg_leaderboard_shots_position% (e.g; %splegg_leaderboard_shots_1%)
  • %splegg_leaderboard_wins_position% (e.g; %splegg_leaderboard_wins_1%)
Others placeholders can be found in settings.yml.

Extra permissions
  • splegg.joinfull - Allows you to join in full games.
  • splegg.advanced - Allows you to read the restore log.
Join Sign
  1. [splegg]
  2. join
  3. ArenaName
Leaderboard Hologram (HolographicDisplays)
Placeholder: {splegg_wins_position}
  • e.g: {splegg_wins_1} for the player with most wins.
Placeholder: {splegg_shots_position}
  • e.g: {splegg_wins_1} for the player with most shots.

Auto-Join sign
  1. [Splegg]
  2. AutoJoin
Shop

You can buy shovels, trails and effects.

Shovels are similar to Kits, however, the player will buy a upgrade to reduce the shoot delay.

The default shovel delay is 0.30 seconds, you can create any number with a two decimal values.

Database only support two decimal values, so if you try to create with more will not be saved properly.

You can't downgrade your shovel - If you shop has 0.30s, 0.20s and 0.10s and you buy 0.10s you can't buy or equip 0.20s.

Trails & Effects config

  • The number is the ID and will be saved in Database.
  • name: The display name in menu.
  • buyPermission: The player needs to have this permission to buy an trail/effect.
  • permission: The trail/effect that the player with the buyPermission will purchase.
  • particles: The particle type, the list is on Main page. CLICK HERE TO GO
  • menuItem: The display item in menu.
  • lore: The item lore in menu.
  • buyCommands: Commands to execute when player buy the trail/effect.
  • price: The price
  • slot: Slot in menu
  • rotateParticles: For Effects Only, special/rotative particles around the player or normal particles.
  • helmet: (Full armor set will be added soon) If player will get some hat with the effect.

Code (Text):

# ##### Important things in configuration #####
# Storage.Type: Types -> MYSQL, YAML, SQLITE
# Storage.Update-Interval: Interval (in minutes) to send a updated version of all the player data to your DB.
#
# Advanced.Advanced-Restore: If enabled, THE WORLD WILL BE DELETED and recreated from a backup at maps folder.
# Advanced.Iterator-Delay: The delay betwheen the block place -> 50 Blocks Per Iterator * 5 ticks Iterator Delay = 200 blocks placed per second
#
# EXTRA Placeholder list:
# %capitalize_state% -> Capitalizes the word: 'WAITING' to 'Waiting'
# %storage_driver% -> Get the storage driver'
Locations:
  spawn: ''
Storage:
  Type: SQLite
  MySQL:
    Host: localhost
    Port: '3306'
    User: user
    Password: '123456'
    Database: database
  Update-Interval: '5'
Leaderboard:
  Data-Limit: '10'
  Messages:
    No-Data: '&7Waiting...'
    Wins-Format: '&e%position%. &b%player% &7- &e%wins% &7wins'
    Shots-Format: '&e%position%. &b%player% &7- &e%shots% &7shots'
Options:
  Save-Inventory: 'true'
  Use-Block-Behind-Sign: 'true'
  Bungee:
    Enabled: 'false'
    Lobby-Server: lobby
    Server-Name: splegg1
  Whitelisted-Commands:
  - splegg leave
  - tell
  - r
  Unbreakable-Blocks:
  - STONE
  - GLOWSTONE
  TNT-Explosion-Radius: '4.5'
  PreStart-Countdown: '35'
  Game-Length: '600'
  Time-After-Game: '8'
  Grace-Period-Countdown: '5'
  Death-Block: 'false'
  Death-Block-Material: BEDROCK
  Enable-Trails: 'true'
  Enable-Effects: 'true'
  Use-Vault: 'false'
  Use-WinFirework-Party: 'true'
  Use-Titles: 'true'
  Use-Custom-Chat: 'true'
  Stop-Particles-When-Look-Up: 'false'
  Per-Player-Particle: 'false'
  Titles:
    Fade-In: '8'
    Stay: '28'
    Fade-Out: '5'
  Double-Jump: 'true'
  Double-Jump-Per-Game: '2'
  Double-Jump-Limit: '5'
  Velocity:
    Double-Jump-Multiply-Forward: '1.5'
    Double-Jump-Multiply-Y: '0.8'
    Gold-Plate-Multiply-Forward: '1.8'
    Gold-Plate-Multiply-Y: '1.2'
    Iron-Plate-Multiply-Forward: '2.0'
    Iron-Plate-Multiply-Y: '1.5'
  Economy:
    Coins-Per-Win: '250'
    Coins-Per-Player-Death: '5'
    Coins-For-Participation: '50'
Messages:
  ActionBar:
    Game-Format: '&bPowerup: &c&l%powerup% : %time%'
    Lobby-Format: '&bMoney: &c&l%money% &e&l| &bDouble Jumps: &c&l%double_jumps% &e&l|
      &bShovel: &c&l%shovelType%'
  Permission: '&cNo permission!'
  Item-Selected: '&aItem selected!'
  Permission-To-Buy: '&cNo permission to unlock this item!'
  Join: '&7%player% &ejoined the game. (&7%players%&e/&7%maxplayers%&e)'
  Left: '&7%player% &eleft the game. (&7%players%&e/&7%maxplayers%&e)'
  Already-Started: '&cThis game already started!'
  Restoring-Period: '&cThis game is restarting, please wait...'
  Already-InGame: '&cAlready playing!'
  Game-Is-Full: '&cThis game is full!'
  CannotJoin: '&cThis game already started!'
  Game-Not-Found: '&cNo game found, you are now on the Queue to play.'
  PowerupActive: '&6&l%player% &eactived a powerup!'
  PowerupSpawned: '&6&lA powerup was spawned!'
  Player-Eliminated: '&7%player% &ewas eliminated! %alive% player(s) left.'
  Eliminated: '&cEliminated! &7You''re now on spectator mode.'
  Already-Purchased: '&cYou already have this shovel!'
  Shovel-Selected: '&aShovel selected!'
  Starting: '&eThe game starts in &b%time% &eseconds.'
  Grace-Period: '&eThe Grace-Period ends in &b%time% &eseconds!'
  Game-Started: '&e&lGame started! Goodluck!'
  Successfully-Purchased: '&aYou successfully purchased item &afor &c%cost%&a.'
  Money-Back-Info: '&aYou got your money back because you left from the game before
    the start!'
  Enough-Money: '&cYou don''t have enough money to buy this!'
  Win: '&7%player% &ewon the game!'
  CommandFailed: '&cYou cannot use commands while playing splegg!'
  Countdown-Canceled: '&cNot enough players to start the game, countdown &lCANCELED.'
  Game-Canceled: '&cGame canceled by an Administrator.'
  Click-To-Activate: '&a&lRight Click to Activate!'
  Prefix: '&7[&cSplegg&7]'
  Achievement:
  - '&7&m---------------&7[&6&lACHIEVEMENT&7]&m---------------'
  - ' '
  - '%name% - %description%'
  - ' '
  - '&7&m----------------------------------'
  Game-End:
  - '&2&m-------------------&r'
  - ' '
  - '&7Winner: - &b%winner%'
  - '&7Earned coins: - &b%coins%'
  - ' '
  - '&2&m--------------------&r'
  Player-Stats:
  - '&7&m---------------&7[&c&lSPLEGG STATS&7]&m---------------'
  - ' '
  - '&8Games Played: &b%games_played%'
  - '&8Wins: &b%wins%'
  - '&8Losses: &b%losses%'
  - '&8Broken Blocks: &b%broken_blocks%'
  - '&8Eggs Shots: &b%egg_shots%'
  - '&8Powerups: &b%powerups%'
  - '&8Balance: &b%balance%'
  - ' '
  - '&7&m----------------------------------'
  Chat:
    Format: '&7%displayname%: &f%message%'
    Spectator-Format: '&7[SPECTATOR] &7%displayname%: &f%message%'
  Placeholders:
    None: '&7none'
    DiamondShovel: '&7Diamond Shovel'
    GoldShovel: '&7Gold Shovel'
    DefaultShovel: '&7Default Shovel'
    Triple-Shoot: '&6&lTRIPLE SHOOT'
    Explosive-Shoot: '&6&lEXPLOSIVE SHOOT'
    Fast-Shoot: '&6&lFAST SHOOT'
    Egg-Party: '&6&lEGG PARTY'
    Egg-Rain: '&6&lEGG RAIN'
    Super-Shoot: '&6&lSUPER SHOOT'
    Jump-Party: '&6&lJUMP'
  Powerup-Expired: '&c&lPowerup expired!'
  Titles:
    Titles:
      Join: '&eYou are playing on map:'
      Left: '&eYou left the game'
      Powerup: '&b%player%'
      Powerup-Spawned: '&b%type%'
      Player-Eliminated: '&b%player%'
      Grace-Time: ''
      Powerup-Expired: '&c%type%'
    Subtitles:
      Join: '&b%mapname%'
      Left: ''
      Powerup: '&epicked the powerup &b%type%'
      Powerup-Spawned: '&epowerup has spawned!'
      Player-Eliminated: '&7has eliminated!'
      Grace-Time: '&c&l%time%'
      Powerup-Expired: '&cpowerup expired!'
  DoubleJump-Limit: '&cYou cannot buy more than %limit% double jumps!'
  Shop:
    Name: '&7Splegg Shop'
    Effects-Name: '&7Effects Shop'
    Trails-Name: '&7Trails Shop'
    Effects:
      Name: '&bEffects (Click to open)'
      Lore:
      - '&eBuy in-game particles!'
    Trails:
      Name: '&bTrails (Click to open)'
      Lore:
      - '&eBuy in-game arrow particles!'
    Lore: '&c%amount% %moneyname% will be deducted from your balance.'
    MoneyName: Coins
  Sign:
    Line:
      '1': '&7[&cSplegg&7]'
      '2': '%state%'
      '3': '%mapname%'
      '4': '%players%/%maxplayers%'
    Auto-Join:
      Line:
        '2': '&8Auto-Join'
        '3': ' '
        '4': '&8%allPlayers% PLAYING'
    State:
      Waiting: '&aWAITING'
      Starting: '&6STARTING'
      InGame: '&cIN GAME'
      Ending: '&4ENDING'
      Restoring: '&8RESTORING'
  Motd:
    State:
      Waiting: '&aWAITING'
      Starting: '&6STARTING'
      InGame: '&cIN GAME'
      Ending: '&4ENDING'
      Restoring: '&8RESTORING'
Scoreboard:
  Lobby-Title: '&e&lSplegg'
  Lobby-Format:
  - ' '
  - 'Map: &a%mapname%'
  - 'Players: &b%players%/%maxplayers%'
  - 'Needed: &b%minplayers%'
  - ' '
  - 'State: %capitalize_state%'
  - ' '
  - 'Balance: &a%balance%'
  - ' '
  - yourserver.com
  Game-Title: '&e&lSplegg'
  Game-Format:
  - ' '
  - 'Double Jumps: &a%double_jumps%'
  - ' '
  - 'Time: &a%timer%'
  - ' '
  - 'Players: %alive%'
  - 'Spectators: %spectators%'
  - ' '
  - 'Coins: %earned_coins%'
  - ' '
  - yourserver.com
Rewards:
  Win-Commands:
  - eco give %player% 100
Shop:
  Settings:
    Itens:
      Double-Jump-Slot: '1'
      Shovels-Slot: '3'
      DoubleJump-Slot: '2'
      GoldShovel-Slot: '0'
      DiamondShovel-Slot: '8'
  Effects-Slot: '5'
  Trail-Slot: '7'
  Main-Shop-Rows: '1'
  Effects-Rows: '6'
  Trails-Rows: '6'
  Double-Jump-Price: '500'
  Shovel-Item-Name: '&bShovels'
  Gold-Shovel-Lore:
  - '&eClick to buy!'
  Double-Jump-Name: Double Jump
  Double-Jump-Lore:
  - '&eUse your double jump to scape from death!'
  Shovels-One-Time-Buy: 'false'
  Shovels:
    Diamond:
      Price: '2500'
      Buy-Permission: splegg.buy.shovel.diamond
      Permission: splegg.shovel.diamond
      BuyCommand:
      - pex user %player% add %permission%
    Gold:
      Price: '1000'
      Buy-Permission: splegg.buy.shovel.gold
      Permission: splegg.shovel.gold
      BuyCommand:
      - pex user %player% add %permission%
  Default-Gun-Name: '&8Iron gun'
  Gold-Shovel-Name: '&6Gold Gun'
  Diamond-Shovel-Name: '&bDiamond Gun'
  Diamond-Shovel-Lore:
  - '&eShoot delay: &b1s'
Sounds:
  Double-Jump: ENTITY_BAT_LOOP:0.2
  Egg-Throw: CHICKEN_EGG_POP:0.2
  Jump-Pad: ENTITY_ENDERDRAGON_FLAP:1
  Grace-Time: UI_BUTTON_CLICK:1
  Purchase-Sound: ENTITY_PLAYER_LEVELUP:2
  Powerup-Pickup: ENTITY_PLAYER_LEVELUP:2
Itens:
  Leave-Item:
    Type: 'BED : 1'
    Name: '&c&lLeave'
  Shop-Item:
    Type: 'EMERALD : 1'
    Name: '&a&lShop'
 
Code (Text):
#Trails
'1':
  name: '&cFirework Egg'
  permission: bs.trails.unlock.firework
  buyPermission: bs.trails.firework
  particles: fireworksSpark
  menuItem: 'FIREWORK : 1'
  lore:
  - '&eDisplays firework particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 18000
  slot: 11
'2':
  name: '&cLove Egg'
  permission: bs.trails.unlock.love
  buyPermission: bs.trails.love
  particles: heart
  menuItem: 'RED_ROSE : 1'
  lore:
  - '&eDisplays heart particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 12000
  slot: 12
'3':
  name: '&cMusic Egg'
  permission: bs.trails.unlock.music
  buyPermission: bs.trails.music
  particles: note
  menuItem: 'NOTE_BLOCK : 1'
  lore:
  - '&eDisplays note particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 15000
  slot: 13
'4':
  name: '&cExplosive Egg'
  permission: bs.trails.unlock.explosion
  buyPermission: bs.trails.explosion
  particles: explode
  menuItem: 'TNT : 1'
  lore:
  - '&eDisplays explosion particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 50000
  slot: 15
'5':
  name: '&cWater Egg'
  permission: bs.trails.unlock.water
  buyPermission: bs.trails.water
  particles: dripWater
  menuItem: 'WATER_BUCKET : 1'
  lore:
  - '&eDisplays drip water particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 15000
  slot: 14
'6':
  name: '&cBlizzard Egg'
  permission: bs.trails.unlock.blizzard
  buyPermission: bs.trails.blizzard
  particles: snowballpoof
  menuItem: 'SNOW_BALL : 1'
  lore:
  - '&eDisplays snowball particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 12000
  slot: 16
'7':
  name: '&cLava Egg'
  permission: bs.trails.unlock.lava
  buyPermission: bs.trails.lava
  particles: dripLava
  menuItem: 'LAVA_BUCKET : 1'
  lore:
  - '&eDisplays drip lava particles on your eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 10000
  slot: 19
'8':
  name: '&cFlame Egg'
  permission: bs.trails.unlock.flames
  buyPermission: bs.trails.flames
  particles: flame
  menuItem: 'BLAZE_POWDER : 1'
  lore:
  - '&eDisplays flames particles your on eggs!'
  buyCommands:
  - pex user %player% add %permission%
  price: 20000
  slot: 10
 
Code (Text):
#effects

'0':
 
'1':
  name: '&cRedstone'
  permission: bs.unlock.redstone
  buyPermission: bs.redstone
  particles: reddust
  menuItem: 'REDSTONE_BLOCK : 1'
  helmet: 'REDSTONE_BLOCK : 1'
  lore:
  - '&eDisplays redstone particles in-game!'
  - '&eGives you a cosmetic redstone block helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 18000
  slot: 11
  rotateParticles: false
'2':
  name: '&cLover'
  permission: bs.unlock.love
  buyPermission: bs.love
  particles: heart
  menuItem: 'RED_ROSE : 1'
  helmet: 'GOLD_HELMET : 1'
  lore:
  - '&eDisplays heart particles in-game!'
  - '&eGives you a cosmetic gold helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 16000
  slot: 12
  rotateParticles: true
'3':
  name: '&cMusic Lover'
  permission: bs.unlock.music
  buyPermission: bs.music
  particles: note
  menuItem: 'NOTE_BLOCK : 1'
  helmet: 'NOTE_BLOCK : 1'
  lore:
  - '&eDisplays note particles in-game!'
  - '&eGives you a cosmetic noteblock helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 14000
  slot: 13
  rotateParticles: true
'4':
  name: '&cAngry'
  permission: bs.unlock.angry
  buyPermission: bs.angry
  particles: angryVillager
  menuItem: 'JACK_O_LANTERN : 1'
  helmet: 'JACK_O_LANTERN : 1'
  lore:
  - '&eDisplays note particles in-game!'
  - '&eGives you a cosmetic jack o''lantern helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 12000
  slot: 14
  rotateParticles: true
'5':
  name: '&cFireworks'
  permission: bs.unlock.firework
  buyPermission: bs.firework
  particles: fireworksSpark
  menuItem: 'FIREWORK : 1'
  helmet: 'IRON_HELMET : 1'
  lore:
  - '&eDisplays note particles in-game!'
  - '&eGives you a cosmetic iron helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 10000
  slot: 15
  rotateParticles: true
'6':
  name: '&cWater'
  permission: bs.unlock.water
  buyPermission: bs.water
  particles: dripWater
  menuItem: 'WATER_BUCKET : 1'
  helmet: 'CHAINMAL_HELMET : 1'
  lore:
  - '&eDisplays note particles in-game!'
  - '&eGives you a cosmetic chain helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 8000
  slot: 16
  rotateParticles: true
'7':
  name: '&cCloud'
  permission: bs.unlock.cloud
  buyPermission: bs.cloud
  particles: cloud
  menuItem: 'SNOW_BLOCK : 1'
  helmet: 'SNOW_BLOCK : 1'
  lore:
  - '&eDisplays note particles in-game!'
  - '&eGives you a cosmetic snow block helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 8000
  slot: 19
  rotateParticles: true
'8':
  name: '&cFlames'
  permission: bs.effects.unlock.flames
  buyPermission: bs.effects.flames
  particles: flame
  menuItem: 'DIAMOND_HELMET : 1'
  helmet: 'DIAMOND_HELMET : 1'
  lore:
  - '&eDisplays flames particles in-game!'
  - '&eGives you a cosmetic diamond helmet!'
  buyCommands:
  - pex user %player% add %permission%
  price: 20000
  slot: 10
  rotateParticles: true
 
Code (Text):
#Shovels/Kits

#-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x#
#-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x Kits Config x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x#
#
#Items:
#Normal item "MATERIAL : AMOUNT"
#Item with data "MATERIAL:DATA : AMOUNT"
#Item with enchantment "MATERIAL : AMOUNT : enchant:ENCHANT_NAME:LEVEL"
#Item with name and/or lore "MATERIAL : AMOUNT : name:name : lore:lore"
#You can combine all those type of items however you want.
#
#-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x#

inventory:
name: '&9Shovels'
rows: 3

Shovels:
default:
  name: 'Default Shovel'
  lore:
  - '&7Delay: 0.3'
  permission: ""
  delay: 0.3
  slot: 0
  price: 0
  display-item: 'IRON_SPADE : 1'
  item: 'IRON_SPADE : 1 : name:&6Default Shovel'
golden:
  name: 'Golden Shovel'
  lore:
  - '&7Delay: &b0.2s'
  - '&7Price: &b800'
  permission: "splegg.gold"
  delay: 0.2
  slot: 1
  price: 500
  display-item: 'GOLD_SPADE : 1'
  item: 'GOLD_SPADE : 1 : name:&6Golden Shovel'
diamond:
  name: 'Diamond Shovel'
  lore:
  - '&7Delay: &b0.1s'
  - '&7Price: &b800'
  permission: "splegg.diamond"
  delay: 0.1
  slot: 2
  price: 800
  display-item: 'DIAMOND_SPADE : 1'
  item: 'DIAMOND_SPADE : 1 : name:&6Diamond Shovel'
Code (Text):
#achievements

wins:
  '1':
    enabled: true
    display-name: '&8&lIt''s my first win!'
    description: '&7First splegg win.'
    commands:
    - eco give %player% 100
games:
  '5':
    enabled: true
    display-name: '&b&lStarting my journey!'
    description: '&7Play 5 Splegg games.'
    commands:
    - eco give %player% 100
shots:
  '50':
    enabled: true
    display-name: '&b&lEggs everywhere!'
    description: '&7Shoot 50 eggs with your shovel.'
    commands:
    - eco give %player% 100
brokenBlocks:
  '100':
    enabled: true
    display-name: '&b&lBreak the floor!'
    description: '&7Break 100 blocks using eggs.'
    commands:
    - eco give %player% 100
 

Achivement
[​IMG]

Lobby/Pre-game
[​IMG]

Grace-Time/Starting
[​IMG]

Spectator/In-Game:
[​IMG]

In-Game/Powerups:
[​IMG]

[​IMG]

[​IMG]

Code (Text):

package com.floodeer.splegg;

import java.util.Map;

import org.bukkit.Bukkit;
import org.bukkit.Effect;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerToggleSneakEvent;

import com.floodeer.splegg.game.Game;
import com.floodeer.splegg.game.GamePlayer;

public class APIExample implements Listener {

    /**
    * On splegg events
    *
    * Event list:
    * - GameStartEvent
    * - GameEndEvent
    */
    /**
    * On bukkit events
    *
    * API Methods:
    * - Getting player data
    * getPlayerData(Player bukkitPlayer);
    * getPlayerData(UUID uuid);
    * getPlayerData(String name);
    *
    * - Getting a game
    * getGame(String name);
    * getGame(GamePlayer fromPlayer);
    *
    * - Leaderboard
    * getTopWins(int limit);
    * getTopShots(int limit);
    *
    * - Extra
    * updateLeaderboard(Player... players);
    */

    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent e) {
        Splegg.getAPI().saveData(e.getPlayer());
    }

    @EventHandler
    public void checkForTop(PlayerJoinEvent e) {
        Map<Integer, String> topWins = Splegg.getAPI().getTopWins(3);
        if(topWins.values().contains(e.getPlayer().getName())) {
            e.setJoinMessage("The one of the three bests Splegg Player joined the server!");
            for(Integer i : topWins.keySet()) {
                if(topWins.get(i).equalsIgnoreCase(e.getPlayer().getName())) {
                    Bukkit.broadcastMessage(e.getPlayer().getName() + " with the position " + i);
                }
            }
        }
    }

    @EventHandler
    public void onSneak(PlayerToggleSneakEvent e) {
        if(Splegg.getAPI().getPlayerData(e.getPlayer()).isInGame()) {
            e.setCancelled(true);
            e.getPlayer().sendMessage("You can't sneak here!");
        }
    }
}
 

By buying Splegg you agree to
  • You are not allowed to distribute this plugin.
  • Use only for your network/server.
  • NO refunds.
  • All support given is on Spigot only. You will not have Discord, Skype or any of those type of contact to ask for support.
    • I'll probably reply in a few minutes, otherwise wait at least 12 hours or check my profile to see any updates.
  • THIS IS A SPIGOT/SPIGOT FORK SOFTWARE. No refunds will be given if the plugin does not work on your server software.
  • Accept future terms.
Want to donate? Buy me a coffee.
[​IMG]
Resource Information
Author:
----------
Total Downloads: 158
First Release: Jul 28, 2016
Last Update: Feb 2, 2025
Category: ---------------
All-Time Rating:
22 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings