Skip to content

Commit

Permalink
Fixed plugin ID and error when running the plugin on API5
Browse files Browse the repository at this point in the history
  • Loading branch information
Eufranio committed Sep 8, 2017
1 parent adf94e2 commit 365930f
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
26 changes: 13 additions & 13 deletions .idea/modules/PixelBuilt-Quests_main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules/PixelBuilt-Quests_test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion PixelBuilt-Quests.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="PixelBuilt-Quests" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="online.pixelbuilt.pbquests" external.system.module.version="1.0" type="JAVA_MODULE" version="4">
<module external.linked.project.id="PixelBuilt-Quests" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="online.pixelbuilt.pbquests" external.system.module.version="1.2" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'online.pixelbuilt.pbquests'
version = '1.0'
version = '1.2'
description = 'Quests plugin made for the PixelBuilt server'
mainClassName = 'online.pixelbuilt.pbquests.PixelBuiltQuests'
compileJava.options.encoding = 'UTF-8'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Created by Frani on 05/09/2017.
*/

@Plugin(name = "PixelBuilt Quests",
id = "pbquests",
@Plugin(name = "PixelBuiltQuests",
id = "pixelbuilt-quests",
authors = { "Eufranio" })
public class PixelBuiltQuests {

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/online/pixelbuilt/pbquests/utils/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.spongepowered.api.block.BlockType;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.data.DataContainer;
import org.spongepowered.api.data.MemoryDataContainer;
import org.spongepowered.api.data.persistence.DataFormats;
import org.spongepowered.api.data.persistence.DataTranslators;
import org.spongepowered.api.item.ItemType;
Expand Down Expand Up @@ -61,7 +62,7 @@ public void load() {
// Loading data
if(!dataFile.toFile().exists()) {
try (OutputStream os = Files.newOutputStream(dataFile)) {
DataFormats.NBT.writeTo(os, DataContainer.createNew());
DataFormats.NBT.writeTo(os, new MemoryDataContainer());
} catch (IOException e) { e.printStackTrace(); }
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/pbquests/PBQuests.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ triggers=[
]

quests {
default {
1 {
default { // Quest line
1 { // Quest ID
requiredItem="minecraft:map"
denyMovement: true
progressRequired: 1
Expand Down

0 comments on commit 365930f

Please sign in to comment.