Bug Fix and Cleanup

This commit is contained in:
MattBDev
2016-04-28 16:38:51 -04:00
parent 669359cd37
commit 8f3d35bca3
68 changed files with 780 additions and 880 deletions

View File

@@ -253,7 +253,7 @@ public abstract class Command {
return;
}
if (page == 0 && totalPages != 0) { // Next
new PlotMessage().text("<-").color("$3").text(" | ").color("$3").text("->").color("$1").command(baseCommand + " " + (page + 2))
new PlotMessage().text("<-").color("$3").text(" | ").color("$3").text("->").color("$1").command(baseCommand + " " + (0 + 2))
.text(C.CLICKABLE.s()).color("$2").send(player);
return;
}

View File

@@ -4,8 +4,14 @@ import com.intellectualcrafters.plot.commands.RequiredType;
public interface CommandCaller {
/**
* Send the player a message.
*/
void sendMessage(String message);
/**
* Check the player's permissions. Will be cached if permission caching is enabled.
*/
boolean hasPermission(String perm);
RequiredType getSuperCaller();

View File

@@ -123,11 +123,10 @@ public class WESubscriber {
if (maskextent != null) {
wrapper = new ExtentWrapper(maskextent);
field.set(maskextent, history);
event.setExtent(wrapper);
} else {
wrapper = new ExtentWrapper(history);
event.setExtent(wrapper);
}
event.setExtent(wrapper);
field.set(history, reorder);
field.set(reorder, new ProcessedWEExtent(world, mask, max, new FastModeExtent(worldObj, true), wrapper));
}