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:
sekwah41 2013-11-06 21:14:16 +00:00
parent afd508b20b
commit dbabcdb27d
4 changed files with 34 additions and 18 deletions

View File

@ -11,7 +11,7 @@ import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory; import org.bukkit.inventory.PlayerInventory;
import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.inventory.meta.ItemMeta;
import com.sekwah.advancedportals.portalcontrolls.Portals; import com.sekwah.advancedportals.portalcontrolls.Portal;
public class AdvancedPortalsCommand implements CommandExecutor { public class AdvancedPortalsCommand implements CommandExecutor {
@ -65,7 +65,7 @@ public class AdvancedPortalsCommand implements CommandExecutor {
triggerBlockId = Material.getMaterial("PORTAL"); triggerBlockId = Material.getMaterial("PORTAL");
} }
} }
Portals.CreatePortal(player, false, triggerBlockId); Portal.create(player, null, null, "portalname");
} }
else{ else{
player.sendMessage("§c[§7AdvancedPortals§c] The points you have selected need to be in the same world!"); player.sendMessage("§c[§7AdvancedPortals§c] The points you have selected need to be in the same world!");

View File

@ -3,13 +3,13 @@ package com.sekwah.advancedportals.destinations;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.entity.Player; 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){
} }

View File

@ -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){
}
}

View File

@ -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
}
}