0.5.7 some cool bug fixes and code prettier
This commit is contained in:
parent
7b11d86487
commit
8a11e28c8b
132 changed files with 6360 additions and 5227 deletions
|
@ -1,41 +1,40 @@
|
|||
package me.unurled.raxen.manager.server;
|
||||
|
||||
import java.util.HashMap;
|
||||
import me.unurled.raxen.Raxen;
|
||||
import me.unurled.raxen.components.dungeons.Dungeon;
|
||||
import me.unurled.raxen.components.dungeons.Gate;
|
||||
import me.unurled.raxen.components.dungeons.types.forest.ForestDungeon;
|
||||
import org.bukkit.Location;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class DungeonsManager {
|
||||
|
||||
private Raxen main;
|
||||
private Raxen main;
|
||||
|
||||
private HashMap<Gate, Location> gates = new HashMap<>();
|
||||
private HashMap<Gate, Location> gates = new HashMap<>();
|
||||
|
||||
private HashMap<Gate, Dungeon> dungeons = new HashMap<>();
|
||||
private HashMap<Gate, Dungeon> dungeons = new HashMap<>();
|
||||
|
||||
public DungeonsManager(Raxen main) {
|
||||
this.main = main;
|
||||
registerDungeons();
|
||||
}
|
||||
public DungeonsManager(Raxen main) {
|
||||
this.main = main;
|
||||
registerDungeons();
|
||||
}
|
||||
|
||||
/**
|
||||
* register/add all made dungeon to the available plugin list
|
||||
*/
|
||||
public void registerDungeons() {
|
||||
ForestDungeon forestDungeon = new ForestDungeon();
|
||||
dungeons.put(forestDungeon.getGate(), forestDungeon);
|
||||
gates.put(forestDungeon.getGate(), forestDungeon.getGate().getLoc());
|
||||
/*
|
||||
/**
|
||||
* register/add all made dungeon to the available plugin list
|
||||
*/
|
||||
public void registerDungeons() {
|
||||
ForestDungeon forestDungeon = new ForestDungeon();
|
||||
dungeons.put(forestDungeon.getGate(), forestDungeon);
|
||||
gates.put(forestDungeon.getGate(), forestDungeon.getGate().getLoc());
|
||||
/*
|
||||
for (String s : dungeons.keySet()) {
|
||||
main.getManager().getWorldManager().loadWorld(dungeons.get(s).getName());
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
public HashMap getGates() {
|
||||
return gates;
|
||||
}
|
||||
public HashMap<Gate, Location> getGates() {
|
||||
return gates;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue