mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-27 00:15:23 +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)
|
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);
|
player.sendMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,35 +9,17 @@ import net.ess3.api.IUser;
|
|||||||
public abstract class EssentialsSettingsCommand extends EssentialsCommand
|
public abstract class EssentialsSettingsCommand extends EssentialsCommand
|
||||||
{
|
{
|
||||||
|
|
||||||
protected void informSender(final CommandSender sender, final boolean value, final IUser player)
|
abstract protected void informSender(final CommandSender sender, final boolean value, final IUser player);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void informPlayer(final IUser player)
|
abstract protected void informPlayer(final IUser player);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean canToggleOthers(final IUser user)
|
abstract protected boolean canToggleOthers(final IUser user);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean isExempt(final CommandSender sender, final IUser player)
|
abstract protected boolean isExempt(final CommandSender sender, final IUser player);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean canMatch(final String arg)
|
abstract protected boolean canMatch(final String arg);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void playerMatch(final IUser player, final String arg) throws NotEnoughArgumentsException
|
abstract protected void playerMatch(final IUser player, final String arg) throws NotEnoughArgumentsException;
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean toggleOfflinePlayers()
|
protected boolean toggleOfflinePlayers()
|
||||||
{
|
{
|
||||||
|
@@ -6,15 +6,9 @@ import net.ess3.api.IUser;
|
|||||||
public abstract class EssentialsToggleCommand extends EssentialsSettingsCommand
|
public abstract class EssentialsToggleCommand extends EssentialsSettingsCommand
|
||||||
{
|
{
|
||||||
|
|
||||||
protected void setValue(final IUser player, final boolean value)
|
abstract protected void setValue(final IUser player, final boolean value);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean getValue(final IUser player)
|
abstract protected boolean getValue(final IUser player);
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean canMatch(final String arg)
|
protected boolean canMatch(final String arg)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user