Download the plugin (Optional: WorldGuard)
Restart your server!
Using WorldGuard:
In the config set 'WorldGuardFlags' to 'true'
Restart your server again to register the flags!
Use the different flags for the settings in that region. Any unspecified setting will default to the setting set in the config.
Flags: 'cb-bounceforce, cb-deathmessage, cb-falldamage, cb-bouncesound, cb-bounceblocks, cb-stopewhencrouch, cb-requirepermission, cb-isblockblacklist'
Tweak the settings in the CONFIG to your liking.
Reload the config by typing '/cb ReloadConfig'. Any errors will be send in the console and the bouncing will be disabled.
HAPPY BOUNCING!
/cb ReloadConfig | Reloads the config.
/cb Info | Shows a info message.
/cb GetErrors | Will show the errors in the config if there are any.
/cb GetRegionSettings | Shows the bounce settings of the region you are standing in.
/cb ResetData | To delete player/regions from the database.
CB.bounce | Allows the player to bounce in all the regions where 'RequirePermission' is set to true.
CB.bounce.<region> | Allows the player to bounce in that specific region when 'RequirePermission' is set to true.
CB.admin | To use all the commands.
If you have PlaceholderAPI installed you can view the bounce statistics of your server using placeholders:
%cb_total_<TYPE>% | This will show the total bounces of the server.
%cb_player_<TYPE>% | This will show the total bounces of the player.
%cb_totalregion_<REGION:WORLD>_<TYPE>% | This will show the total bounces of a region.
%cb_playerregion_<REGION:WORLD>_<TYPE>% | This will show the total bounces of a player in a specific region.
<TYPE> = 'NUMBER-FULL' or 'NUMBER-ROUNDED' | Number rounded will turn 45100 to 45.1K
%cb_leaderboard_<POSITION>_<TYPE>% | Get the value of a position in the leaderboard.
%cb_leaderboardregion_<REGION:WORLD>_<POSITION>_<TYPE>% | Get the value of a position in the leaderboard from a specific region.
<TYPE> = 'NAME', 'NUMBER-FULL', 'NUMBER-ROUNDED', 'BOTH-FULL' or 'BOTH-ROUNDED' | Both will for example turn into 'CasieBarie: 349'
NOTE: The data for this will be saved in 'bounce_stats.db'. DO NOT DELETE!
WorldGuardFlags: <Boolean> | If the WorldGuard Flags are enabled or not. Once enabled you have to fully restart your server so the flags can be registered in WorldGuard.
These settings will get used when WorldGuard is not enabled or when the setting is not specified in the region:
BounceForce: <Double> | The amount of force you will bounce with.
BounceSound: <String> | The sound that will be played when you bounce. Add CUSTOM: at the start for custom sounds (Set to NONE to disable)
BouncePrize: <String> | A prize the player will get each time they bounce (Use TYPE@VALUE) <MONEY/ITEM/PERMISSION> (Set to NONE to disable).
StopWhenCrouch: <Boolean> | Whether you will stop bouncing when you crouch.
FallDamage: <Boolean> | Whether you take FallDamage.
DeathMessage: <String> | The death message when a player dies because of bouncing. (& Color codes supported)
RequirePermission: <Boolean> | Whether you need the permission 'CB.bounce'.
BounceBlocks: <List> | The blocks where you can bounce on.
IsBlockBlacklist: <Boolean> | If the blocklist above is a blacklist. When true you can bounce on every block except the ones above.