Allow /acr report for offline players & small multiversion improvements

This commit is contained in:
Rammelkast committed 2020-10-17 18:46:07 +02:00
1 parent 9211003d6d
commit a84b573fa8
3 files changed
+172 -175

No files matched your search

@@ -16,7 +16,6 @@
* 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 com.rammelkast.anticheatreloaded.util;
import java.util.Arrays;
@@ -142,7 +141,7 @@ public class VersionUtil {
}
return 0;
}
if (player.hasPotionEffect(type))
return player.getPotionEffect(type).getAmplifier() + 1;
return 0;