update
This commit is contained in:
@@ -7,6 +7,7 @@ import org.bukkit.command.Command;
|
|||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.metadata.FixedMetadataValue;
|
||||||
|
|
||||||
public class SpectateCommand implements CommandExecutor {
|
public class SpectateCommand implements CommandExecutor {
|
||||||
private final Main plugin;
|
private final Main plugin;
|
||||||
@@ -40,6 +41,7 @@ public class SpectateCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.setMetadata("IsSpectating", new FixedMetadataValue(plugin, true));
|
||||||
player.setGameMode(GameMode.SPECTATOR);
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
player.teleport(target);
|
player.teleport(target);
|
||||||
player.sendMessage("§7[§9§lInsane§e§lDuels§7] §7» §aMostantól §e" + target.getName() + "§a párbaját figyeled!");
|
player.sendMessage("§7[§9§lInsane§e§lDuels§7] §7» §aMostantól §e" + target.getName() + "§a párbaját figyeled!");
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public class DuelEndListener implements Listener {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
meta.addEffect(effect);
|
meta.addEffect(effect);
|
||||||
meta.setPower(1);
|
meta.setPower((int) 0.5);
|
||||||
firework.setFireworkMeta(meta);
|
firework.setFireworkMeta(meta);
|
||||||
}, delay);
|
}, delay);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
package lnmpro.Listeners;
|
|
||||||
|
|
||||||
import org.bukkit.GameMode;
|
|
||||||
import org.bukkit.event.EventHandler;
|
|
||||||
import org.bukkit.event.Listener;
|
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
|
||||||
|
|
||||||
public class SpectatorListener implements Listener {
|
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void onSpectatorTeleport(PlayerTeleportEvent event) {
|
|
||||||
if (event.getPlayer().getGameMode() == GameMode.SPECTATOR && event.getCause() == TeleportCause.SPECTATE) {
|
|
||||||
event.setCancelled(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
BIN
target/PvPCore-1.0.jar
Normal file
BIN
target/PvPCore-1.0.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/AcceptDuelCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/AcceptDuelCommand.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/ConnectCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/ConnectCommand.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/CreateKitCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/CreateKitCommand.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/DenyDuelCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/DenyDuelCommand.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/DuelCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/DuelCommand.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/EditKitCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/EditKitCommand.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/LeaveCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/LeaveCommand.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Commands/SpectateCommand.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Commands/SpectateCommand.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Listeners/DuelEndListener.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Listeners/DuelEndListener.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Listeners/FreezeListener.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Listeners/FreezeListener.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Listeners/KitListener$1.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Listeners/KitListener$1.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Listeners/KitListener.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Listeners/KitListener.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Listeners/PlayerListener.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Listeners/PlayerListener.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Main$1.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Main$1.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Main.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Main.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/Database$QueryResult.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/Database$QueryResult.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/Database$WhereClause.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/Database$WhereClause.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/Database.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/Database.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/Kits$1.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/Kits$1.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/Kits.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/Kits.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/SchematicManager.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/SchematicManager.class
Normal file
Binary file not shown.
BIN
target/classes/hu/jgj52/pvpcore/Utils/WorldReset.class
Normal file
BIN
target/classes/hu/jgj52/pvpcore/Utils/WorldReset.class
Normal file
Binary file not shown.
BIN
target/original-PvPCore-1.0.jar
Normal file
BIN
target/original-PvPCore-1.0.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user