Data Packs Server Utility

BPerms - Vanilla Permissions

  • Functions
  • 6,307 views • 2 today
  • 384 downloads • 0 today
  • 13
  • 12
  • 10
Beatso
Level 68 : High Grandmaster Blueberry
380
This is a quick pack that I made mainly for my server, but I thought I'd publish here. It's a very lightweight pack to allow certain players (eg. mods) to perform a certain command. You can specify the command and players. This works on vanilla servers, and has no dependencies. This would also work on singleplayer, although I'm not quite sure why you'd want that. (Map making?)

Setup and Usage
  1. Download the file somewhere onto your computer and unzip.
  2. Navigate to "BPerms/data/bperms/functions".
  3. Open "setcommand.mcfunction" and setplayers.mcfunction with Notepad++ or similar.
  4. In "setcommand.mcfunction", underneath the comment, type the command(s) you wish to run when the trigger is run. Separate commands should go on separate lines. Do not prefix the commands with a forwards slash. Once you're done, save and close the file. Note: if you used a command like /ban or /stop, you will need to make sure you have the relevant function-permission-level in server.properties.
  5. In "setplayers.mcfunction", on line 4, replace "PLAYERNAME" with the name of a player you wish to grant permissions. You can copy and paste this line as many times as you would like, each with a different player. You can also use target selectors to do things like grant permissions to a certain team. Once you're done, save and close the file.
  6. Navigate back to the folder "BPerms", and copy the folder into your world datapacks folder. More info here.
  7. Once you have installed your datapack, the players you specified will be able to type the following command: /trigger BPerms
    This will run all the commands you specified in setcommand.mcfunction.

I am very new to functions datapacks, so if you find an error, or have a way to make the pack more efficient, please please please let me know here or on discord @Beatso#1815.
Also, feel free to use this datapack on your server/map etc. Credit would be nice :). You can totally customise this and change things to your heart's content.

BPerms - Vanilla Permissions Minecraft Data Pack
© Beatso. Terms of Usage


CreditThanks to Bertiecrafter for showing me how to make functions datapacks.
CompatibilityMinecraft 1.13
toMinecraft 1.16
Tags

  Have something to say?

User4066499G
05/15/2022 4:40 pm
Level 1 : New Miner
does this work for newer versions, and if it doesnt, could you please update it?
1
Beatso
08/22/2022 7:12 pm
Level 68 : High Grandmaster Blueberry
this should work on newer versions :)
1
Technodono
06/02/2020 10:40 pm
Level 67 : High Grandmaster Programmer
history
A not so bad idea is to have teams instead of manually letting people add themselves t the datapack so for example if someone did /team join admin then they could get ban privileges or /team join builder to give them access to modify spawn... I did the same premise to select a player in my Discipline datapack: [url="www.planetminecraft.com/data-pack/play-test-discipline-1-15/[/url]"]www.planetminecraft.com/data-pack/play-test-discipline-1-15/[/url]

If you need to check for a team you can do @a[​team=teamname]
2
Beatso
06/03/2020 2:20 am
Level 68 : High Grandmaster Blueberry
yeah, this is a good idea. I mainly made this for my own server, where we have teams for other things, so it would interfere. I might make a teams-based version in the future, though. Or maybe I could use tags?
2
Technodono
06/04/2020 12:15 am
Level 67 : High Grandmaster Programmer
you can have people on multiple teams can't you??? and also how would adding it affect this?
2
Beatso
06/04/2020 2:46 am
Level 68 : High Grandmaster Blueberry
nope, AFAIK you can't have a player on more than one team:
3
Technodono
06/04/2020 7:05 pm
Level 67 : High Grandmaster Programmer
Oh, that's a real shame... you can do it with /tag though am I right???
3
Beatso
06/05/2020 2:34 am
Level 68 : High Grandmaster Blueberry
yeah, i'm pretty sure you can. i might add that to a future update. thx for the help :)
2
Bertiecrafter
06/01/2020 4:03 pm
Level 72 : Legendary System
A very small, but good first time datapack! You don't actually have to zip the data pack after modification, it can run in extracted form, just make sure the data folder of the datapack is at the second level below /datapacks of the world save. (E.g. /datapacks/bperms/data exists)
2
Beatso
06/01/2020 5:07 pm
Level 68 : High Grandmaster Blueberry
oh yeah.. i knew that. no idea why i wrote that. I'll change now

thx for letting me know :)
1

Welcome