mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
Generics! Woo.
This commit is contained in:
1 parent
31510b42d5
commit
9422465ced
2 files changed
+2
-3
No files matched your search
@@ -459,7 +459,7 @@ public class CommandHandler implements CommandExecutor
|
|||||||
}
|
}
|
||||||
if (cont)
|
if (cont)
|
||||||
{
|
{
|
||||||
List<CheckType> l = new ArrayList();
|
List<CheckType> l = new ArrayList<CheckType>();
|
||||||
for(CheckType type : CheckType.values())
|
for(CheckType type : CheckType.values())
|
||||||
{
|
{
|
||||||
if(type.getUses(user.getName()) > 0)
|
if(type.getUses(user.getName()) > 0)
|
||||||
|
|||||||
@@ -1176,8 +1176,7 @@ public class Backend
|
|||||||
return isMovingExempt(player) || justVelocity(player);
|
return isMovingExempt(player) || justVelocity(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
private <E> void logEvent(final Map<String, E> map, final Player player, final E obj, long time)
|
||||||
private void logEvent(@SuppressWarnings("rawtypes") final Map map, final Player player, final Object obj, long time)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
map.put(player.getName(), obj);
|
map.put(player.getName(), obj);
|
||||||
|
|||||||
Reference in new issue
Block a user