Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename 'yaml data' scripts to just 'data' scripts
- Loading branch information
1 parent
932b457
commit f444039
Showing
7 changed files
with
52 additions
and
52 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
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
44 changes: 44 additions & 0 deletions
44
src/main/java/com/denizenscript/denizencore/scripts/containers/core/DataScriptContainer.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,44 @@ | ||
package com.denizenscript.denizencore.scripts.containers.core; | ||
|
||
import com.denizenscript.denizencore.scripts.containers.ScriptContainer; | ||
import com.denizenscript.denizencore.utilities.Deprecations; | ||
import com.denizenscript.denizencore.utilities.YamlConfiguration; | ||
|
||
public class DataScriptContainer extends ScriptContainer { | ||
|
||
// <--[language] | ||
// @name Data Script Containers | ||
// @group Script Container System | ||
// @description | ||
// Data script containers are generic script containers for information that will be referenced by other scripts. | ||
// | ||
// No part of a 'data' script container is ever run as commands. | ||
// | ||
// There are no required keys. | ||
// | ||
// Generally, data is read using the <@link tag ScriptTag.data_key> tag. | ||
// | ||
// <code> | ||
// Data_Script_Name: | ||
// | ||
// type: data | ||
// | ||
// # Your data here | ||
// some key: some value | ||
// some list key: | ||
// - some list value | ||
// some map key: | ||
// some subkey: some value | ||
// | ||
// </code> | ||
// | ||
// --> | ||
|
||
public DataScriptContainer(YamlConfiguration configurationSection, String scriptContainerName) { | ||
super(configurationSection, scriptContainerName); | ||
canRunScripts = false; | ||
if (configurationSection.get("type").toString().equalsIgnoreCase("yaml data")) { | ||
Deprecations.yamlDataContainer.warn(this); | ||
} | ||
} | ||
} |
36 changes: 0 additions & 36 deletions
36
...n/java/com/denizenscript/denizencore/scripts/containers/core/YamlDataScriptContainer.java
This file was deleted.
Oops, something went wrong.
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