Sueta

⦸NoStrip⦸

v2.3

Prevent players from stripping wood and logs via permission nodes and commands.

·Plugin

Overview:

Don't want players stripping wood & logs?

Then
⦸NoStrip⦸
is for you!

Use permission nodes and commands to control which players can or can't strip wood & logs.

Default Configuration:

config.yml
# ----------------[NoStrip]--------------------
# -------------[Placeholders]-----------------------------------------------------------------------
# {toggle} = What you have set in "toggle-placeholders" messages. - (ONLY APPLIES TO "toggle-message")
# You can edit the placeholders to however you want them.
# defaults:
# enabled: '&aenabled'
# disabled: '&cdisabled'
# --------------------------------------------------------------------------------------------------
# {permission} = Permission required for each "no-permission" message.
# -----Eg: (nostrip.axe.<type>, nostrip.toggle, nostrip.reload)------
# --------------------------------------------------------------------------------------------------
# -----------[Join Notification]--------------------------------------------------------------------
# Whether or not players should be notified of their toggle status when they join.
# notify-on-join: true/false
# --------------------------------------------------------------------------------------------------
# -----------[Help/command Menu]--------------------------------------------------------------------
# Whether or not players can see the NoStrip menu/commands in chat with the /nostrip command.
# allow-help-menu: true/false
# --------------------------------------------------------------------------------------------------
# ------------[Toggle Default]----------------------------------------------------------------------
# Whether players will have stripping toggled on when joining.
# toggle-default-on: true/false
# If set to false and they don't have the "nostrip.toggle" permission
# they will be notified by the 'toggle-message' and 'no-permission' messages.
# If set to false and they do have the "nostrip.toggle" permission
# they won't receive the notifications.
# Axe permissions are still required in either case.
# --------------------------------------------------------------------------------------------------

allow-help-menu: true
toggle-default-on: false
notify-on-join: true
messages:
  prefix: '&8&l[&c&l⦸ &4&lNo&c&lStrip &c&l⦸&8&l]'
  unknown-command: '&cUnknown Command'
  must-be-player: '&cYou Must Be A Player To Use This Command!'
  no-reload-permission: '&cAdmins Only! Permission {permission} required'
  no-toggle-permission: '&cPermission {permission} required'
  no-axe-permission: '&cAxe Is Denied! {permission} required'
  toggle-message: '&2Log Stripping {toggle}'
  config-reloaded: '&2Config Reloaded.'
toggle-placeholders:
  enabled: '&aenabled'
  disabled: '&cdisabled'


- /nostrip - Shows the menu
- /nostrip toggle - Toggles Log stripping On or Off
- /nostrip reload - Reloads the config



nostrip.toggle
- Permission to use the /ns toggle command | Default Op

nostrip.reload - Permission to use the /ns reload command | Default Op

nostrip.axe.* - Permission to strip wood & logs with all axes | Default Op

nostrip.axe.wood - Permission to strip wood & logs with a wooden axe

nostrip.axe.stone - Permission to strip wood & logs with a stone axe

nostrip.axe.iron - Permission to strip wood & logs with an iron axe

nostrip.axe.gold - Permission to strip wood & logs with a gold axe

nostrip.axe.diamond - Permission to strip wood & logs with a diamond axe

nostrip.* - Wildcard permission to use all commands and to strip wood & logs with all axes | Default Op

Negating permissions also works for Ops!

NOTE: For applying perms to Ops use negated permissions
Add each permission you want to allow or deny to any group you want

(LuckPerms Eg: "/lp group default perm set nostrip.* false" &
"/lp group player perm set nostrip.axe.* true"
& "/lp group player perm set nostrip.toggle true")

This example above will deny all commands for Ops but will allow
opped or deopped players in the player group to use axes and the toggle command

If using worldedit set "no-op-permissions: true" in WE's config.yml
and negate the worldedit.selection.* node
to the group of ops you wish to apply it to
(LuckPerms Eg: /lp group default perm set worldedit.selection.* false)
This way it will prevent Ops from using the wooden axe as a wand to select areas
whilst still being able to use NoStrip features.


- /ns
- /nos
- /ns toggle
- /nos toggle
- /ns reload
- /nos reload



OR


It is not required but, if you would like to see more plugins
like this and to help keep my resource(s) active and upto date
please feel free to donate, every little bit helps!



Without consent from the author you are;
Not allowed to sell or decompile this plugin.
Not allowed to claim the resource as your own.
Not permited to reverse engine
or modify the plugin in any form.

See LICENCE for more details

LICENSE

MIT License

Copyright (c) 2018 axemwa

Without consent from the author;
Permission is "NOT" granted to any person that wishes to modify, merge, publish, sell or distribute, copies of the Software and is subject to the
following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


- Add a toggle command for players.
- Add a reload command.
-
Add config.yml.
- Add messages to config.yml for toggle and reload commands.
- Add boolean true/false for viewing help menu.
- Add permissions for Axes (whether NoStrip affects logstripping on permitted axes or not).
- Optional on join message that shows players the NoStrip toggle status.

- Add permissions for Logs (whether NoStrip affects logstripping on permitted logs or not).
- Add memory for player toggle.
- Add the ability to strip wood without axes via permissions.
- Add a Whitelist/Blacklist to config.yml for WorldGuard Regions
- Add update/version checker

upload_2019-1-14_15-47-55.png

Issues Feedback and Reviews:

Please enjoy and don't forget to leave a rating and review of what you thought of the plugin. If there's a bug or an issue with the code please go to the GitHub Issue Tracker and post an issue report, DO NOT post issues in the reviews.

This way we will know for sure whether or not the issue was caused by the plugin itself and whether I can or can't help, AFTER you get your final results... THEN leave your review.

I will not respond to issues that are reported in reviews... Report via the
discussion page or GitHub instead so that I can at least try to help resolve your issue FIRST before you give a rating.

upload_2019-1-14_15-47-31.png



This is my first plugin :eek: I hope you like it, enjoy! :)

Milestones Reached

100 Downloads
Yay we reached 100+ downloads I'm glad you like it! :) :D :eek:

500 Downloads

1000 Downloads!!

upload_2019-1-14_15-47-39.png

Similar projects

Plugin →