Compare commits
4 Commits
version2.1
...
version2.1
Author | SHA1 | Date | |
---|---|---|---|
3481c2a10f | |||
a319f793b2 | |||
6373f98894 | |||
e49c5c0acb |
@ -1,12 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
<classpathentry kind="lib" path="/Users/tobi/Code/craftbukkit-1.4.5-R1.0.jar" sourcepath="/Users/tobi/Code/Bukkit">
|
||||||
<classpathentry kind="lib" path="/Users/tobi/Code/craftbukkit-1.4.5-R1.0.jar" sourcepath="//Users/tobi/Code/Bukkit">
|
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="source_encoding" value="UTF-8"/>
|
<attribute name="source_encoding" value="UTF-8"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="lib" path="/Users/tobi/Code/Vault.jar"/>
|
<classpathentry kind="lib" path="/Users/tobi/Code/Vault.jar"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: Craft Inc. Gates
|
name: Craft Inc. Gates
|
||||||
version: 2.1.0-beta
|
version: 2.1.0
|
||||||
description: A plugin to create gates for fast traveling.
|
description: A plugin to create gates for fast traveling.
|
||||||
softdepend: [Vault]
|
softdepend: [Vault]
|
||||||
author: tomco, s1m0ne
|
author: tomco, s1m0ne
|
||||||
|
@ -31,12 +31,8 @@ public class CommandSetExit extends BaseCommand
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
System.out.println(gate.getExit());
|
|
||||||
|
|
||||||
gate.setExit(player.getLocation());
|
gate.setExit(player.getLocation());
|
||||||
sendMessage(ChatColor.GREEN + "The exit of gate '" + gate.getId() + "' is now where you stand.");
|
sendMessage(ChatColor.GREEN + "The exit of gate '" + gate.getId() + "' is now where you stand.");
|
||||||
|
|
||||||
System.out.println(gate.getExit());
|
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
sendMessage(ChatColor.RED + "Setting the exit for the gate failed! See server log for more information");
|
sendMessage(ChatColor.RED + "Setting the exit for the gate failed! See server log for more information");
|
||||||
|
@ -12,7 +12,6 @@ import org.bukkit.event.entity.EntityPortalEnterEvent;
|
|||||||
import org.bukkit.event.player.PlayerPortalEvent;
|
import org.bukkit.event.player.PlayerPortalEvent;
|
||||||
|
|
||||||
import de.craftinc.gates.Gate;
|
import de.craftinc.gates.Gate;
|
||||||
import de.craftinc.gates.Plugin;
|
|
||||||
import de.craftinc.gates.util.GateUtil;
|
import de.craftinc.gates.util.GateUtil;
|
||||||
|
|
||||||
|
|
||||||
@ -76,10 +75,7 @@ public class PluginPortalListener implements Listener
|
|||||||
eventLocation.setY(closestGate.getLocation().getY());
|
eventLocation.setY(closestGate.getLocation().getY());
|
||||||
|
|
||||||
double distToClosestGate = closestGate.getLocation().distance(eventLocation);
|
double distToClosestGate = closestGate.getLocation().distance(eventLocation);
|
||||||
|
|
||||||
Plugin.log("closest gate: " + closestGate.getId());
|
|
||||||
Plugin.log("distance: " + distToClosestGate);
|
|
||||||
|
|
||||||
if (distToClosestGate < 2.0) {
|
if (distToClosestGate < 2.0) {
|
||||||
this.currentGateAtEvent.put(player, closestGate);
|
this.currentGateAtEvent.put(player, closestGate);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user