mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
Raid Commands Creation
This commit is contained in:
1 parent
d1a46ba2e0
commit
e65bae6f67
3 files changed
+190
-52
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package me.ShermansWorld.AlathraWar.data;
|
||||
|
||||
import com.palmergames.bukkit.towny.object.Town;
|
||||
import me.ShermansWorld.AlathraWar.Main;
|
||||
import org.bukkit.configuration.Configuration;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
@@ -58,4 +59,25 @@ public class RaidData {
|
||||
this.plugin.saveResource("raids.yml", false);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO raid time check
|
||||
/**
|
||||
* @Isaac this is for getting when the last raid was on a town
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public int whenTownLastRaided() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//TODO raid validity check
|
||||
/**
|
||||
* @Isaac this is for getting if a town can be raided, return (-1, 0, 1) based on status
|
||||
* (24 hours town cooldown, 6 hour nation cooldown, valid time to raid)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public int isValidRaid(Town t) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user