Skip to content

Commit

Permalink
r7
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed Mar 4, 2019
1 parent e24a5d5 commit 1842a78
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions config-instructions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ bow:
#Set if players can headshot mobs (only horizontal mobs)
headshotmobs: true
permissions:
#enable setting player groups for vive users.
enabled: false
#Permission group for Vive users
vivegroup: vive.vivegroup
#Permission group for non-Vive users
Expand Down
2 changes: 2 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ bow:
#Set if players can headshot mobs (only horizontal mobs)
headshotmobs: true
permissions:
#enable setting player groups for vive users.
enabled: false
#Permission group for Vive users
vivegroup: vive.vivegroup
#Permission group for non-Vive users
Expand Down
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Vivecraft-Spigot-Extensions
version: '1.13.2-r6'
version: '1.13.2-r7'
main: org.vivecraft.VSE
website: http://www.vivecraft.org/
author: jrbudda, jaron780
Expand Down
6 changes: 4 additions & 2 deletions src/org/vivecraft/VSE.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ public static boolean isVive(Player p){
}

public void setPermissionsGroup(Player p) {

if(!vault) return;
if(!getConfig().getBoolean("permissions.enabled")) return;

Map<String, Boolean> groups = new HashMap<String, Boolean>();

boolean isvive = isVive(p);
Expand All @@ -418,7 +420,7 @@ public void setPermissionsGroup(Player p) {

public void updatePlayerPermissionGroup(Player p, Map<String, Boolean> groups) {
try {
if(!vault) return;

RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
Permission perm = rsp.getProvider();
if (perm != null) {
Expand Down
3 changes: 2 additions & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#this file is used to check for updates
1.13.2-r6: VSE is up to date!
1.13.2-r6: VSE has a new version.
1.13.2-r7: VSE is up to date!

0 comments on commit 1842a78

Please sign in to comment.