-Nerf Daily Challenge Loot, making passive daily rewards a lot less

valuable while awarding players that actually do them actively.
-Added !roll bot command.
This commit is contained in:
sigonasr2 2017-09-18 09:58:56 -05:00
parent 9874633e69
commit 64901cd703
5 changed files with 19 additions and 11 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: TwosideKeeper name: TwosideKeeper
main: sig.plugin.TwosideKeeper.TwosideKeeper main: sig.plugin.TwosideKeeper.TwosideKeeper
version: 3.12.1b version: 3.12.1b1
loadbefore: [aPlugin] loadbefore: [aPlugin]
commands: commands:
money: money:

View File

@ -132,28 +132,25 @@ public class ChallengeReward {
switch (rank) { switch (rank) {
case 1:{ case 1:{
return new ItemStack[]{ return new ItemStack[]{
Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,5), Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,2),
Artifact.createArtifactItem(ArtifactItem.ARTIFACT_ESSENCE,8), Artifact.createArtifactItem(ArtifactItem.ARTIFACT_ESSENCE,2),
Artifact.createArtifactItem(ArtifactItem.ARTIFACT_CORE,4), Artifact.createArtifactItem(ArtifactItem.ARTIFACT_CORE,1),
Artifact.createArtifactItem(ArtifactItem.ARTIFACT_BASE,2),
}; };
} }
case 2:{ case 2:{
return new ItemStack[]{ return new ItemStack[]{
Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,3), Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,1),
Artifact.createArtifactItem(ArtifactItem.ARTIFACT_ESSENCE,4), Artifact.createArtifactItem(ArtifactItem.ARTIFACT_ESSENCE,1),
Artifact.createArtifactItem(ArtifactItem.ARTIFACT_CORE,2),
Artifact.createArtifactItem(ArtifactItem.ARTIFACT_BASE,1),
}; };
} }
case 3:{ case 3:{
return new ItemStack[]{ return new ItemStack[]{
Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,3), Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,1),
}; };
} }
case 438190894:{ case 438190894:{
return new ItemStack[]{ return new ItemStack[]{
Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,5), Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE,2),
}; };
} }
default:{ default:{

View File

@ -354,6 +354,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
public static List<LavaPlume> lavaplume_list = new ArrayList<LavaPlume>(); public static List<LavaPlume> lavaplume_list = new ArrayList<LavaPlume>();
public static long LAST_SPECIAL_SPAWN = 0; public static long LAST_SPECIAL_SPAWN = 0;
public static long LAST_WEEKLY_RESET = 0; public static long LAST_WEEKLY_RESET = 0;
public static List<Integer> recentnumbers = new ArrayList<Integer>();
public static CustomItem HUNTERS_COMPASS; public static CustomItem HUNTERS_COMPASS;
public static CustomItem UPGRADE_SHARD; public static CustomItem UPGRADE_SHARD;
@ -1395,6 +1396,15 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
} }
} }
},"daily"); },"daily");
aPlugin.API.addCommand(args->{
int attempts=1000;
int selectednumb = (int)(Math.random()*101);
while (attempts>0 && recentnumbers.contains(selectednumb)) {
selectednumb = (int)(Math.random()*101);
attempts--;
}
recentnumbers.add(selectednumb);
},"roll");
}, 90); }, 90);
} }

View File

@ -156,6 +156,7 @@ final public class runServerHeartbeat implements Runnable {
//MOTD: "Thanks for playing on Sig's Minecraft!\n*bCheck out http://z-gamers.net/mc for update info!\n*aReport any bugs you find at http://zgamers.domain.com/mc/" //MOTD: "Thanks for playing on Sig's Minecraft!\n*bCheck out http://z-gamers.net/mc for update info!\n*aReport any bugs you find at http://zgamers.domain.com/mc/"
ServerHeartbeat.getMOTD(); ServerHeartbeat.getMOTD();
ServerHeartbeat.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('*', TwosideKeeper.MOTD)); ServerHeartbeat.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('*', TwosideKeeper.MOTD));
TwosideKeeper.recentnumbers.clear();
TwosideKeeper.habitat_data.increaseHabitationLevels(); TwosideKeeper.habitat_data.increaseHabitationLevels();
TwosideKeeper.habitat_data.startinglocs.clear(); TwosideKeeper.habitat_data.startinglocs.clear();
for (int i=0;i<Bukkit.getOnlinePlayers().size();i++) { for (int i=0;i<Bukkit.getOnlinePlayers().size();i++) {