summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido/groupmanager/Tasks/BukkitPermsUpdateTask.java
blob: 1a0fc23696663bea7460ff1f38795e1ef6135aff (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
29
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!");

	}

}