mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 03:36:42 +00:00
Reimplement vanish command
- SuperVanish has a wack permission system, and it didn't work in some rare circumstances. Added back TFMs vanish with the SuperVanish API - Fixed the permission nodes so admins can see other admins, like how it was in TFM
This commit is contained in:
@ -15,7 +15,6 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class PermissionConfig extends FreedomService
|
||||
{
|
||||
|
||||
public static final String PERMISSIONS_FILENAME = "permissions.yml";
|
||||
//
|
||||
private final EnumMap<PermissionEntry, Object> entries;
|
||||
@ -60,13 +59,11 @@ public class PermissionConfig extends FreedomService
|
||||
@Override
|
||||
public void onStart()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void load()
|
||||
@ -167,7 +164,6 @@ public class PermissionConfig extends FreedomService
|
||||
|
||||
public static class PermissionDefaults
|
||||
{
|
||||
|
||||
private YamlConfiguration defaults = null;
|
||||
|
||||
private PermissionDefaults(InputStream defaultConfig)
|
||||
@ -190,5 +186,4 @@ public class PermissionConfig extends FreedomService
|
||||
return defaults.get(path);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ import org.bukkit.permissions.PermissionAttachmentInfo;
|
||||
|
||||
public class PermissionManager extends FreedomService
|
||||
{
|
||||
|
||||
public Map<Displayable, List<String>> permissions = Maps.newHashMap();
|
||||
|
||||
public Map<Player, PermissionAttachment> attachments = Maps.newHashMap();
|
||||
@ -35,7 +34,6 @@ public class PermissionManager extends FreedomService
|
||||
|
||||
public void loadPermissionNodes()
|
||||
{
|
||||
|
||||
FLog.info("Loading permission nodes...");
|
||||
|
||||
permissions.clear();
|
||||
|
Reference in New Issue
Block a user