Hello (<-- two spaces)
World
Hello
World
import co.aikar.commands.BaseCommand | |
import co.aikar.commands.JDACommandEvent | |
import co.aikar.commands.annotation.CommandAlias | |
import co.aikar.commands.annotation.Dependency | |
import net.dv8tion.jda.core.JDA | |
import net.dv8tion.jda.core.entities.Guild | |
class BaseCommands : BaseCommand() { | |
@Dependency |
package me.minidigger.test.test; | |
/* | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
import: | |
ch.njol.skript.log.SkriptLogger | |
ch.njol.skript.ScriptLoader | |
ch.njol.skript.config.SectionNode | |
ch.njol.skript.lang.Condition | |
ch.njol.skript.Skript | |
ch.njol.skript.config.validate.SectionValidator | |
ch.njol.skript.lang.SkriptParser | |
com.btk5h.skriptmirror.Util as MirrorUtil | |
java.util.Arrays |
package com.comphenix.example; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.Server; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.EventPriority; | |
import org.bukkit.event.Listener; |
Hello (<-- two spaces)
World
Hello
World
After this tutorial you are able to code a cool bot with many commands and a level system.
Did you ever want to write your own bot but you think you are to bad for it or you don't have motivation? Stop thinking that way. Writing discord bots using discord.js is like, really, really, easy if you know some javascript basics.
In this tutorial we will use some ES6 and ES2017, which makes javascript more powerful. If you never heard of ES6/ES2017, i'll explain some stuff if i use it. Found a mistake? Just open an issue or fork and pull.
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.2</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> |
package net.zyuiop.scoreboard; | |
import net.minecraft.server.v1_8_R3.*; | |
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer; | |
import org.bukkit.entity.Player; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.List; |
package com.mrzalty.scoreboards; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer; | |
import org.bukkit.entity.Player; | |
import net.minecraft.server.v1_11_R1.IScoreboardCriteria; |
This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:
*nix
based command prompt (but not the default Windows Command Prompt!)cd ~/.ssh
. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\
on Windows).ssh
folder, there should be these two files: id_rsa
and id_rsa.pub
. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls
to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa
and id_rsa.pub
in order for Git, GitHub, and BitBucket to recognize them by default.ssh-keygen -t rsa -C "your_email@example.com"
. Th