32 lines
907 B
Java
32 lines
907 B
Java
package com.boydti.fawe.bukkit.v0;
|
|
|
|
import com.boydti.fawe.logging.BlocksHubHook;
|
|
import com.boydti.fawe.object.EditSessionWrapper;
|
|
import com.boydti.fawe.object.FawePlayer;
|
|
import com.sk89q.worldedit.EditSession;
|
|
import com.sk89q.worldedit.extent.Extent;
|
|
import com.sk89q.worldedit.history.changeset.ChangeSet;
|
|
|
|
public class BukkitEditSessionWrapper_0 extends EditSessionWrapper {
|
|
|
|
private BlocksHubHook hook;
|
|
|
|
public BukkitEditSessionWrapper_0(EditSession session) {
|
|
super(session);
|
|
try {
|
|
this.hook = new BlocksHubHook();
|
|
} catch (Throwable e) {
|
|
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public Extent getHistoryExtent(Extent parent, ChangeSet set, FawePlayer<?> player) {
|
|
if (hook != null) {
|
|
return hook.getLoggingExtent(parent, set, player);
|
|
}
|
|
return super.getHistoryExtent(parent, set, player);
|
|
}
|
|
|
|
}
|