Skip to content

Commit

Permalink
Update to fix some longstanding issues, such as the restart timers. +…
Browse files Browse the repository at this point in the history
… Copyright update
  • Loading branch information
dries007 committed Mar 9, 2016
1 parent abe01b7 commit 48ee01f
Show file tree
Hide file tree
Showing 75 changed files with 851 additions and 758 deletions.
24 changes: 12 additions & 12 deletions LICENSE-HEADER.txt
@@ -1,15 +1,15 @@
D3Backend
Copyright (C) 2015 Dries007 & Double Door Development
D3Backend
Copyright (C) 2015 - 2016 Dries007 & Double Door Development

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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
GNU Affero General Public License for more details.
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
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
8 changes: 1 addition & 7 deletions src/main/java/com/sk89q/intake/context/CommandContext.java
Expand Up @@ -21,13 +21,7 @@

import com.sk89q.intake.CommandException;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;

public class CommandContext {

Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/sk89q/intake/dispatcher/Dispatcher.java
Expand Up @@ -22,7 +22,6 @@
import com.sk89q.intake.CommandCallable;
import com.sk89q.intake.CommandMapping;


import java.util.Collection;
import java.util.Set;

Expand Down
18 changes: 2 additions & 16 deletions src/main/java/com/sk89q/intake/dispatcher/SimpleDispatcher.java
Expand Up @@ -20,26 +20,12 @@
package com.sk89q.intake.dispatcher;

import com.google.common.base.Joiner;
import com.sk89q.intake.CommandCallable;
import com.sk89q.intake.CommandException;
import com.sk89q.intake.CommandMapping;
import com.sk89q.intake.ImmutableCommandMapping;
import com.sk89q.intake.InvalidUsageException;
import com.sk89q.intake.InvocationCommandException;
import com.sk89q.intake.SettableDescription;
import com.sk89q.intake.SettableParameter;
import com.sk89q.intake.*;
import com.sk89q.intake.context.CommandContext;
import com.sk89q.intake.context.CommandLocals;
import com.sk89q.intake.util.auth.AuthorizationException;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;

/**
* A simple implementation of {@link Dispatcher}.
Expand Down
Expand Up @@ -40,7 +40,6 @@
import com.sk89q.intake.util.auth.Authorizer;
import com.sk89q.intake.util.auth.NullAuthorizer;


import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
Expand Down
Expand Up @@ -19,8 +19,8 @@

package com.sk89q.intake.parametric.argument;

import com.sk89q.intake.parametric.MissingParameterException;
import com.sk89q.intake.context.CommandContext;
import com.sk89q.intake.parametric.MissingParameterException;
import com.sk89q.intake.parametric.ParameterException;
import com.sk89q.intake.parametric.ParametricBuilder;

Expand Down
Expand Up @@ -19,8 +19,8 @@

package com.sk89q.intake.parametric.argument;

import com.sk89q.intake.parametric.MissingParameterException;
import com.sk89q.intake.context.CommandContext;
import com.sk89q.intake.parametric.MissingParameterException;
import com.sk89q.intake.parametric.ParameterException;
import com.sk89q.intake.util.StringUtils;

Expand Down
Expand Up @@ -20,10 +20,10 @@
package com.sk89q.intake.parametric.binding;

import com.sk89q.intake.CommandException;
import com.sk89q.intake.parametric.argument.ArgumentStack;
import com.sk89q.intake.parametric.ParameterData;
import com.sk89q.intake.parametric.ParameterException;
import com.sk89q.intake.parametric.ParametricBuilder;
import com.sk89q.intake.parametric.argument.ArgumentStack;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Type;
Expand Down
Expand Up @@ -20,11 +20,11 @@
package com.sk89q.intake.parametric.binding;

import com.sk89q.intake.CommandException;
import com.sk89q.intake.parametric.argument.ArgumentStack;
import com.sk89q.intake.parametric.handler.ExceptionConverter;
import com.sk89q.intake.parametric.ParameterData;
import com.sk89q.intake.parametric.ParameterException;
import com.sk89q.intake.parametric.ParametricBuilder;
import com.sk89q.intake.parametric.argument.ArgumentStack;
import com.sk89q.intake.parametric.handler.ExceptionConverter;

import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
Expand Down
Expand Up @@ -19,11 +19,7 @@

package com.sk89q.intake.parametric.binding;

import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.*;

/**
* Denotes a match of a binding.
Expand Down
Expand Up @@ -25,7 +25,6 @@
import com.sk89q.intake.parametric.annotation.Validate;
import com.sk89q.intake.parametric.argument.ArgumentStack;


import java.lang.annotation.Annotation;

/**
Expand Down
Expand Up @@ -22,12 +22,12 @@
import com.sk89q.intake.Command;
import com.sk89q.intake.CommandException;
import com.sk89q.intake.SettableDescription;
import com.sk89q.intake.context.CommandContext;
import com.sk89q.intake.context.CommandLocals;
import com.sk89q.intake.parametric.MissingParameterException;
import com.sk89q.intake.parametric.UnconsumedParameterException;
import com.sk89q.intake.context.CommandContext;
import com.sk89q.intake.parametric.ParameterData;
import com.sk89q.intake.parametric.ParameterException;
import com.sk89q.intake.parametric.UnconsumedParameterException;
import com.sk89q.intake.parametric.binding.BindingBehavior;

import java.lang.reflect.Method;
Expand Down
Expand Up @@ -21,7 +21,6 @@

import com.sk89q.intake.CommandMapping;


import java.util.Comparator;
import java.util.regex.Pattern;

Expand Down
26 changes: 13 additions & 13 deletions src/main/java/net/doubledoordev/backend/Main.java
@@ -1,19 +1,19 @@
/*
* D3Backend
* Copyright (C) 2015 Dries007 & Double Door Development
* D3Backend
* Copyright (C) 2015 - 2016 Dries007 & Double Door Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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
* GNU Affero General Public License for more details.
* 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
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.doubledoordev.backend;
Expand Down Expand Up @@ -114,7 +114,7 @@ public static void main(String[] args) throws Exception
}

// todo: get JDK and classload tools.jar + native library; if not jdk: disable warmroast
LOGGER.info("\n\n D3Backend Copyright (C) 2015 Dries007 & Double Door Development\n" +
LOGGER.info("\n\n D3Backend Copyright (C) 2015 - 2016 Dries007 & Double Door Development\n" +
" This program comes with ABSOLUTELY NO WARRANTY;\n" +
" This is free software, and you are welcome to redistribute it under certain conditions;\n" +
" Type `license' for details.\n\n");
Expand Down
41 changes: 41 additions & 0 deletions src/main/java/net/doubledoordev/backend/TestMain.java
@@ -0,0 +1,41 @@
/*
* D3Backend
* Copyright (C) 2015 - 2016 Dries007 & Double Door Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.doubledoordev.backend;

import net.doubledoordev.backend.server.query.MCQuery;
import net.doubledoordev.backend.server.query.QueryResponse;

public class TestMain
{
public static void main(String[] args) throws Exception
{
MCQuery query = new MCQuery("vps2.dries007.net", 25505);
QueryResponse queryResponse;
while (true)
{
queryResponse = query.fullStat();
if (queryResponse != null) System.out.println(queryResponse.toString());
else System.out.println("null");
synchronized (Thread.currentThread())
{
Thread.currentThread().wait(100);
}
}
}
}
24 changes: 12 additions & 12 deletions src/main/java/net/doubledoordev/backend/commands/Bindings.java
@@ -1,19 +1,19 @@
/*
* D3Backend
* Copyright (C) 2015 Dries007 & Double Door Development
* D3Backend
* Copyright (C) 2015 - 2016 Dries007 & Double Door Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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
* GNU Affero General Public License for more details.
* 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
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.doubledoordev.backend.commands;
Expand Down
@@ -1,19 +1,19 @@
/*
* D3Backend
* Copyright (C) 2015 Dries007 & Double Door Development
* D3Backend
* Copyright (C) 2015 - 2016 Dries007 & Double Door Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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
* GNU Affero General Public License for more details.
* 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
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.doubledoordev.backend.commands;
Expand Down Expand Up @@ -286,7 +286,7 @@ public void license()
{
CMDLOGGER.info(
" D3Backend\n" +
" Copyright (C) 2015 Dries007 & Double Door Development\n" +
" Copyright (C) 2015 - 2016 Dries007 & Double Door Development\n" +
"\n" +
" This program is free software: you can redistribute it and/or modify\n" +
" it under the terms of the GNU Affero General Public License as published\n" +
Expand Down
@@ -1,19 +1,19 @@
/*
* D3Backend
* Copyright (C) 2015 Dries007 & Double Door Development
* D3Backend
* Copyright (C) 2015 - 2016 Dries007 & Double Door Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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
* GNU Affero General Public License for more details.
* 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
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.doubledoordev.backend.commands;
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/net/doubledoordev/backend/permissions/Group.java
@@ -1,19 +1,19 @@
/*
* D3Backend
* Copyright (C) 2015 Dries007 & Double Door Development
* D3Backend
* Copyright (C) 2015 - 2016 Dries007 & Double Door Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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
* GNU Affero General Public License for more details.
* 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
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.doubledoordev.backend.permissions;
Expand Down

0 comments on commit 48ee01f

Please sign in to comment.