mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Code cleanup
This commit is contained in:
1 parent
6afe0049c5
commit
f88c31051b
13 files changed
+28
-36
No files matched your search
@@ -19,7 +19,13 @@
|
||||
|
||||
package com.rammelkast.anticheatreloaded.util;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
@@ -29,15 +35,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.util.NumberConversions;
|
||||
|
||||
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public final class Utilities {
|
||||
private static final List<Material> INSTANT_BREAK = new ArrayList<Material>();
|
||||
private static final List<Material> FOOD = new ArrayList<Material>();
|
||||
@@ -52,7 +49,6 @@ public final class Utilities {
|
||||
* @return true if they cannot stand there
|
||||
*/
|
||||
public static boolean cantStandAtSingle(Block block) {
|
||||
// TODO: Implement Better to reduce false positives (done? lets test...)
|
||||
Block otherBlock = block.getLocation().add(0, -0.5, 0).getBlock();
|
||||
boolean center = otherBlock.getType() == Material.AIR || otherBlock.getType() == Material.CAVE_AIR;
|
||||
return center;
|
||||
@@ -461,6 +457,7 @@ public final class Utilities {
|
||||
*/
|
||||
public static ArrayList<String> stringToList(final String string) {
|
||||
return new ArrayList<String>() {
|
||||
private static final long serialVersionUID = 364115444874638230L;
|
||||
{
|
||||
add(string);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user