mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-26 16:04:27 +02:00
Make abstract methods abstract
This commit is contained in:
@@ -37,7 +37,7 @@ public class Commandgamemode extends EssentialsSettingsCommand
|
||||
|
||||
protected void informPlayer(final IUser player)
|
||||
{
|
||||
final String message = _("flyMode", getValue(player).toString().toLowerCase(Locale.ENGLISH), player.getPlayer().getDisplayName());
|
||||
final String message = _("gameMode", getValue(player).toString().toLowerCase(Locale.ENGLISH), player.getPlayer().getDisplayName());
|
||||
player.sendMessage(message);
|
||||
}
|
||||
|
||||
|
@@ -9,35 +9,17 @@ import net.ess3.api.IUser;
|
||||
public abstract class EssentialsSettingsCommand extends EssentialsCommand
|
||||
{
|
||||
|
||||
protected void informSender(final CommandSender sender, final boolean value, final IUser player)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected void informSender(final CommandSender sender, final boolean value, final IUser player);
|
||||
|
||||
protected void informPlayer(final IUser player)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected void informPlayer(final IUser player);
|
||||
|
||||
protected boolean canToggleOthers(final IUser user)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected boolean canToggleOthers(final IUser user);
|
||||
|
||||
protected boolean isExempt(final CommandSender sender, final IUser player)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected boolean isExempt(final CommandSender sender, final IUser player);
|
||||
|
||||
protected boolean canMatch(final String arg)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected boolean canMatch(final String arg);
|
||||
|
||||
protected void playerMatch(final IUser player, final String arg) throws NotEnoughArgumentsException
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected void playerMatch(final IUser player, final String arg) throws NotEnoughArgumentsException;
|
||||
|
||||
protected boolean toggleOfflinePlayers()
|
||||
{
|
||||
|
@@ -6,15 +6,9 @@ import net.ess3.api.IUser;
|
||||
public abstract class EssentialsToggleCommand extends EssentialsSettingsCommand
|
||||
{
|
||||
|
||||
protected void setValue(final IUser player, final boolean value)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected void setValue(final IUser player, final boolean value);
|
||||
|
||||
protected boolean getValue(final IUser player)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
abstract protected boolean getValue(final IUser player);
|
||||
|
||||
protected boolean canMatch(final String arg)
|
||||
{
|
||||
|
Reference in New Issue
Block a user