From 16fe0c95ae757b1fc9c0fe600bcba93639e27bf6 Mon Sep 17 00:00:00 2001 From: stephen <138625055+stephendotgg@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:53:58 +0000 Subject: [PATCH] minor improvements --- Writerside/flyte.tree | 15 ++++++--------- Writerside/topics/File-Extensions.topic | 2 +- Writerside/topics/Getting-Started.topic | 3 ++- Writerside/topics/SQL.md | 2 +- Writerside/topics/Scheduler.topic | 8 +++----- Writerside/topics/Ternary-Operator.topic | 10 +++++----- 6 files changed, 18 insertions(+), 22 deletions(-) diff --git a/Writerside/flyte.tree b/Writerside/flyte.tree index 88d2d1d..c9a2726 100644 --- a/Writerside/flyte.tree +++ b/Writerside/flyte.tree @@ -46,25 +46,22 @@ - - - - - + - + + + + + - - - diff --git a/Writerside/topics/File-Extensions.topic b/Writerside/topics/File-Extensions.topic index ea05093..85c8e0e 100644 --- a/Writerside/topics/File-Extensions.topic +++ b/Writerside/topics/File-Extensions.topic @@ -19,7 +19,7 @@

- This is particularly useful when used in parallel with our other open-source library, resource-pack-deploy, + This is particularly useful when used in parallel with our other open-source library, resource-pack-deploy, so you can get the hash of the latest resource pack file, and use it to reset a client's cached version of your resource pack if there are any differences.

diff --git a/Writerside/topics/Getting-Started.topic b/Writerside/topics/Getting-Started.topic index 7e8e543..34a12f0 100644 --- a/Writerside/topics/Getting-Started.topic +++ b/Writerside/topics/Getting-Started.topic @@ -24,7 +24,8 @@
  • JDK 21
  • - + +

    Add the Flyte repository and Twilight dependency to your build tool of choice.

    diff --git a/Writerside/topics/SQL.md b/Writerside/topics/SQL.md index 210e3f0..babe021 100644 --- a/Writerside/topics/SQL.md +++ b/Writerside/topics/SQL.md @@ -1,6 +1,6 @@ # SQL (MySQL, Postgres) -#### Getting Started +#### Getting started To get started you need to create an instance of the SQL Wrapper like so ```kotlin val db = SQLWrapper(url = "your db url", user="user", password="password") diff --git a/Writerside/topics/Scheduler.topic b/Writerside/topics/Scheduler.topic index 7e50517..4a6b005 100644 --- a/Writerside/topics/Scheduler.topic +++ b/Writerside/topics/Scheduler.topic @@ -5,10 +5,6 @@ xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd" title="Scheduler" id="Scheduler"> - -

    Twilight's repeat conflicting with Kotlin's repeat? As an alternative, you can use repeatingTask.

    -
    -

    Bukkit's built-in scheduler is tedious at best, so Twilight takes advantage of beautiful Kotlin syntax to make it easier to write, as well as adding a custom TimeUnit to save you calculating ticks. @@ -87,5 +83,7 @@ } - + +

    Twilight's repeat conflicting with Kotlin's repeat? As an alternative, you can use repeatingTask.

    + \ No newline at end of file diff --git a/Writerside/topics/Ternary-Operator.topic b/Writerside/topics/Ternary-Operator.topic index 45353d6..c8f63b1 100644 --- a/Writerside/topics/Ternary-Operator.topic +++ b/Writerside/topics/Ternary-Operator.topic @@ -5,14 +5,14 @@ xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd" title="Ternary Operator" id="Ternary-Operator"> - -

    This doesn't yet work for evaluating functions either side of the ternary though, we plan to figure this - out in the near future.

    -
    -

    There is a basic ternary operator implementation added which can be used like so:

    val test = false println(test then "yes" or "no") + + +

    This doesn't yet work for evaluating functions either side of the ternary though, we plan to figure this + out in the near future.

    +
    \ No newline at end of file