BROKE PROTOCOL

BROKE PROTOCOL

sambino918 Apr 10, 2020 @ 4:57pm
Offline console commands
Do offline console commands work, I'm trying to do mod testing and need commands, but I keep getting told "no permission"
< >
Showing 1-7 of 7 comments
Kubos3k Apr 11, 2020 @ 7:47am 
I have the same problem
Mohsin Haider Apr 18, 2020 @ 2:27am 
I have too this problem
Drabriel Aug 18, 2020 @ 5:29am 
same
M E T H O D Oct 27, 2020 @ 10:11am 
Originally posted by Drabriel:
same


Originally posted by panosplayz168:
same


Originally posted by Hyper:
I have too this problem


Originally posted by Kuboskiko:
I have the same problem


Been a while, but, u need to go into the gamefiles and open groups.json, find the owner group and add your name into the "Members" section
Kennek Apr 10, 2021 @ 7:20pm 
Originally posted by Dexter:
Originally posted by Drabriel:
same


Originally posted by panosplayz168:
same


Originally posted by Hyper:
I have too this problem


Originally posted by Kuboskiko:
I have the same problem


Been a while, but, u need to go into the gamefiles and open groups.json, find the owner group and add your name into the "Members" section


Can you please give me an example?
Joey Apr 13, 2021 @ 11:20am 
Change "Player1" to your in game name, this config goes in groups.json

/* Groups
This is the groups file. Here you can create, modify, and remove groups. A group is a collection of members and permissions.
List members by their username (eg. "NongBenz"). You can also add a wildcard ("*") to the group's Members list to automatically make everyone part of that group.
Per group you can have permissions. This is an string list, based on permission nodes. Per permission you have a GroupNamespace and then the permission. Take for example the following:
"bpe.helloworld"
Here "bpe" is the GroupNamespace and "helloworld" the permission. These can then be checked using .HasPermission("bpe.helloworld").
You can also use a wildcard here like so;
"bpe.*"
Which will allow every permission in said GroupNamespace, but you can also wildcard everything like so, which will allow every permission.
"*".
CustomData can be set per group and can be used by resources. This implements the CustomData class and ICustomData interface. This uses a Dictionary<string, object> low level, so technically any custom entry is possible.
A member may be part of multiple groups. When that's the case, it will loop over all groups the player is part of and check each group for permission. If the one of the groups has permission, it will pass and break.
"Inherits" is used to inherit permissions from other groups into the selected group. For example; I have a group called "Owners" and one called "Admins" and I want "Owners" to have the same permissions as "Admins" but I don't want to copy the permissions; this is what inheriting solves.
To inherit a group, add the group you want to inherit **by name** into the string array. For example, adding Admins to Owners would be:
Name: "Owners",
"Inherits": [
"Admins"
]
And now, Owner has exactly the same permissions as admins, and the permissions owner adds to that.
Note that you can have nested inherits, for example Owners -> Admins, Admins -> Mods, Mods -> Default. Now owner has the permissions from Owners, Admins, Mods, and Default.

Type is a property used to define what the contents of the Members list is. For example if you want a group that only checks against a specific Job you'd set the type to "JobName".

The following types are allowed (Defined in "BrokeProtocol.API.GroupTypes"
AccountID
- The registered username.
- Selector: "player.username"
- Example: "NongBenz"
ConnectionIP
- The user IPv4 address.
- Selector: "player.svPlayer.connection.IP"
- Example: "127.0.0.1"
JobName
- The user Job Name: "Citizen", "Prisoner", "Hitman", "Police", "Paramedic", "Firefighter", "Rojo Loco", "Green St. Fam", "Borgata Blu", "Mayor", "Delivery Man", "Taxi Driver", "SpecOps"
- Selector: "player.svPlayer.job.info.shared.jobName"
- Example: "Prisoner"
JobGroup
- The user Job Group/Type: "Citizen" (Most Jobs), "Criminal" (Gang Member), "LawEnforcement" (SpecOps, Police), "Prisoner"
- Selector: "player.svPlayer.job.info.shared.groupIndex"
- Example: "LawEnforcement"
*/

[
{
"Type": "AccountID",
"Name": "Owner",
"Tag": "&8[&9Owner&8]&f ",
"Permissions": [
"bp.removeJob",
"bp.timeScale",
"bp.deleteAccount"
],
"CustomData": {
"Data": {

}
},
"Members": [
"Player1"
],
"Inherits": [
"Developer"
]
},
{
"Type": "AccountID",
"Name": "Developer",
"Tag": "&8[&9Developer&8]&f ",
"Permissions": [
"bp.save",
"bp.environment",
"bp.stopServer",
],
"CustomData": {
"Data": {

}
},
"Members": [
"Joey"
],
"Inherits": [
"Admin"
]
},
{
"Type": "AccountID",
"Name": "Admin",
"Tag": "&8[&9Admin&8]&f ",
"Permissions": [
"bp.ban",
"bp.banAccount",
"bp.unbanIP",
"bp.restrain",
"bp.teleport",
"bp.summon",
"bp.transfer"
],
"CustomData": {
"Data": {

}
},
"Members": [
"StaffMembersName"
],
"Inherits": [
"Moderator"
]
},
{
"Type": "AccountID",
"Name": "Moderator",
"Tag": "&8[&9Moderator&8]&f ",
"Permissions": [
"bp.clearCrimes",
"bp.playerRecords",
"bp.banRecords",
"bp.kick",
"bp.heal"
],
"CustomData": {
"Data": {

}
},
"Members": [
"StaffMembersName"
],
"Inherits": [
"Helper"
]
},
{
"Type": "AccountID",
"Name": "Helper",
"Tag": "&8[&9Helper&8]&f ",
"Permissions": [
"bp.spectate"
],
"CustomData": {
"Data": {

}
},
"Members": [
"StaffMembersName"
],
"Inherits": [
"Premium"
]
},
{
"Type": "AccountID",
"Name": "Premium",
"Tag": "&8[&6Premium&8]&f ",
"Permissions": [
"bp.voteStart"
],
"CustomData": {
"Data": {

}
},
"Members": [
"DonatorsName"
],
"Inherits": [
"Member"
]
},
{
"Type": "AccountID",
"Name": "Member",
"Tag": "",
"Permissions": [
"bp.pingAll",
"bp.voteStart",
"game.*"
],
"CustomData": {
"Data": {

}
},
"Members": [
"*"
],
"Inherits": [

]
}
]
mamaistoocraked Jun 26, 2021 @ 8:17am 
Originally posted by ItzJoeyBoi:
Change "Player1" to your in game name, this config goes in groups.json

/* Groups
This is the groups file. Here you can create, modify, and remove groups. A group is a collection of members and permissions.
List members by their username (eg. "NongBenz"). You can also add a wildcard ("*") to the group's Members list to automatically make everyone part of that group.
Per group you can have permissions. This is an string list, based on permission nodes. Per permission you have a GroupNamespace and then the permission. Take for example the following:
"bpe.helloworld"
Here "bpe" is the GroupNamespace and "helloworld" the permission. These can then be checked using .HasPermission("bpe.helloworld").
You can also use a wildcard here like so;
"bpe.*"
Which will allow every permission in said GroupNamespace, but you can also wildcard everything like so, which will allow every permission.
"*".
CustomData can be set per group and can be used by resources. This implements the CustomData class and ICustomData interface. This uses a Dictionary<string, object> low level, so technically any custom entry is possible.
A member may be part of multiple groups. When that's the case, it will loop over all groups the player is part of and check each group for permission. If the one of the groups has permission, it will pass and break.
"Inherits" is used to inherit permissions from other groups into the selected group. For example; I have a group called "Owners" and one called "Admins" and I want "Owners" to have the same permissions as "Admins" but I don't want to copy the permissions; this is what inheriting solves.
To inherit a group, add the group you want to inherit **by name** into the string array. For example, adding Admins to Owners would be:
Name: "Owners",
"Inherits": [
"Admins"
]
And now, Owner has exactly the same permissions as admins, and the permissions owner adds to that.
Note that you can have nested inherits, for example Owners -> Admins, Admins -> Mods, Mods -> Default. Now owner has the permissions from Owners, Admins, Mods, and Default.

Type is a property used to define what the contents of the Members list is. For example if you want a group that only checks against a specific Job you'd set the type to "JobName".

The following types are allowed (Defined in "BrokeProtocol.API.GroupTypes"
AccountID
- The registered username.
- Selector: "player.username"
- Example: "NongBenz"
ConnectionIP
- The user IPv4 address.
- Selector: "player.svPlayer.connection.IP"
- Example: "127.0.0.1"
JobName
- The user Job Name: "Citizen", "Prisoner", "Hitman", "Police", "Paramedic", "Firefighter", "Rojo Loco", "Green St. Fam", "Borgata Blu", "Mayor", "Delivery Man", "Taxi Driver", "SpecOps"
- Selector: "player.svPlayer.job.info.shared.jobName"
- Example: "Prisoner"
JobGroup
- The user Job Group/Type: "Citizen" (Most Jobs), "Criminal" (Gang Member), "LawEnforcement" (SpecOps, Police), "Prisoner"
- Selector: "player.svPlayer.job.info.shared.groupIndex"
- Example: "LawEnforcement"
*/

[
{
"Type": "AccountID",
"Name": "Owner",
"Tag": "&8[&9Owner&8]&f ",
"Permissions": [
"bp.removeJob",
"bp.timeScale",
"bp.deleteAccount"
],
"CustomData": {
"Data": {

}
},
"Members": [
"Player1"
],
"Inherits": [
"Developer"
]
},
{
"Type": "AccountID",
"Name": "Developer",
"Tag": "&8[&9Developer&8]&f ",
"Permissions": [
"bp.save",
"bp.environment",
"bp.stopServer",
],
"CustomData": {
"Data": {

}
},
"Members": [
"Joey"
],
"Inherits": [
"Admin"
]
},
{
"Type": "AccountID",
"Name": "Admin",
"Tag": "&8[&9Admin&8]&f ",
"Permissions": [
"bp.ban",
"bp.banAccount",
"bp.unbanIP",
"bp.restrain",
"bp.teleport",
"bp.summon",
"bp.transfer"
],
"CustomData": {
"Data": {

}
},
"Members": [
"StaffMembersName"
],
"Inherits": [
"Moderator"
]
},
{
"Type": "AccountID",
"Name": "Moderator",
"Tag": "&8[&9Moderator&8]&f ",
"Permissions": [
"bp.clearCrimes",
"bp.playerRecords",
"bp.banRecords",
"bp.kick",
"bp.heal"
],
"CustomData": {
"Data": {

}
},
"Members": [
"StaffMembersName"
],
"Inherits": [
"Helper"
]
},
{
"Type": "AccountID",
"Name": "Helper",
"Tag": "&8[&9Helper&8]&f ",
"Permissions": [
"bp.spectate"
],
"CustomData": {
"Data": {

}
},
"Members": [
"StaffMembersName"
],
"Inherits": [
"Premium"
]
},
{
"Type": "AccountID",
"Name": "Premium",
"Tag": "&8[&6Premium&8]&f ",
"Permissions": [
"bp.voteStart"
],
"CustomData": {
"Data": {

}
},
"Members": [
"DonatorsName"
],
"Inherits": [
"Member"
]
},
{
"Type": "AccountID",
"Name": "Member",
"Tag": "",
"Permissions": [
"bp.pingAll",
"bp.voteStart",
"game.*"
],
"CustomData": {
"Data": {

}
},
"Members": [
"*"
],
"Inherits": [

]
}
]
i cant find those files in the files of my game
< >
Showing 1-7 of 7 comments
Per page: 1530 50