add vehicle events 😱
This commit is contained in:
@@ -8,6 +8,8 @@ import cf.sobrooms.events.enchantment.EnchantItem;
|
|||||||
import cf.sobrooms.events.enchantment.PrepareItemEnchant;
|
import cf.sobrooms.events.enchantment.PrepareItemEnchant;
|
||||||
import cf.sobrooms.events.player.*;
|
import cf.sobrooms.events.player.*;
|
||||||
import cf.sobrooms.events.server.ServerLoad;
|
import cf.sobrooms.events.server.ServerLoad;
|
||||||
|
import cf.sobrooms.events.vehicle.VehicleEnter;
|
||||||
|
import cf.sobrooms.events.vehicle.VehicleExit;
|
||||||
import cf.sobrooms.events.weather.LightningStrike;
|
import cf.sobrooms.events.weather.LightningStrike;
|
||||||
import cf.sobrooms.events.weather.ThunderChange;
|
import cf.sobrooms.events.weather.ThunderChange;
|
||||||
import cf.sobrooms.events.weather.WeatherChange;
|
import cf.sobrooms.events.weather.WeatherChange;
|
||||||
@@ -207,6 +209,8 @@ public class Main extends JavaPlugin {
|
|||||||
WorldLoad worldLoad = new WorldLoad();
|
WorldLoad worldLoad = new WorldLoad();
|
||||||
WorldSave worldSave = new WorldSave();
|
WorldSave worldSave = new WorldSave();
|
||||||
WorldUnload worldUnload = new WorldUnload();
|
WorldUnload worldUnload = new WorldUnload();
|
||||||
|
VehicleEnter vehicleEnter = new VehicleEnter();
|
||||||
|
VehicleExit vehicleExit = new VehicleExit();
|
||||||
getServer().getPluginManager().registerEvents(playerChat, this);
|
getServer().getPluginManager().registerEvents(playerChat, this);
|
||||||
getServer().getPluginManager().registerEvents(playerCommandPreprocess, this);
|
getServer().getPluginManager().registerEvents(playerCommandPreprocess, this);
|
||||||
getServer().getPluginManager().registerEvents(enchantItemEvent, this);
|
getServer().getPluginManager().registerEvents(enchantItemEvent, this);
|
||||||
@@ -220,5 +224,7 @@ public class Main extends JavaPlugin {
|
|||||||
getServer().getPluginManager().registerEvents(worldLoad, this);
|
getServer().getPluginManager().registerEvents(worldLoad, this);
|
||||||
getServer().getPluginManager().registerEvents(worldSave, this);
|
getServer().getPluginManager().registerEvents(worldSave, this);
|
||||||
getServer().getPluginManager().registerEvents(worldUnload, this);
|
getServer().getPluginManager().registerEvents(worldUnload, this);
|
||||||
|
getServer().getPluginManager().registerEvents(vehicleEnter, this);
|
||||||
|
getServer().getPluginManager().registerEvents(vehicleExit, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user