-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back Feature is compelete, clean Teleporting code, added Teleporting …
…class for teleporting in future.
- Loading branch information
Showing
7 changed files
with
80 additions
and
30 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/top/whitecola/coteleport/effects/AbstractTeleporting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package top.whitecola.coteleport.effects; | ||
|
||
import de.slikey.effectlib.effect.CircleEffect; | ||
import org.bukkit.Location; | ||
import org.bukkit.entity.Entity; | ||
import top.whitecola.coteleport.wrapper.AbstractRequest; | ||
import top.whitecola.coteleport.wrapper.PlayerNoticer; | ||
|
||
public abstract class AbstractTeleporting { | ||
|
||
public void teleportToSomeplace(Entity entity, Location to){ | ||
|
||
} | ||
|
||
|
||
public Thread tpaRequestHandle(AbstractRequest request, PlayerNoticer noticer){ | ||
|
||
return null; | ||
} | ||
|
||
public static CircleEffect playTeleportingParticle(Location location){ | ||
|
||
return null; | ||
} | ||
|
||
|
||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/top/whitecola/coteleport/effects/Teleporting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package top.whitecola.coteleport.effects; | ||
|
||
import org.bukkit.Location; | ||
import org.bukkit.entity.Entity; | ||
import top.whitecola.coteleport.wrapper.AbstractRequest; | ||
import top.whitecola.coteleport.wrapper.PlayerNoticer; | ||
|
||
public class Teleporting extends AbstractTeleporting{ | ||
@Override | ||
public void teleportToSomeplace(Entity entity, Location to) { | ||
super.teleportToSomeplace(entity, to); | ||
} | ||
|
||
|
||
@Override | ||
public Thread tpaRequestHandle(AbstractRequest request, PlayerNoticer noticer) { | ||
return super.tpaRequestHandle(request, noticer); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters