mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2024-11-16 01:08:46 +00:00
add default Permission and Modify Tp Effect...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
01f8e10e4f
commit
ac6b4b27fc
@ -7,6 +7,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Effect;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
@ -148,7 +149,7 @@ public class TeleportControl {
|
||||
public void run() {
|
||||
while (System.currentTimeMillis() < timeoutmark) {
|
||||
if (player.isOnline()) {
|
||||
EffectUtil.run(player.getLocation(), lrng);
|
||||
EffectUtil.run(player.getLocation(), lrng, Effect.MOBSPAWNER_FLAMES, Effect.PORTAL);
|
||||
}
|
||||
lrng++;
|
||||
try {
|
||||
|
@ -20,15 +20,16 @@ public class EffectUtil {
|
||||
* @param range
|
||||
* - 粒子的数量
|
||||
*/
|
||||
public static void run(Location loc, long range) {
|
||||
public static void run(Location loc, long range, Effect... effects) {
|
||||
try {
|
||||
int i;
|
||||
if (range < 2) {
|
||||
range = 2;
|
||||
}
|
||||
for (i = 0; i < range; i++) {
|
||||
loc.getWorld().playEffect(loc, Effect.LAVA_POP, 10, 100);
|
||||
loc.getWorld().playEffect(loc, Effect.PORTAL, 10, 100);
|
||||
for (Effect effect : effects) {
|
||||
loc.getWorld().playEffect(loc, effect, 10, 100);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
@ -73,7 +73,6 @@ public class VersionChecker implements Listener {
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
plugin.getLogger().warning("版本更新检查失败!");
|
||||
}
|
||||
}
|
||||
|
@ -78,5 +78,7 @@ permissions:
|
||||
se.tpaccept: true
|
||||
se.tpdeny: true
|
||||
se.back: true
|
||||
se.sethome: true
|
||||
se.home: true
|
||||
se.suicide: true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user