diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 50816c1a24..6670f987bc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,6 +30,10 @@ If you open ForgeEssentials in your IDE, you must turn on annotation processing, - Under `Annotation Processors`, add this fully qualified name: `org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor` - Run `Build > Rebuild Project` - Right click `.apt_generated` directory and select `Mark as > Source directory` + +### FALLBACK + - If none of the above options work for your IDEs, you can use do the following. + - Add `/misc/forgeessentials-1.7.10-annonations.jar` to your build path. # Notes 1. Please consider squashing all commits before initially submitting pull requests diff --git a/build.gradle b/build.gradle index d33fe0b929..7c9899d538 100644 --- a/build.gradle +++ b/build.gradle @@ -410,6 +410,42 @@ reobf { } } +/************************************************************ + * Configure Annotations for IDEs Jar + */ + +// util.jar +task Annotations(type: Jar) { + classifier = "annotations" + appendix = project.minecraft.version + + from(sourceSets.utils.output) { + include "com/forgeessentials/playerlogger/entity/**" + exclude "com/forgeessentials/playerlogger/entity/Action.class" + exclude "com/forgeessentials/playerlogger/entity/Action01Block\$ActionBlockType.class" + exclude "com/forgeessentials/playerlogger/entity/Action01Block.class" + exclude "com/forgeessentials/playerlogger/entity/Action02Command.class" + exclude "com/forgeessentials/playerlogger/entity/Action03PlayerEvent\$PlayerEventType.class" + exclude "com/forgeessentials/playerlogger/entity/Action03PlayerEvent.class" + exclude "com/forgeessentials/playerlogger/entity/Action04PlayerPosition.class" + exclude "com/forgeessentials/playerlogger/entity/BlockData.class" + exclude "com/forgeessentials/playerlogger/entity/PlayerData.class" + exclude "com/forgeessentials/playerlogger/entity/WorldData.class" + + doLast { + delete fileTree(dir:'misc', include: '**annotations.jar') + copy { + from files("build/libs/") { + include "**annotations.jar" + } + into "misc" + rename 'forgeessentials-'+project.minecraft.version+"-"+project.version+'-annotations.jar', 'forgeessentials-'+project.minecraft.version+'-annotations.jar' + } + delete fileTree(dir:'build/libs/', include: '**annotations.jar') + } + } +} + /************************************************************ * Others */ @@ -418,6 +454,7 @@ reobf { artifacts { archives deobfJar archives clientJar + archives Annotations } task wrapper(type: Wrapper) { diff --git a/misc/forgeessentials-1.7.10-annotations.jar b/misc/forgeessentials-1.7.10-annotations.jar new file mode 100644 index 0000000000..e0dbdf0433 Binary files /dev/null and b/misc/forgeessentials-1.7.10-annotations.jar differ diff --git a/src/main/java/com/forgeessentials/chat/command/CommandTimedMessages.java b/src/main/java/com/forgeessentials/chat/command/CommandTimedMessages.java index 6de00f7327..7b3be4c5b3 100644 --- a/src/main/java/com/forgeessentials/chat/command/CommandTimedMessages.java +++ b/src/main/java/com/forgeessentials/chat/command/CommandTimedMessages.java @@ -95,7 +95,7 @@ public void parse(CommandParserArgs arguments) if (arguments.isEmpty()) { arguments.confirm("/tm add : Add a message"); - arguments.confirm("/tm list: Delete a message"); + arguments.confirm("/tm list: List all messages"); arguments.confirm("/tm delete : Delete a message"); arguments.confirm("/tm send : Send a message"); arguments.confirm("/tm interval : Set message interval"); @@ -103,7 +103,7 @@ public void parse(CommandParserArgs arguments) return; } - arguments.tabComplete("add", "list", "delete", "interval", "random"); + arguments.tabComplete("add", "list", "delete", "send", "interval", "shuffle"); String sumCmd = arguments.remove().toLowerCase(); switch (sumCmd) {