summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido/groupmanager/Tasks/BukkitPermsUpdateTask.java
blob: f4b805c359d13601cf15371d3b6532d962087c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.anjocaido.groupmanager.Tasks;

import org.anjocaido.groupmanager.GroupManager;

/*
 * 
 * Created by ElgarL
 * 
 */

public class BukkitPermsUpdateTask implements Runnable {
	
	public BukkitPermsUpdateTask() {
        super();
	}
	
	@Override
	public void run() {
		// Signal loaded and update BukkitPermissions.
		GroupManager.setLoaded(true);
		GroupManager.BukkitPermissions.collectPermissions();
		GroupManager.BukkitPermissions.updateAllPlayers();
		
		GroupManager.logger.info("Bukkit Permissions Updated!");
		
	}
	
}