Beasty_Buildes submitted a new resource: ABScoreBoard - A simple but good scoreboard with papi Read more about this resource...
Beasty_Buildes updated ABScoreBoard with a new update entry: Console Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Config edit! Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Update Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Reload Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Forgot something Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: No Permission Message Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Got ride of something Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Config, Toggle / UnToggle Scoreboard Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: More lines Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Commands Read the rest of this update entry...
I suggest changing the untoggle/toggle command to a /abtoggle that way it won't require typing two different commands. Spoiler: Code Code (Text): package me.antpro5.scoreboard.commands; import me.antpro5.scoreboard.Main; import me.antpro5.scoreboard.api.SBManager; import me.antpro5.scoreboard.utils.Utils; import java.util.ArrayList; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.scoreboard.DisplaySlot; public class Toggle implements CommandExecutor { private Main plugin; public Toggle(Main plugin) { this.plugin = plugin; } ArrayList<Player> toggle = new ArrayList(); public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("abtoggle") && sender.hasPermission("abtoggle.use")) { Player player = (Player)sender; if (toggle.contains(player)) { toggle.remove(player); player.sendMessage(Utils.chat(this.plugin.getConfig().getString("UnToggle_Message"))); player.setScoreboard(SBManager.setScoreBoard(null, player)); return false; } else { toggle.add(player); player.getScoreboard().clearSlot(DisplaySlot.SIDEBAR); player.sendMessage(Utils.chat(this.plugin.getConfig().getString("Toggle_Message"))); return true; } } return false; } }
Beasty_Buildes updated ABScoreBoard with a new update entry: Config edit! Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Toggle command Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Forgot something Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Forgot something Read the rest of this update entry...
Beasty_Buildes updated ABScoreBoard with a new update entry: Redid all of the Commands Read the rest of this update entry...