Skip to content

Commit 8633a68

Browse files
BuildToolsBuildTools
authored andcommitted
Merge remote-tracking branch 'origin/master'
2 parents ee6f8d5 + 59ebc4b commit 8633a68

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# AdminTools3
2+
[![CodeFactor](https://www.codefactor.io/repository/github/weiiswurstdev/admintools3/badge)](https://www.codefactor.io/repository/github/weiiswurstdev/admintools3)
3+
24
A general purpose Craftbukkit+ Plugin
35

46
* [BukkitDEV](https://dev.bukkit.org/projects/admintoolsde)

src/main/java/dev/wwst/admintools3/AdminToolsCommand.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ private void executeModule(Player p, String moduleName, String[] args) {
9696
if(args.length >= 1) {
9797
if(m.needsPlayer())
9898
for(Player x : Bukkit.getOnlinePlayers()) {
99-
if(x.getName().equalsIgnoreCase(args[0])) {other = x; break;}
99+
if(x.getName().equalsIgnoreCase(args[0])) {
100+
other = x;
101+
break;
102+
}
100103
}
101104
else if(m.needsWorld()) {
102105
w = Bukkit.getWorld(args[0]);

src/main/java/dev/wwst/admintools3/PlayerInfoCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private Player getPlayerByName(String name) {
9999
private int getMaxHealth(Player player) {
100100
try {
101101
return (int) player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();
102-
} catch(Exception exception) { ;
102+
} catch(Exception exception) {
103103
return (int) player.getMaxHealth();
104104
}
105105
}

0 commit comments

Comments
 (0)