Sueta

★BuildToggle★ Great for hub servers!

1.1

Toggle blocks being broken. Highly configurable.

·Plugin

Welcome to BuildToggle!
There are other build blocker plugins out there, but they don't get the job done to my preferences. This plugin is aimed at being highly configurable. A great example use of this plugin is on a hub, where maintenance might be required to be done on it (e.g. christmas themed spawn needs to be built), and then build can be disabled before players are allowed back on.


Images

Images

Default block message (editable in config along with several other options)

Highly configurable for such a small package.
This is the old config.



Commands

  • /build [toggle/reload] View plugin info, toggle build mode or reload configuration.
    • Aliases: buildtoggle, bt, togglebuild

Permissions

permissions:
 buildtoggle.*:
  description: All buildtoggle permissions
  default: op
  children:
   buildtoggle.command: true
   buildtoggle.break: true
   buildtoggle.place: true
   buildtoggle.toggle: true
   buildtoggle.reload: true
 buildtoggle.command:
  description: allows /bt
  default: true
 buildtoggle.break:
  description: allows breaking blocks regardless of mode
  default: op
 buildtoggle.place:
  description: allows placing blocks regardless of mode
  default: op
 buildtoggle.toggle:
  description: allows /bt toggle
  default: op
 buildtoggle.reload:
  description: allows /bt reload
  default: op

Planned Features

  • Configurable sounds with volume, pitch and ID on block deny. Complete in v1.1
  • Suggest me more :)



Servers using BuildToggle
If you use BuildToggle, shoot me a message!


Config

#Placeholders for deny message: %username% and %displayname%
version: 1.1
messages:
 buildDeny: '&8[&6&lBuildToggle&8] &fBuilding is disabled, &6%username%&f.'
 buildOff: '&8[&6&lBuildToggle&8] &fBuild mode disabled.'
 buildOn: '&8[&6&lBuildToggle&8] &fBuild mode enabled.'
 noPermission: '&8[&6&lBuildToggle&8] &fYou don''t have permission for that.'
 reloadingConfig: '&8[&6&lBuildToggle&8] &fReloading configuration...'
 configReloaded: '&8[&6&lBuildToggle&8] &fConfiguration reloaded!'
 usage: '&8[&6&lBuildToggle&8] &fUsage: &6/%command% [toggle/reload]'
build:
 sendmessage: true
 mode: true
sound:
 enabled: true
 id: BLOCK_NOTE_BLOCK_BASS
 volume: 1.0
 pitch: 0.0



Other
Thanks for using my plugin!
I'm new to developing plugins, so please factor this in if you have something bad to say in the reviews.

I greatly appreciate constructive criticism and great reviews.

Please suggest me new ideas towards the plugin and I hope to implement them.
If you have a bad review for the plugin, please talk to me in the discussion and we can sort things out.
Do not decompile this plugin or claim this as your own.
You may post this at other sites as long as the download links back here and I take all credit for the resource.

Similar projects

Plugin →