mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Removed useless sh*t
This commit is contained in:
1 parent
816355312b
commit
719f779ba0
5 files changed
+1
-232
No files matched your search
@@ -1,83 +0,0 @@
|
||||
// Not production code yet. Still experimental and needs a lot of work.
|
||||
|
||||
package net.gravitydevelopment.anticheat.util;
|
||||
|
||||
import net.gravitydevelopment.anticheat.AntiCheat;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class Calibrator {
|
||||
|
||||
private final AntiCheat plugin;
|
||||
private final Server server;
|
||||
private final Player player;
|
||||
|
||||
private HashMap<String, Integer> ints = new HashMap<String, Integer>();
|
||||
private HashMap<String, Double> doubles = new HashMap<String, Double>();
|
||||
|
||||
public Calibrator(AntiCheat plugin, Player player) {
|
||||
this.plugin = plugin;
|
||||
this.server = plugin.getServer();
|
||||
this.player = player;
|
||||
|
||||
player.sendMessage("You have entered calibration mode.");
|
||||
}
|
||||
|
||||
public Player getPlayer() {
|
||||
return player;
|
||||
}
|
||||
|
||||
private void registerEvents(CalibrationStep step) {
|
||||
server.getPluginManager().registerEvents(step, plugin);
|
||||
}
|
||||
|
||||
private void unregisterEvents(CalibrationStep step) {
|
||||
HandlerList.unregisterAll(step);
|
||||
}
|
||||
|
||||
public class CalibrationStep implements Listener {
|
||||
|
||||
private final String key;
|
||||
|
||||
private int trials = 0;
|
||||
public static final int MAX_TRIALS = 10;
|
||||
|
||||
public CalibrationStep(String key, String instruction) {
|
||||
this.key = key;
|
||||
registerEvents(this);
|
||||
getPlayer().sendMessage(instruction);
|
||||
}
|
||||
|
||||
public void end() {
|
||||
unregisterEvents(this);
|
||||
}
|
||||
|
||||
public long getTime() {
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public int addTrial() {
|
||||
return trials++;
|
||||
}
|
||||
}
|
||||
|
||||
public class MinimumCalibrationStep extends CalibrationStep {
|
||||
|
||||
public MinimumCalibrationStep(String key, String instruction) {
|
||||
super(key, instruction);
|
||||
}
|
||||
|
||||
public void value() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* AntiCheat for Bukkit.
|
||||
* Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.gravitydevelopment.anticheat.util;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
public class SpyState {
|
||||
private boolean allowFlight;
|
||||
private boolean flying;
|
||||
private Location location;
|
||||
|
||||
public SpyState(boolean allowFlight, boolean flying, Location location) {
|
||||
this.allowFlight = allowFlight;
|
||||
this.flying = flying;
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public boolean getAllowFlight() {
|
||||
return this.allowFlight;
|
||||
}
|
||||
|
||||
public boolean getFlying() {
|
||||
return this.flying;
|
||||
}
|
||||
|
||||
public Location getLocation() {
|
||||
return this.location;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user