This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from heyimblake/dev
Merge #1 and Fixes to master
- Loading branch information
Showing
22 changed files
with
65 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ target/ | |
.idea/ | ||
*.iml | ||
*.class | ||
|
||
.classpath | ||
.project | ||
.settings/ | ||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/CachedPlayerManager.java
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/AnnotatedHiveRanksSubCommand.java
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/HiveRanksSubCommandExecutor.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/HiveRanksSubCommandHandler.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/subcommands/GetSubCommand.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/subcommands/MyRankSubCommand.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/subcommands/ResetSubCommand.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/commands/subcommands/SetSubCommand.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/listeners/PlayerJoinListener.java
100644 → 100755
Empty file.
Empty file modified
0
src/main/java/me/heyimblake/hiveranks/runnables/UpdateCacheRunnable.java
100644 → 100755
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/me/heyimblake/hiveranks/util/ServerSound.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package me.heyimblake.hiveranks.util; | ||
|
||
import org.bukkit.Sound; | ||
|
||
import me.heyimblake.hiveranks.HiveRanks; | ||
|
||
public enum ServerSound { | ||
LEVEL_UP("LEVEL_UP", "ENTITY_PLAYER_LEVELUP"), | ||
NOTE_BASS("NOTE_BASS", "BLOCK_NOTE_BASS"); | ||
|
||
private String name18; | ||
private String name19; | ||
|
||
ServerSound(String name18, String name19){ | ||
this.name18 = name18.toUpperCase(); | ||
this.name19 = name19.toUpperCase(); | ||
} | ||
|
||
/** | ||
* Gets the name of the current ServerSound based on the server's version. | ||
* | ||
* @return current sound version name | ||
*/ | ||
private String getName() { | ||
if (HiveRanks.getInstance().getServerVersion() >= 9) { | ||
return this.name19; | ||
} | ||
return this.name18; | ||
} | ||
|
||
/** | ||
* Gets the Sound object of the specified ServerSound. | ||
* | ||
* @return sound | ||
*/ | ||
public Sound getSound(){ | ||
return Sound.valueOf(getName()); | ||
} | ||
} |
Empty file.
Empty file.
74d8368
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the server is 1.7?
74d8368
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roccodev Not supporting 1.7. 1.8 or higher only.