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 committed 2018-11-24 13:09:26 +00:00
1 parent c19ef84116
commit 1544487e92
2 files changed
+6 -4

No files matched your search

@@ -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