Skip to content

Commit

Permalink
fix: fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Jun 24, 2024
1 parent 277bd04 commit f9e0363
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/remote/lse/PlotCeaft-Fixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,10 @@ logger.info("Author: engsr6982");
mc.listen(
"onEntityExplode",
(source, pos, radius, maxResistance, isDestroy, isFire) => {
logger.debug("onEntityExplode");
if (pos.dimid != PLAPI.getPlotWorldDimid()) return;
if (isDestroy || isFire) {
const pps = PLAPI.getPlotPosByPos(pos);
if (!pps.isValid()) {
// 地皮外的爆炸
return false;
}
return false;
}
}
);

mc.listen("onDropItem", (player, item) => {
const pps = PLAPI.getPlotPosByPos(player.pos);
const level = PLAPI.getPlayerPermission(player.uuid, pps.getPlotID);

if (pps.isValid()) {
if (level == 0) return false; // 地皮内
}
});

0 comments on commit f9e0363

Please sign in to comment.