mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
TP on create
This commit is contained in:
parent
cca66f1f32
commit
7937d8d041
@ -121,6 +121,19 @@ public class CommandIrisCreate extends MortarCommand
|
|||||||
O<Boolean> b = new O<Boolean>();
|
O<Boolean> b = new O<Boolean>();
|
||||||
b.set(true);
|
b.set(true);
|
||||||
|
|
||||||
|
if(sender.isPlayer())
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sender.player().teleport(world.getSpawnLocation());
|
||||||
|
}
|
||||||
|
|
||||||
|
catch(Throwable e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(pregen > 0)
|
if(pregen > 0)
|
||||||
{
|
{
|
||||||
b.set(false);
|
b.set(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user