Convert permissions to lowercase inside the cache

Slight optimization, toLowerCase is a relatively expensive call in the scheme of permission checks.
This commit is contained in:
Luck
2018-11-24 13:09:26 +00:00
Unverified
parent c19ef84116
commit 1544487e92
2 changed files with 6 additions and 4 deletions
@@ -47,6 +47,8 @@ import java.util.Optional;
* <li>{@code org.bukkit.entity.Player}</li>
* <li>{@code net.md_5.bungee.api.connection.ProxiedPlayer}</li>
* <li>{@code org.spongepowered.api.service.permission.Subject}</li>
* <li>{@code cn.nukkit.Player}</li>
* <li>{@code com.velocitypowered.api.proxy.Player}</li>
* </ul>
*
* @since 4.0