mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Whitespace fixes, reactivated command adjustments
This commit is contained in:
parent
d2968b1976
commit
7f7178957a
@ -29,6 +29,7 @@ import org.spout.api.geo.World;
|
|||||||
import org.spout.api.geo.cuboid.Block;
|
import org.spout.api.geo.cuboid.Block;
|
||||||
import org.spout.api.geo.discrete.Point;
|
import org.spout.api.geo.discrete.Point;
|
||||||
import org.spout.api.material.block.BlockFace;
|
import org.spout.api.material.block.BlockFace;
|
||||||
|
import org.spout.api.math.MathHelper;
|
||||||
import org.spout.api.math.Vector3;
|
import org.spout.api.math.Vector3;
|
||||||
import org.spout.api.player.Player;
|
import org.spout.api.player.Player;
|
||||||
|
|
||||||
@ -85,9 +86,9 @@ public class SpoutUtil {
|
|||||||
public static Point center(Point loc) {
|
public static Point center(Point loc) {
|
||||||
return new Point(
|
return new Point(
|
||||||
loc.getWorld(),
|
loc.getWorld(),
|
||||||
loc.getX() + 0.5F,
|
MathHelper.floor(loc.getX()) + 0.5F,
|
||||||
loc.getY() + 0.5F,
|
MathHelper.floor(loc.getY()) + 0.5F,
|
||||||
loc.getZ() + 0.5F
|
MathHelper.floor(loc.getZ()) + 0.5F
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,9 +81,14 @@ public class WorldEditPlayerListener implements Listener {
|
|||||||
*
|
*
|
||||||
* @param event Relevant event details
|
* @param event Relevant event details
|
||||||
*/
|
*/
|
||||||
//@EventHandler(order = Order.EARLY)
|
@EventHandler(order = Order.EARLY)
|
||||||
public void onPlayerCommandPreprocess(PreCommandEvent event) {
|
public void onPlayerCommandPreprocess(PreCommandEvent event) {
|
||||||
|
|
||||||
|
if (event.getMessage().startsWith("nowe:")) {
|
||||||
|
event.setMessage(event.getMessage().substring(5));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String[] split = event.getMessage().split(" ");
|
String[] split = event.getMessage().split(" ");
|
||||||
|
|
||||||
if (split.length > 0) {
|
if (split.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user