mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 22:13:12 +00:00
Started changing to PlotPlayer
This commit is contained in:
parent
e6c3c143b6
commit
89fcb6b600
8 changed files with 158 additions and 111 deletions
|
@ -20,14 +20,13 @@
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.intellectualcrafters.plot.commands;
|
||||
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.object.PlotPlayer;
|
||||
import com.intellectualcrafters.plot.util.bukkit.PlayerFunctions;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.util.bukkit.PlayerFunctions;
|
||||
|
||||
/**
|
||||
* SubCommand class
|
||||
*
|
||||
|
@ -127,7 +126,7 @@ public abstract class SubCommand {
|
|||
*
|
||||
* @return true on success, false on failure
|
||||
*/
|
||||
public abstract boolean execute(final Player plr, final String... args);
|
||||
public abstract boolean execute(final PlotPlayer plr, final String... args);
|
||||
|
||||
/**
|
||||
* Execute the command as console
|
||||
|
@ -148,7 +147,7 @@ public abstract class SubCommand {
|
|||
* @see com.intellectualcrafters.plot.util.bukkit.PlayerFunctions#sendMessage(org.bukkit.entity.Player,
|
||||
* com.intellectualcrafters.plot.config.C, String...)
|
||||
*/
|
||||
public boolean sendMessage(final Player plr, final C c, final String... args) {
|
||||
public boolean sendMessage(final PlotPlayer plr, final C c, final String... args) {
|
||||
PlayerFunctions.sendMessage(plr, c, args);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue