File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
ChallengesManager/Required Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >ch.luca008</groupId >
88 <artifactId >Challenges</artifactId >
9- <version >1.1.4 </version >
9+ <version >1.1.5 </version >
1010
1111 <name >Uni-Challenges</name >
1212 <description >Custom challenges for Skyblock</description >
2222 <!-- For the SpigotApi dependency -->
2323 <repository >
2424 <id >dev-mc</id >
25- <url >https://mvn.luca-dc.ch/nexus/content/repositories /dev-mc/</url >
25+ <url >https://mvn.luca-dc.ch/repository /dev-mc/</url >
2626 </repository >
2727 <!-- For the github vault dependency -->
2828 <repository >
5858 <dependency >
5959 <groupId >ch.luca008</groupId >
6060 <artifactId >SpigotApi</artifactId >
61- <version >2.1</version >
61+ <version >2.1.3 </version >
6262 <scope >provided</scope >
6363 </dependency >
6464 </dependencies >
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public class Challenges extends JavaPlugin implements Listener {
4242 private Economy economy ;
4343 private Reset reset ;
4444 private SessionManager editor ;
45- public final static String clientVersion = "1.2 .0" ;
45+ public final static String clientVersion = "1.3 .0" ;
4646
4747 private void commandsRegister (){
4848 this .getCommand ("challenge" ).setExecutor (new ChallengeCommand ());
@@ -64,6 +64,7 @@ public void onEnable() {
6464 commandsRegister ();
6565 eventsRegister ();
6666 challenges .load ();
67+ areChallengesEnabled = getStateFile ();
6768 lang = Lang .getInstance (new File (getDataFolder (),"Lang" ));
6869 inventoryManager = new ChallengesInventory ();
6970 setupEconomy ();
Original file line number Diff line number Diff line change @@ -187,7 +187,8 @@ public JSONObject toJson(){
187187 }
188188 public String toLore (UniPlayer player ){
189189 if (count <=0 )return "" ;
190- return "§f -§b " + count + " §a" +Challenges .getGlobalConfig ().getCurrencyName ()+(delete ?"\n " +player .getChallengeMessage ("Challenge-Item-Required-Others-Money-Delete" ):"" );
190+ String warning = "\n " + player .getChallengeMessage ("Challenge-Item-Required-Others-Money" + (delete ? "-Delete" : "" ));
191+ return "§f -§b " + count + " §a" +Challenges .getGlobalConfig ().getCurrencyName ()+warning ;
191192 }
192193 @ Override
193194 public String toString () {
@@ -270,7 +271,8 @@ public JSONObject toJson(){
270271 }
271272 public String toLore (UniPlayer player ){
272273 if (count <=0 )return "" ;
273- return "§f -§b " + count + " §a" +player .getChallengeMessage (type .getLangKey ())+(delete ?"\n " +player .getChallengeMessage ("Challenge-Item-Required-Others-Exp-Delete" ):"" );
274+ String warning = "\n " + player .getChallengeMessage ("Challenge-Item-Required-Others-Exp" + (delete ? "-Delete" : "" ));
275+ return "§f -§b " + count + " §a" +player .getChallengeMessage (type .getLangKey ())+warning ;
274276 }
275277 public UUID getUuid (){
276278 return uuid ;
Original file line number Diff line number Diff line change 1717import org .bukkit .command .CommandExecutor ;
1818import org .bukkit .command .CommandSender ;
1919import org .bukkit .entity .Player ;
20- import org .bukkit .entity .Skeleton ;
2120
2221import java .util .List ;
2322import java .util .Map ;
You can’t perform that action at this time.
0 commit comments