Skip to content

Commit

Permalink
small fixes and some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Apr 11, 2023
1 parent fcc40ff commit a1c0d97
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Bug report about: Create a report to help us improve title: "[BUG]"
name: 'Bug report about: Create a report to help us improve title: "[BUG]"'
labels: ''
assignees: ''

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Feature request about: Suggest an idea for this project title: ''
name: 'Feature request about: Suggest an idea for this project title:'
labels: ''
assignees: ''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public void onEnable() {
new Metrics(this, 8700);

// Scheduled TPS checker
Executors.newScheduledThreadPool(1).scheduleAtFixedRate(() -> {
new Thread(() -> tps = getServer().getTPS()[0]).start();
}, 1, 1, TimeUnit.SECONDS);
Executors.newScheduledThreadPool(1).scheduleAtFixedRate(
() -> new Thread(() -> tps = getServer().getTPS()[0]).start(), 1, 1, TimeUnit.SECONDS
);

logger.info("Done.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.scheduler.BukkitScheduler;

import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,8 @@
import me.moomoo.anarchyexploitfixes.config.Config;
import me.moomoo.anarchyexploitfixes.modules.AnarchyExploitFixesModule;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.*;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.ProjectileLaunchEvent;

import java.awt.*;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.UUID;

public class SnowballExploit implements AnarchyExploitFixesModule, Runnable {

Expand Down

0 comments on commit a1c0d97

Please sign in to comment.