Skip to content

Commit

Permalink
HEROs Mod is now open source.
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Apr 5, 2017
1 parent 0c5663c commit 2bbc873
Show file tree
Hide file tree
Showing 278 changed files with 39,857 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bin
obj
.vs
App.config
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: generic

notifications:
email: false

branches:
only:
- master

# Environment variables
env:
global:
- MODNAME: HEROsMod
- Deploy: no

script:
- pwd
- ls
- git tag
- cd $TRAVIS_BUILD_DIR
- ls
- export version=`curl http://javid.ddns.net/tModLoader/tools/latestmodversionsimple.php?modname=$MODNAME`
- echo "Mod Browser version is $version"
- export gitVersion=`git describe --abbrev=0 --tags`
- echo "git version is $gitVersion"
- if [[ "$version" = "$gitVersion" ]]; then echo "Version does match, no need to push release"; Deploy=no; else echo "Version does not match, need to push release"; git config --global user.email "[email protected]"; git config --global user.name "Travis CI"; git tag $version -a -m "TravisCI Autogenerated Release"; git push --quiet https://[email protected]/JavidPack/BossChecklist $version > /dev/null 2>&1; Deploy=yes; fi
- echo $Deploy

before_deploy:
- wget -O $MODNAME.tmod http://javid.ddns.net/tModLoader/download.php?Down=mods/$MODNAME.tmod
- ls

# should only deploy if the script doesn't fail, meaning we have a new .tmod file to publish
deploy:
provider: releases
api_key: $GH_REPO_TOKEN
file: "$MODNAME.tmod"
skip_cleanup: true
on:
tags: false
condition: "$Deploy = yes"
23 changes: 23 additions & 0 deletions Commands/AdminInstructionsCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using HEROsMod.HEROsModNetwork;
using System;
using Terraria.ModLoader;

namespace HEROsMod.Commands
{
class AdminInstructionsCommand : ModCommand
{
public override CommandType Type => CommandType.Console;

public override string Command => "HEROsAdmin";

public override string Description => "Informs you how to become Admin in HERO's Mod";

public override void Action(CommandCaller caller, string input, string[] args)
{
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("Create an account, login, and type /auth " + Network.AuthCode + " to become Admin.");
Console.ResetColor();
}
}
}

Loading

0 comments on commit 2bbc873

Please sign in to comment.