mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 10:37:41 +01:00
Fixed WorldGuard not getting group lists for permissions correctly.
This commit is contained in:
parent
733163cc4c
commit
eade612981
@ -71,7 +71,7 @@ public abstract class LocalPlayer {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public abstract List<String> getGroups();
|
||||
public abstract String[] getGroups();
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
|
@ -19,7 +19,6 @@
|
||||
|
||||
package com.sk89q.worldguard.bukkit;
|
||||
|
||||
import java.util.List;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
import com.sk89q.worldedit.Vector;
|
||||
@ -61,7 +60,7 @@ public void ban(String msg) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getGroups() {
|
||||
public String[] getGroups() {
|
||||
return plugin.getGroups(player);
|
||||
}
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
@ -369,8 +367,8 @@ boolean hasPermission(Player player, String perm) {
|
||||
return perms.hasPermission(player.getName(), perm);
|
||||
}
|
||||
|
||||
List<String> getGroups(Player player) {
|
||||
return new ArrayList<String>();
|
||||
String[] getGroups(Player player) {
|
||||
return perms.getGroups(player.getName());
|
||||
}
|
||||
|
||||
BukkitPlayer wrapPlayer(Player player) {
|
||||
|
Loading…
Reference in New Issue
Block a user