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