-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
84 additions
and
75 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LinkShop: | ||
incorrectID: "&4That is not a proper ID" | ||
notChest: "&4The block you are looking at is not a chest" | ||
incorrectUsage: "&4Incorrect Usage: /linkshop (1-5) (ShopID)" | ||
success: "&aSuccessfully linked" | ||
UnlinkShop: | ||
incorrectUsage: "&4Incorrect Usage: /linkshop (1-5) (ShopID)" | ||
success: "&aSuccessfully unlinked" |
Binary file modified
BIN
-348 Bytes
(90%)
out/production/DisplayShopAddon/me/bugzigus/DisplayShopAddon/Commands/LinkCommand.class
Binary file not shown.
Binary file modified
BIN
-99 Bytes
(94%)
out/production/DisplayShopAddon/me/bugzigus/DisplayShopAddon/Commands/RemoveCommand.class
Binary file not shown.
Binary file modified
BIN
+149 Bytes
(110%)
out/production/DisplayShopAddon/me/bugzigus/DisplayShopAddon/DisplayShopAddon.class
Binary file not shown.
Binary file added
BIN
+2 KB
out/production/DisplayShopAddon/me/bugzigus/DisplayShopAddon/ReadLang.class
Binary file not shown.
Binary file modified
BIN
-169 Bytes
(96%)
out/production/DisplayShopAddon/me/bugzigus/DisplayShopAddon/ReadLocations.class
Binary file not shown.
Binary file modified
BIN
-1.63 KB
(83%)
out/production/DisplayShopAddon/me/bugzigus/DisplayShopAddon/YmlFIle.class
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LinkShop: | ||
incorrectID: "&4That is not a proper ID" | ||
notChest: "&4The block you are looking at is not a chest" | ||
incorrectUsage: "&4Incorrect Usage: /linkshop (1-5) (ShopID)" | ||
success: "&aSuccessfully linked" | ||
UnlinkShop: | ||
incorrectUsage: "&4Incorrect Usage: /linkshop (1-5) (ShopID)" | ||
success: "&aSuccessfully unlinked" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package me.bugzigus.DisplayShopAddon; | ||
|
||
import org.bukkit.ChatColor; | ||
import org.bukkit.configuration.file.FileConfiguration; | ||
import org.bukkit.configuration.file.YamlConfiguration; | ||
import org.bukkit.plugin.Plugin; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class ReadLang { | ||
private Map<String, String> langMap = new HashMap<String, String>(); | ||
Plugin plugin = DisplayShopAddon.pluginInstance(); | ||
|
||
File directory = new File(plugin.getDataFolder().getPath()); | ||
File f = new File(directory + File.separator +"lang.yml"); | ||
|
||
String[] langOptions; | ||
|
||
public void saveDefault(){ | ||
|
||
if (!f.exists()) { | ||
|
||
FileConfiguration langFile = YamlConfiguration.loadConfiguration(f); | ||
|
||
plugin.saveResource("lang.yml", false); | ||
|
||
} | ||
|
||
} | ||
|
||
public String readFiles(String name) { | ||
|
||
FileConfiguration langFile = YamlConfiguration.loadConfiguration(f); | ||
|
||
String lang = langFile.getString(name); | ||
|
||
lang = ChatColor.translateAlternateColorCodes('&', lang); | ||
|
||
return lang; | ||
} | ||
|
||
} |
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
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