mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 02:25:49 +01:00
Renamed the files to it looked nicer and also started some of the portal
manipulation code, could probably be used in the api too.
This commit is contained in:
parent
afd508b20b
commit
dbabcdb27d
@ -11,7 +11,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.PlayerInventory;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
|
||||
import com.sekwah.advancedportals.portalcontrolls.Portals;
|
||||
import com.sekwah.advancedportals.portalcontrolls.Portal;
|
||||
|
||||
public class AdvancedPortalsCommand implements CommandExecutor {
|
||||
|
||||
@ -65,7 +65,7 @@ public class AdvancedPortalsCommand implements CommandExecutor {
|
||||
triggerBlockId = Material.getMaterial("PORTAL");
|
||||
}
|
||||
}
|
||||
Portals.CreatePortal(player, false, triggerBlockId);
|
||||
Portal.create(player, null, null, "portalname");
|
||||
}
|
||||
else{
|
||||
player.sendMessage("§c[§7AdvancedPortals§c] The points you have selected need to be in the same world!");
|
||||
|
@ -3,13 +3,13 @@ package com.sekwah.advancedportals.destinations;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Destinations {
|
||||
public class Destination {
|
||||
|
||||
public void create(Player creator, Location pos1, String name){
|
||||
public void create(Player creator, Location location, String name){
|
||||
|
||||
}
|
||||
|
||||
public void move(Player creator, Location pos1, String name){
|
||||
public void move(Player creator, Location location, String name){
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
package com.sekwah.advancedportals.portalcontrolls;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Portal {
|
||||
|
||||
public static void create(Player player, Material triggerBlockId, Location pos1, Location pos2 , String name) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public static void create(Player player, Location pos1, Location pos2, String name) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public static void redefine(Player player, Location pos1, Location pos2, String name){
|
||||
|
||||
}
|
||||
|
||||
public static void remove(Player player, String name){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package com.sekwah.advancedportals.portalcontrolls;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Portals {
|
||||
|
||||
public static void CreatePortal(Player player, boolean hastriggerblock, Material triggerBlockId) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user