Skip to content

Commit 06a2740

Browse files
author
Steven Mattera
committed
Added Comments
1 parent f436dbf commit 06a2740

File tree

8 files changed

+96
-2
lines changed

8 files changed

+96
-2
lines changed

src/com/stevenmattera/MobBounty/Commands/mb.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty.Commands;
27

38
import org.bukkit.command.Command;
@@ -13,10 +18,18 @@
1318
public class mb implements CommandExecutor {
1419
private final Main _plugin;
1520

21+
// ----
22+
// ==== Constructor Method ====
23+
// ----
24+
1625
public mb(Main plugin) {
1726
_plugin = plugin;
1827
}
1928

29+
// ----
30+
// ==== CommandExecutor Methods ====
31+
// ----
32+
2033
@Override
2134
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
2235
if (_plugin.Permissions != null && _plugin.Permissions.has((Player) sender, "MobBounty.mb")) {
@@ -32,6 +45,10 @@ else if (_plugin.Permissions == null) {
3245
return true;
3346
}
3447

48+
// ----
49+
// ==== Private Methods ====
50+
// ----
51+
3552
private void mbCommand(CommandSender sender) {
3653
double multiplier = _plugin.getConfig().getWorldMultiplier(((Player) sender).getWorld());
3754

src/com/stevenmattera/MobBounty/Commands/mbmulti.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty.Commands;
27

38
import org.bukkit.World;
@@ -9,14 +14,21 @@
914
import com.stevenmattera.MobBounty.Main;
1015
import com.stevenmattera.MobBounty.Utils.Colors;
1116

12-
1317
public class mbmulti implements CommandExecutor {
1418
private final Main _plugin;
1519

20+
// ----
21+
// ==== Constructor Methods ====
22+
// ----
23+
1624
public mbmulti(Main plugin) {
1725
_plugin = plugin;
1826
}
1927

28+
// ----
29+
// ==== CommandExecutor Methods ====
30+
// ----
31+
2032
@Override
2133
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
2234
if (_plugin.Permissions != null && _plugin.Permissions.has((Player) sender, "MobBounty.mbmulti")) {
@@ -32,6 +44,10 @@ else if (_plugin.Permissions == null && sender.isOp()) {
3244
return true;
3345
}
3446

47+
// ----
48+
// ==== Private Methods ====
49+
// ----
50+
3551
private void mbmultiCommand(CommandSender sender, String label, String[] args) {
3652
if (args.length == 2) {
3753
if (args[1].matches("((-|\\+)?[0-9]+(\\.[0-9]+)?)+")) {

src/com/stevenmattera/MobBounty/Commands/mbreward.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty.Commands;
27

38
import org.bukkit.command.Command;
@@ -9,14 +14,21 @@
914
import com.stevenmattera.MobBounty.Main;
1015
import com.stevenmattera.MobBounty.Utils.Colors;
1116

12-
1317
public class mbreward implements CommandExecutor {
1418
private final Main _plugin;
1519

20+
// ----
21+
// ==== Constructor Methods ====
22+
// ----
23+
1624
public mbreward(Main plugin) {
1725
_plugin = plugin;
1826
}
1927

28+
// ----
29+
// ==== CommandExecutor Methods ====
30+
// ----
31+
2032
@Override
2133
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
2234
if (_plugin.Permissions != null && _plugin.Permissions.has((Player) sender, "MobBounty.mbreward")) {
@@ -32,6 +44,10 @@ else if (_plugin.Permissions == null && sender.isOp()) {
3244
return true;
3345
}
3446

47+
// ----
48+
// ==== Private Methods ====
49+
// ----
50+
3551
private void mbrewardCommand(CommandSender sender, String label, String[] args) {
3652
if (args.length == 2) {
3753
if (args[1].matches("((-|\\+)?[0-9]+(\\.[0-9]+)?)+")) {

src/com/stevenmattera/MobBounty/Config.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty;
27

38
import java.io.File;
@@ -33,6 +38,10 @@ public class Config {
3338
private Map<String, Double> _worldMultiplier = null;
3439
private Map<String, Double> _rewards = null;
3540

41+
// ----
42+
// ==== Constructor Method ====
43+
// ----
44+
3645
public Config(Main plugin) {
3746
if (_plugin == null) _plugin = plugin;
3847

@@ -46,6 +55,10 @@ public Config(Main plugin) {
4655
else this.loadConfig();
4756
}
4857

58+
// ----
59+
// ==== Private Methods ====
60+
// ----
61+
4962
private void createConfig() {
5063
if (_config != null) {
5164
List<World> worlds = _plugin.getServer().getWorlds();
@@ -108,6 +121,10 @@ private void createConfig() {
108121
}
109122
}
110123

124+
// ----
125+
// ==== Public Methods ====
126+
// ----
127+
111128
public void loadConfig() {
112129
if (_config != null) {
113130
_config.load();

src/com/stevenmattera/MobBounty/Listeners/DeathListener.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty.Listeners;
27

38
import java.util.HashMap;

src/com/stevenmattera/MobBounty/Listeners/PluginListener.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty.Listeners;
27

38
import org.bukkit.event.server.PluginEvent;
@@ -11,10 +16,18 @@
1116
public class PluginListener extends ServerListener {
1217
private static Main _plugin = null;
1318

19+
// ----
20+
// ==== Constructor Method ====
21+
// ----
22+
1423
public PluginListener(Main plugin) {
1524
if (_plugin == null) _plugin = plugin;
1625
}
1726

27+
// ----
28+
// ==== Public Method ====
29+
// ----
30+
1831
public void onPluginEnabled(PluginEvent event) {
1932
if (_plugin != null) {
2033
if (_plugin.iConomy == null) {

src/com/stevenmattera/MobBounty/Main.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty;
27

38
import java.util.logging.Logger;

src/com/stevenmattera/MobBounty/Utils/Colors.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// MobBounty
2+
// Version 1.0
3+
//
4+
// Created By Steven Mattera
5+
16
package com.stevenmattera.MobBounty.Utils;
27

38
public class Colors {

0 commit comments

Comments
 (0)